Payment Terms should be assigned to each Vendor. During Voucher Entry these Payment Terms are used to calculate Due Dates, Discount Dates and Discount Amounts. You may even set up dated Payments Terms.