You are on page 1of 14

Displaying different UOM on Sales Documents End Result: When the user selects other UOM from a drop

down menu on Marketing document line level, the qty for that UOM will be displayed

Instructions: Step 1: Adding 2 user fields to Marketing Documents Rows From Tools Manage User Fields Marketing Document Rows.

Page 1 of 14

Add

Field one:

Page 2 of 14

Field 2:

Step 2: Display new UDFs on Marketing documents. In this example the quantities will be converted to a selected UOM on Sales Order

Page 3 of 14

Step 3: Create the query: SELECT CASE $[RDR1.U_OtherUOM] WHEN 'Sq Ft' THEN (SELECT $[$38.11.Number]* T0.U_ConSqFt) WHEN 'Kg' THEN (SELECT $[$38.11.Number]* T0.U_ConToKg) When 'Ounces' then (SELECT $[$38.11.Number]* T0.U_ConOunce) ELSE (SELECT $[$38.11.Number]) END FROM OITM T0 WHERE T0.ItemCode=$[$38.1.0] FOR BROWSE Step 4: link the query to the UDF Qty in other UOM using a Formatted Search

Alt + Shift + f2

Now, after the user will select the desired UOM, quantities in that UOM will be displayed on the Sales Order.

Page 4 of 14

Note: To display quantities in other UOM on Quotation, replace query in step 3 with query below: SELECT CASE $[QUT1.U_OtherUOM] WHEN 'Sq Ft' THEN (SELECT $[$38.11.Number]* T0.U_ConSqFt) WHEN 'Kg' THEN (SELECT $[$38.11.Number]* T0.U_ConToKg) When 'Ounces' then (SELECT $[$38.11.Number]* T0.U_ConOunce) ELSE (SELECT $[$38.11.Number]) END FROM OITM T0 WHERE T0.ItemCode=$[$38.1.0] FOR BROWSE To display quantities in other UOM on A/R Invoice, replace query in step 3 with query below: SELECT CASE $[INV1.U_OtherUOM] WHEN 'Sq Ft' THEN (SELECT $[$38.11.Number]* T0.U_ConSqFt) WHEN 'Kg' THEN (SELECT $[$38.11.Number]* T0.U_ConToKg) When 'Ounces' then (SELECT $[$38.11.Number]* T0.U_ConOunce) ELSE (SELECT $[$38.11.Number]) END FROM OITM T0 WHERE T0.ItemCode=$[$38.1.0] FOR BROWSE To display quantities in other UOM on Delivery, replace query in step 3 with query below: SELECT CASE $[DLN1.U_OtherUOM] WHEN 'Sq Ft' THEN (SELECT $[$38.11.Number]* T0.U_ConSqFt) WHEN 'Kg' THEN (SELECT $[$38.11.Number]* T0.U_ConToKg) When 'Ounces' then (SELECT $[$38.11.Number]* T0.U_ConOunce) ELSE (SELECT $[$38.11.Number]) END FROM OITM T0 WHERE T0.ItemCode=$[$38.1.0] FOR BROWSE To display quantities in other UOM on A/R Credit Memo, replace query in step 3 with query below: SELECT CASE $[RIN1.U_OtherUOM] WHEN 'Sq Ft' THEN (SELECT $[$38.11.Number]* T0.U_ConSqFt) WHEN 'Kg' THEN (SELECT $[$38.11.Number]* T0.U_ConToKg) When 'Ounces' then (SELECT $[$38.11.Number]* T0.U_ConOunce) ELSE (SELECT $[$38.11.Number])

Page 5 of 14

END FROM OITM T0 WHERE T0.ItemCode=$[$38.1.0] FOR BROWSE Displaying other UOM on Sales Documents Quotation/ Sales Order /Invoice Printout Sometimes display by line, sometimes by document (A document might say 1 lot of stuff and there is
really 10 line items on the order/invoice that they do not see).

On screen:

End Result when by line:

Page 6 of 14

End Result when by document:

Instruction for printing selected UOM by line: Add 2 Text fields to the Sales Order printing template using PLD (Print Layout Designer) for the columns heading, and 2 Data fields for the actual selected UOM and qty in the selected UOM. In both Data fields, the data is taken from User Defined Fields as described in Requirement #2 (Pages 9-13). To create a new template, click on Print Layout Designer icon you would like to edit, Save it under a new name , double click on the template

Double click to open

Page 7 of 14

Page 8 of 14

Instruction for printing selected UOM by Document: Save the template created above under a different name

Page 9 of 14

Expand Repetitive area footer

1. Double click on Repetitive area footer 2. Change height to 16

Sort repetitive area by user field Selected UOM

Page 10 of 14

Go to Group number 1 (Repetitive header and footer areas of first sorting/grouping)

Page 11 of 14

Add 4 fields to the repetitive area footer of group 1

Text Field Total Items In

Page 12 of 14

Hide all fields on Repetitive area

Select all fields and double click on one

Make sure check box Height Adjustment is checked for the repetitive area Double click on Repetitive area

Return to Group 0 to hide columns heading of hidden columns like in the screen shot below

Page 13 of 14

Hide fields in red frame

Resize fields on repetitive area header (columns heading)

Save your changes and set the template as default when wanting to print totals only

Page 14 of 14

You might also like