You can retrieve the current contract by using the currentContract
property from the user’s parentOrganization
. CurrentContract
returns the contract where the startDate
is before the current date and the endDate
is after the current date.
Invoices in ATG Business Commerce are automatically set up to handle contracts appropriately. Whenever a new InvoiceRequest
is created (see the Generating Invoices chapter for further information), it consults the user’s organization information to see if a contract exists, and copies over the paymentNetDays
, paymentDiscountDays
, and paymentDiscountPercent
information.