KVSTRDPurchaseDocHistoryMgt#
Procedures#
CalcNoOfDocuments(Record Vendor, Boolean, Integer) :#
Summary: Calculates the number of various purchase document types for a vendor.
procedure CalcNoOfDocuments(var Vendor: Record "Vendor"; UsePayToVendor: Boolean; var NoOfDocuments: Integer):
Parameters:
Vendor: The "Vendor" record for whom the documents are to be counted.UsePayToVendor: If True, the field "Pay-to Vendor No." in the documents is used. Otherwise the field "Buy-from Vendor 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 Receipt, 8=Posted Invoice, 9=Posted Return Shipment, 10=Posted Cr. Memo, 11=Arch. Quote, 12=Arch. Blanket Order, 13=Arch. Order, 14=Arch. Return Order).