KVSTRDPurchaseDocHistoryMgt# Procedures# CalcNoOfDocuments(Record Vendor, Boolean, Integer) :# Syntax procedure CalcNoOfDocuments(var Vendor: Record "Vendor"; UsePayToVendor: Boolean; var NoOfDocuments: Integer):