KVSTRDSalesDocHistoryMgt#
Procedures#
CalcNoOfDocuments(Record Customer, Boolean, Integer) :#
Summary: Calculates the number of various sales document types for a customer.
procedure CalcNoOfDocuments(var Customer: Record "Customer"; UseBillToCustomer: Boolean; var NoOfDocuments: Integer):
Parameters:
Customer: The "Customer" record for whom the documents are to be counted.UseBillToCustomer: If True, the field "Bill-to Customer No." in the documents is used. Otherwise the field "Sell-to Customer No.".NoOfDocuments: An array of 14 integers that contain the counted no. of documents (1=Quote, 2=Blanket Order, 3=Order, 4=Invoice, 5=Return Order, 6=Credit Memo, 7=Posted Shipment, 8=Posted Invoice, 9=Posted Return Receipt, 10=Posted Cr. Memo, 11=Arch. Quote, 12=Arch. Blanket Order, 13=Arch. Order, 14=Arch. Return Order).