#set($productsearcher = $searcherManager.getSearcher($catalogid, "product")) #set ( $ordernumber = $order.orderNumber ) #set ( $shippingAddress = $order.getShippingAddress() ) #set ( $billingAddress = $order.getBillingAddress() ) #set ( $customer = $order.customer ) #set ( $orderdate = $order.get("orderdate") ) #set ( $distributor = $distributorsearcher.searchById($invoice.get("distributor")) ) #set ( $subtotal = "0" ) #if ( $shippingAddress.address1 == $billingAddress.address1 ) #set ( $customerAddress = $order.getBillingAddress() ) #else #set ( $customerAddress = $order.getShippingAddress() ) #end
AREA COMMUNICATIONS INVOICE
 
#if ( $order.shippingAddress && $order.shippingAddress.address1 && $order.billingAddress && $order.billingAddress.address1 )
DATE : $orderdate Order #$ordernumber
FROM: Area Communications
1 Hurontario St.
Suite 220
Mississauga, ON
L5G 0A3
Phone: 905-271-2732
Fax: 905-271-7724
 
SOLD TO:

$!customer.getFirstName() $!customer.getLastName()
$!customerAddress.address1
#if ( $customerAddress.address2 && $customerAddress.address2 != "" ) $customerAddress.address2
#end $!customerAddress.city #if ($customerAddress.state || $customerAddress.zipCode || $customerAddress.country),#end $!customerAddress.state $!customerAddress.zipCode $!customerAddress.country
#if ($customer.phone1)Phone: $customer.phone1
#end #if ($customer.email)Email: $customer.email
#end #if ($customer.fax )Fax: $!customer.fax
#end

SHIP TO:

$order.shippingAddress.name
$order.shippingAddress.address1
#if ( $order.shippingAddress.address2 && $order.shippingAddress.address2 != "" ) $order.shippingAddress.address2
#end $order.shippingAddress.city, $order.shippingAddress.state $order.shippingAddress.zipCode $!order.shippingAddress.country

#end

ORDER DETAILS:

#set( $types = $searcherManager.getList($catalogid ,"itemstatus") ) #set($itemCounter = 0) #foreach ( $item in $order.items ) #set($path ="$apphome/products/${store.getProductPathFinder().idToPath($item.getProduct().getId())}.html") #set($itemCounter = $itemCounter + 1) #set( $product = $store.getProductSearcher().searchById($item.product.id) ) #end #if ( $order.getTotalShipping() && $order.getTotalShipping() != "0.00" ) #else #end
Item SKU Product ID Quantity Unit Price Line
Total
$item.sku $product.getName() $item.quantity $item.yourPrice $item.getTotalPrice()
Subtotal:   $order.getSubTotal()
Shipping:   $order.getTotalShipping()
Shipping:   $0.00
Tax (HST# 88887 3270 RT0001):   $order.tax
Grand Total:   $order.totalPrice