Functional Description
Purpose
This function computes and loads the default due date for vouchers.
Setup Notes and Prerequisites
None
Special Logic
None
Technical Specification
Parameters
ItemDescriptionI/OReq?Notes
DGJjdDateForGLAndVoucherJulianIN
DIVJjdDateInvoiceJIN
PTCszPaymentTermsCodeIY
AGmnAmountGrossIY
ADSAmnAmountDiscountTakenIN
DDJjdDueDateI/ON
DDNJjdDiscountDueDateI/ON
Related Tables
None
Related Functions
B0400290 - Compute Due Date
Processing
If jdDueDate = null or jdDiscountDueDate = null
If invoice date is not null or G/L date is not null
If the mnAmountGross is < 0 (debit/credit memo)
Set the transaction date = G/L Date
Else
If the invoice date is not null
Set the transaction date = Invoice date
Else
Set the transaction date = G/L Date
If the transaction date is null
IdReturnCode = ER_ERROR
Else
If it is a debit memo
JdDueDate = jdTransactionDate
JdDiscountDueDate = jdTransactionDate
Else
If the jdDiscountDueDate is null (load discount date)
Use net days to pay
If jdDueDate is null
IdReturnCode = ER_ERROR
D0400494 - Default Due Dates
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
jdDateForGLAndVoucherJulia | DGJ | JDEDATE | NONE | NONE |
A date that identifies the financial period to which the transaction will be posted. You define financial periods for a date pattern code that you
| ||||
jdDateInvoiceJ | DIVJ | JDEDATE | NONE | NONE |
The date that either you or the system assigns to an invoice or voucher. This can be either the date of the supplier's invoice to you or the
| ||||
szPaymentTermsCode | PTC | char | NONE | NONE |
A code that specifies the terms of payment, including the percentage of discount available if the invoice is paid by the discount due date.
| ||||
mnAmountGross | AG | MATH_NUMERIC | NONE | NONE |
A value that specifies the total amount of the invoice or voucher pay item. The gross amount might include the tax amount, depending on
| ||||
mnAmountDiscountTaken | ADSA | MATH_NUMERIC | NONE | NONE |
The amount by which an invoice or voucher is reduced if paid by a specific date. The discount taken does not have to be the same as the
| ||||
jdDueDate | DDJ | JDEDATE | NONE | NONE |
In Accounts Receivable, the date that the net payment is due.
In Accounts Payable, the date that the payment is due to receive a discount
| ||||
jdDiscountDueDate | DDNJ | JDEDATE | NONE | NONE |
In the Accounts Receivable system, the date that the invoice must be paid to receive the discount. The system calculates the discount due
| ||||
cDebitCreditMemoDueDate | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. |
X0302 Compute Due Date |
None |