Pyramid

Two files: sales orders and purchase orders.

Filename format: salesorders_<YYYYMMDD>.txt and purchaseorders_<YYYYMMDD>.txt

Decimal separator: comma.

Format of sales order file:

01<IF CustomerNumber IS EMPTY THEN "5149" ELSE CustomerNumber>
#12203;W<OrderID>
#12214;<CustomerPO>
#12215;<CustomerPO>
#12371;<NET DAYS WHEN 10 THEN "1" WHEN 20 THEN "2" WHEN 30 THEN "3" WHEN 15 THEN "4" ELSE "0">
#12372;L
#12373;<IF CREDIT CARD THEN "B" IF NET THEN "F" ELSE "">
#12352;<ShippingAmount>
02
#12227;<ShipToCompany, 40>
#12230;<ShipToAddress, 40>
#12231;<ShipToZIP ShipToCity, 40>
#12233;<ShipToPhone, 40>
#12236;<ShipToName, 40>
<PRODUCT LOOP STARTS>
11<ProductIndex>00
#12401;<BrandSKU, 15>.
#12419;J
#12441;<Qty>
#12421;<ProductName, 70>
#12414;<ProductIndex>
#12451;<Price>
#12454;<Cost>
#12455;<Cost>
<PRODUCT LOOP ENDS>

Format of purchase order file:

01<Vendor ERP#>
#12215;<OrderID>
02
#12227;<ShipToCompany, 40>
#12230;<ShipToAddress, 40>
#12231;<ShipToZIP ShipToCity, 40>
<PRODUCT LOOP STARTS>
11<ProductIndex>00
#12401;<VendorProductCode, 16>
#12414;<ProductIndex>
#12431;S
#12419;N
#12441;<Qty>
#12421;<ProductName, 70>
#12451;<Cost>
<PRODUCT LOOP ENDS>