you have to add your function in this loop : IF ("Document Type" = "Document Type" :: Order) and Ship THEN BEGIN ......... and also if you want the field shows in sales return order, you have to add your function in this loop: IF ("Document Type" = "Document Type" :: "Return Order") and Receive THEN BEGIN ......... Notice that you have to change "Qty. to ship" to "Return Qty. to Receive", also some different fields between Order and Return Order.
↧