N74S0110
Calculate Stamp (Timbre) Fee for Each Draft
Functional Description
Purpose
The function calculate stamp fee for a draft when a draft is created. The fee is paid to the
government. Currently, this business practice is used in Spain.
The stamp fee for each draft is based upon the draft amount and the months outstanding of the draft.
The more the draft amount and the months outstanding, the more the stamp fee.
Setup Notes and Prerequisites
This function gets inputs: draft amount, draft creation date, draft due date, and currency code of
the draft, then calculates the stamp fee.
Special Logic
Months Outstanding is the difference between the draft creation date and the draft due date. The
government has fee schedules for all draft amounts and the months outstanding. Fee schedules are stored
in F74S505 and F74S502. The function will look at these two tables and determine the amount of the
stamp fee.
Technical Specifications
Parameters
Item DescriptionI/OReq?Notes
CRCD szCurrencyCodeFromIY
DATE01 jdEmissionDateIY
CKAM mnAmountCheckAmount I Y
DDJ jdDateDueJulianI Y
STFE mnStampFeeOY
EV01 cErrorFlagON
Related Tables
F74S505Stamps (Timbres) Fee Header
F74S502Stamps (Timbres) Fee Detail
Related Business Functions
Processing
Calculate the months difference between the emission date and the due date
If day of the due date is greater than day of the draft creation date add 1 to the months difference
If months difference is 0 and the day of the due date is equal to the day of the creation date
Use currency code, months outstanding, and creation date to fetch the unique id from F74S505
If not success assign 0 to stamp fee (just for grouping purpose) and assign 1 to error flag and end
function
Use unique id and draft amount to fetch the fee amount from F74S502
If not success assign 0 to stamp fee and assign 1 to error flag and end function
If the Amount To Add and For Each fetched from F74S502 are not blank
^
D74S0110 - Calculate Stamp (Timbre) Fee for Each Draft - 03B
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szCurrencyCodeFrom | CRCD | char | REQ | INPUT |
A code that identifies the currency of a transaction. | ||||
jdEmissionDate | DATE01 | JDEDATE | OPT | INPUT |
Event point for JDE Date. | ||||
mnAmountCheckAmount | CKAM | MATH_NUMERIC | REQ | INPUT |
The actual amount of the receipt or payment. | ||||
jdDateDueJulian | DDJ | JDEDATE | REQ | INPUT |
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
| ||||
mnStampFee | STFE | MATH_NUMERIC | OPT | OUTPUT |
The fee amount (Timbre) paid to the government when a draft (Efecto) is created. The fee is based on the following factors:
The amount of
| ||||
cErrorFlag | EV01 | char | OPT | OUTPUT |
An option that specifies the type of processing for an event. |
None |
None |