RecalculateTaxAmount

Recalculate Tax Amount - COL - 00 - 76C

Minor Business Rule

Object Name: B76C0007

Parent DLL: CLOC

Location: Client/Server

Language: C

Functional Description

Purpose
Recalculates taxes according to the minimum control process. 

Setup Notes and Prerequisites
None

Special Logic
There are two possible options to recalculated taxes : It could be by Total Document or by Total 
Record.

• The option Total Document stores in memory (cache) a record for each G/L offset accumulating the 
taxable amount and the tax rate. The records are retrieved from the file F76CUI02, and the record is only 

summarized if it is not been posted.

After the cache is fill, the minimum control process is executed. This process consist in compare 
the taxable amount ( the record kept in cache ) against to a minimum amount (field from file 

F767CUI02 which indicates the maximum amount that an item is taxable).

If the taxable amount is not greater that the minimum amount, the minimum amount is substracted 

from the taxable amount. 

• The option Total Record retrieves the record from the file F76CUI02.

Technical Specifications

Parameters:
KCOszCompanyKey[6]IRequired
DOCmnDocVoucherInvoiceEIRequired

DCTszDocumentType[3]IRequired

LNIDmnLineNumberIRequired If 

cCalculateType = 3

STAMmnAmtTaxO

STA1mnAmtSalesTaxTaxAuth1O

STA2mnAmtSalesTaxTaxAuth2O

STA3mnAmtSalesTaxTaxAuth3O

STA4mnAmtSalesTaxTaxAuth4O

STA5mnAmtSalesTaxTaxAuth5O

EV01cCalculateTypeIRequired

1=By document;

 2=By Record, 

4=Recalculate

TRATmnTotalAreaTaxRateO

TIDszComputerIDIRequired when the 

parameter cUpdateCache has a 

value equal to                                           

                                          '1'. Cache Key.               JOBS

mnJobnumberAIRequired when the parameter 

cUpdateCache has a value equal to                            

                                                                                                      

                                                                                

                                          '1'. Cache Key. 

EV01cUpdateCacheIRequired if you                                             

                                        

                                          want to store in                                            

                                         

                                          cache the document                                          

                                           

                                          number when the                                             

                                        

                                          taxes are changed                                           

                                          

                                          because of the                                              

                                                                                                      

                     

                                          minimum control                                             

                                                                                                      

                                                                                                      

                                               

                                          process. 





Related Tables 

F76CUI02Tax Detail Colombian Work File






^

Data Structure

D76C0007 - ReCalculate Amount Tax  - COL -00                     - 76C

Parameter NameData ItemData TypeReq/OptI/O/Both
szCompanyKeyKCOcharNONENONE

A number that, with the document number, document type and G/L date, uniquely identifies an original document, such as invoice, voucher, 
or journal entry. If you use the Next Numbers by Company/Fiscal Year feature, the Automatic Next Numbers program (X0010) uses the 
document company to retrieve the correct next number for that company. If two or more original documents have the same document number and 
document type, you can use the document company to locate the desired document.

mnDocVoucherInvoiceEDOCMATH_NUMERICNONENONE

A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document 
number or let the system assign it using the Next Numbers program (P0002). Matching document numbers (DOCM) identify related documents 
in the Accounts Receivable and Accounts Payable systems. Examples of original and matching documents are: Accounts Payable     o 
Original document - voucher     o Matching document - payment  Accounts Receivable     o Original document - invoice     o Matching document - 
receipt  Note: In the Accounts Receivable system, the following transactions simultaneously generate original and matching documents: 
deductions, unapplied receipts, chargebacks, and drafts.

szDocumentTypeDCTcharNONENONE

A user defined code (00/DT) that identifies the origin and purpose of the transaction.  PeopleSoft reserves several prefixes for document 
types, such as, vouchers, invoices, receipts, and timesheets. The reserved document type prefixes for codes are: P Accounts payable 
documents R Accounts receivable documents  T Time and Pay documents I Inventory documents  O Purchase order documents  S Sales order 
documents 

mnLineNumberLNIDMATH_NUMERICNONENONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

szTaxAreaTXA1charNONENONE

A code that identifies a tax or geographic area that has common tax rates and tax authorities. The system validates the code you enter 
against the Tax Areas table (F4008). The system uses the tax rate area in conjunction with the tax explanation code and tax rules to calculate tax 
and G/L distribution amounts when you create an invoice or voucher.

mnAmtTaxSTAMMATH_NUMERICNONENONE

The amount assessed and payable to tax authorities. It is the total of the VAT, use, and sales taxes (PST).

mnAmtSalesTaxTaxAuth1STA1MATH_NUMERICNONENONE

Of the total taxes calculated for this document (invoice, voucher, etc.), the dollar value of the tax liability attributable to the first of five 
possible taxing authorities who may comprise the tax area.

mnAmtSalesTaxTaxAuth2STA2MATH_NUMERICNONENONE

Of the total taxes calculated for this document (invoice, voucher, etc.), the dollar value of the tax liability attributable to the second of five 
possible taxing authorities who may comprise the tax area.

mnAmtSalesTaxTaxAuth3STA3MATH_NUMERICNONENONE

Of the total taxes calculated for this document (invoice, voucher, etc.), the dollar value of the tax liability attributable to the third of five 
possible taxing authorities who may comprise the tax area.

mnAmtSalesTaxTaxAuth4STA4MATH_NUMERICNONENONE

Of the total taxes calculated for this document (invoice, voucher, etc.), the dollar value of the tax liability attributable to the fourth of five 
possible taxing authorities who may comprise the tax area.

mnAmtSalesTaxTaxAuth5STA5MATH_NUMERICNONENONE

Of the total taxes calculated for this document (invoice, voucher, etc.), the dollar value of the tax liability attributable to the fifth of five possible 
taxing authorities who may comprise the tax area.

cCalculateTypeEV01charNONENONE

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

mnTotalAreaTaxRateTRATMATH_NUMERICNONENONE

A number that indicates the total percentage of taxes for the transaction or tax rate area.

szComputerIDCTIDcharNONENONE

mnJobnumberAJOBSMATH_NUMERICNONENONE

The job number (work station ID) which executed the particular job.

cUpdateCacheEV01charNONENONE

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

Related Functions

None

Related Tables

F76CUI02 Tax Detail - Work File - COL - 76C