Supplier Report
#if($type == "detailed")
#set($labellen = 2)
#else
#set($labellen = 3)
#end
#if($shippingdates == false)
Warning! There are some orders included in this report without shipping dates
#end
#foreach ($supplier in $sortedsuppliers)
$supplier
#if( $type == "detailed")
| Orders |
#end
Code |
Product Name |
Listed Size |
Wheels/Units Supplied |
Purchase Price |
Alt. Supplier Name |
Alt. Code |
Alt. Purchase Price |
#set($map2 = $map.get($supplier))
#set($products = $sortedproductsmap.get($supplier))
#foreach ($product in $products) ###$map2.keySet())
#set($list = $map2.get($product))
#set($price = $product.purchaseprice)
#if($product.alternateprice)
#set($price2 = $product.alternateprice)
#else
#set($price2 = "")
#end
#set($pricestr = "")
#set($idx = $price.indexOf("."))
#if($idx == -1)
#set($pricestr = "$${price}.00")
#else
#set($len = $price.length())
#set($diff = $len - $idx)
#if ($diff == 2)
#set($pricestr = "$${price}0")
#else
#set($pricestr = "$${price}")
#end
#end
#set($pricestr2 = "")
#if($price2!="")
#set($idx = $price2.indexOf("."))
#if($idx == -1)
#set($pricestr2 = "$${price2}.00")
#else
#set($len = $price2.length())
#set($diff = $len - $idx)
#if ($diff == 2)
#set($pricestr2 = "$${price2}0")
#else
#set($pricestr2 = "$${price2}")
#end
#end
#end
#if($type == "detailed")
|
|
#end
$!product.suppliercode |
$!product |
$!product.listedsize |
$!list.get(0) |
$!pricestr |
$!mediaarchive.getData("supplier",$product.alternate) |
$!product.alternatecode |
$!pricestr2 |
#end
#end