CalculateTimbreFee

Calculate Stamp (Timbre) Fee for Each Draft - 03B

Minor Business Rule

Object Name: N74S0110

Parent DLL: CFIN

Location: Client/Server

Language: NER

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 jdDateDueJulianY

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
• Assign 1 to months difference (months outstanding)
• End if
• 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
• Calculate additional fee and add it to the original fee fetch from F74S502
• End if
^

Data Structure

D74S0110 - Calculate Stamp (Timbre) Fee for Each Draft           - 03B

Parameter NameData ItemData TypeReq/OptI/O/Both
szCurrencyCodeFromCRCDcharREQINPUT

A code that identifies the currency of a transaction. 

jdEmissionDateDATE01JDEDATEOPTINPUT

Event point for JDE Date.

mnAmountCheckAmountCKAMMATH_NUMERICREQINPUT

The actual amount of the receipt or payment.

jdDateDueJulianDDJJDEDATEREQINPUT

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 
or, if no discount is offered, the net due date. The system calculates the due date based on the payment term entered, or you can enter it 
manually. If you enter a negative voucher or invoice (debit or credit memo), the system might use the G/L date as the due date regardless of the 
payment term entered. A processing option in the master business function (P0400047 for vouchers and P03B0011 for invoices) controls how 
the system calculates the due date for debit and credit memos.

mnStampFeeSTFEMATH_NUMERICOPTOUTPUT

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 
the draft receipt The number of days between the draft origination date and the draft due date The currency code The effective date 

cErrorFlagEV01charOPTOUTPUT

An option that specifies the type of processing for an event.

Related Functions

None

Related Tables

None