[%# $Id$ %] [% USE horder = Handel.Order %]
[% IF (order = horder.create({ id => 'FBC4A843-2667-48ED-AA9F-EF4B52537E72', shopper => 'FE816B07-7E3D-4A00-97D4-667FEA60F767', type => horder.ORDER_TYPE_TEMP, billtofirstname => 'Christopher', billtolastname => 'Laco', billtoaddress1 => 'BillToAddress1', billtoaddress2 => 'BillToAddress2', billtoaddress3 => 'BillToAddress3', billtocity => 'BillToCity', billtostate => 'BillToState', billtozip => 'BillToZip', billtocountry => 'BillToCountry', billtodayphone => '1-111-111-1111', billtonightphone => '2-222-222-2222', billtofax => '3-333-333-3333', billtoemail => 'mendlefarg@gmail.com', comments => 'Comments', created => '2005-07-15 20:12:34', handling => 8.95, number => 'O123456789', shipmethod => 'UPS Ground', shipping => 23.95, shiptosameasbillto => 0, shiptofirstname => 'Christopher', shiptolastname => 'Laco', shiptoaddress1 => 'ShipToAddress1', shiptoaddress2 => 'ShipToAddress2', shiptoaddress3 => 'ShipToAddress3', shiptocity => 'ShipToCity', shiptostate => 'ShipToState', shiptozip => 'ShipToZip', shiptocountry => 'ShipToCountry', shiptodayphone => '4-444-444-4444', shiptonightphone => '5-555-555-5555', shiptofax => '6-666-666-6666', shiptoemail => 'chrislaco@hotmail.com', subtotal => 37.95, total => 37.95, tax => 6.66, updated => '2005-07-16 20:12:34' })) %] [% CALL order.add({ description => 'Description 1', id => '8CB01B28-CF5A-4F4E-B7B7-CFF9F0ACA534', price => 1.11, quantity => 1, sku => 'NEWSKU1', total => 1.11 }) %] [% CALL order.add({ description => 'Description 2', id => '46C2D004-4694-4C66-B901-8E2CEE6CB9FD', price => 2.22, quantity => 2, sku => 'SKU2', total => 4.44 }) %] [% CALL order.add({ description => 'Description 3', id => 'C9036322-4F7B-4B21-9084-46017927718B', price => 3.33, quantity => 3, sku => 'SKU3', total => 9.99 }) %] [% ELSE %]