Functional Description
Purpose
This function is used to determine the new discount percentage and the new discount due date for
invoice or voucher pay items that use multi-tiered payment terms. This function should only be called by
the batch update applications for multi-tiered payment terms processing. These applications are Batch
Update for Multi-Tiered A/R (R005142) and Batch Update for Multi-Tiered A/P (R005141).
Setup Notes and Prerequisites
None.
Special Logic
None.
Technical Specification
Parameters
Item DescriptionI/OReq?Notes
DATE01jdAsOfDateIYDate the batch update applications are processing
(value from processing options or current system date).
DATE01jdBasedOnDateIYInvoice Date, G/L Date, or Tax/Service Date.
DYT1mnToDayTier1IyIf blank, use zero.
DYT2mnToDayTier2IyIf blank, use zero.
DYT3mnToDayTier3IyIf blank, use zero.
DYT4mnToDayTier4IYIf blank, use zero.
DYT5mnToDayTier5IYIf blank, use zero.
DCP1mnDiscountPercTier1IY
DCP2mnDiscountPercTier2IY
DCP3mnDiscountPercTier3IY
DCP4mnDiscountPercTier4IY
DCP5mnDiscountPercTier5IY
WKDYcWorkDayRuleIN
CALNszCalendarIN
0SADDmnDaystoAddIN
NDDRszNetDueDateRuleIY
DCPmnCurrentTierDiscounONNew discount percentage.
DDNJjdCurrentTierDueDateONNew discount due data
rule.
Related Tables
None.
Related Functions
B0000149Is Date A Work Date
B0000150Advance Work Days
X03021New Due Date Calculation
Processing
Identify first open-ended tier.
Determine new end dates for each non-open tier.
If a work day calendar and a work day rule were specified,
For each non-open tier,
Determine if end day is a work day by calling B0000149.
If end day is not a work day,
Adjust end day to be a work day by calling B0000150.
Endif.
End for loop.
Endif.
Identify the current tier.
Determine the new discount percentage based on the current tier.
Determine the new discount due date based on the current tier.
D0000570 - Calculate Tier Discount Percent and Due Date
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
jdAsOfDate | DATE01 | JDEDATE | REQ | INPUT |
Event point for JDE Date. | ||||
jdBasedOnDate | DATE01 | JDEDATE | REQ | INPUT |
Event point for JDE Date. | ||||
mnToDayTier1 | DYT1 | MATH_NUMERIC | REQ | INPUT |
The final number of the range of days for the first of five tiers that can be set up for multitiered discounts. The system uses this field in
| ||||
mnToDayTier2 | DYT2 | MATH_NUMERIC | REQ | INPUT |
The final number of the range of days for the second of five tiers that can be set up for multitiered discounts. The system uses this field in
| ||||
mnToDayTier3 | DYT3 | MATH_NUMERIC | REQ | INPUT |
The final number of the range of days for the third of five tiers that can be set up for multitiered discounts. The system uses this field in
| ||||
mnToDayTier4 | DYT4 | MATH_NUMERIC | REQ | INPUT |
The final number of the range of days for the fourth of five tiers that can be set up for multitiered discounts. The system uses this field in
| ||||
mnToDayTier5 | DYT5 | MATH_NUMERIC | REQ | INPUT |
The final number of the range of days for the fifth of five tiers that can be set up for multitiered discounts. The system uses this field in
| ||||
mnDiscountPercTier1 | DCP1 | MATH_NUMERIC | REQ | INPUT |
The percentage that the invoice or voucher will be discounted if it is paid within the day range specified in the first tier. Enter this value as a
| ||||
mnDiscountPercTier2 | DCP2 | MATH_NUMERIC | REQ | INPUT |
The percentage that the invoice or voucher will be discounted if it is paid within the day range specified in the second tier. Enter this value
| ||||
mnDiscountPercTier3 | DCP3 | MATH_NUMERIC | REQ | INPUT |
The percentage that the invoice or voucher will be discounted if it is paid within the day range specified in the third tier. Enter this value as a
| ||||
mnDiscountPercTier4 | DCP4 | MATH_NUMERIC | REQ | INPUT |
The percentage that the invoice or voucher will be discounted if it is paid within the day range specified in the fourth tier. Enter this value as
| ||||
mnDiscountPercTier5 | DCP5 | MATH_NUMERIC | REQ | INPUT |
The percentage that the invoice or voucher will be discounted if it is paid within the day range specified in the fifth tier. Enter this value as a
| ||||
cWorkDayRule | WKDY | char | OPT | INPUT |
A code that specifies whether to include nonworking days in the due date calculation and whether to change the due date if it is on a
| ||||
szCalendar | CALN | char | OPT | INPUT |
The name of the calendar, which is the description of the branch/plant, that you set up to differentiate between working days, holidays,
| ||||
mnDaystoAdd | DADD | MATH_NUMERIC | OPT | INPUT |
The number of days that the system adds to or subtracts from, if you specify negative days, the date specified in the Based on Date field
| ||||
szNetDueDateRule | NDDR | char | REQ | INPUT |
The rule that the system uses to calculate the net due date of a voucher or invoice. | ||||
mnCurrentTierDiscountPerc | DCP | MATH_NUMERIC | OPT | OUTPUT |
The percent of the total invoice or voucher that you will discount if it is paid within the discount period. You enter the discount percent as a
| ||||
jdCurrentTierDueDate | DDNJ | JDEDATE | OPT | OUTPUT |
In the Accounts Receivable system, the date that the invoice must be paid to receive the discount. The system calculates the discount due
| ||||
cErrorStatus | EV01 | char | REQ | OUTPUT |
An option that specifies the type of processing for an event. |
None |
None |