TaxCalculatorforBrazil

Tax Calculator for Brazil - Purchasing - Brazil - 43B

Major Business Rule

Object Name: X76TAXB

Parent DLL: CLOC

Location: Client/Server

Language: C

X76TAXB  Purchasing Tax Calculator Brazil

SAR Number :2380238

Business Function Summary


Design Changes


DateDesign ChangeCompleted Date

August 1998World software Cum 9 changes

Issues for Review Session


DateDescription of IssueDate Resolved


Type of Business Function (Logic Class)


• Calculation Business Function.

Business Function Origin


• C

Sources in this Business Function

#include /* Tax Situation Algorithm */
#include /* Get ICMS Tax Rates */


No.TypeSource DescriptionData Structure
1b7601180Tax Situation Algorithmd7601180
2b7601220Get ICMS Tax Ratesd7601220


Related Tables by Source


Source Table DescriptionPrimary / SecondaryModeKey Fields or Notes
F76412Item TagRead
F76432PO Detail TagRead

F0101Address Book Read

F0150Address Organizat.Read

F76011AB TagRead

F4301PO HeaderRead

F4311PO DetailRead

F7601BNF HeaderRead

F7611BNF DetailRead

F7608BICMS Tax RatesRead

F7615BTransact. NatureRead

F7617BTax SummaryRead

F76B18IPI Tax RatesRead



Performance Impact


Type A - High Volume Transaction Processing, Frequently Used Business Function, high impact Business Function

1.Consider that this Business Function should be benchmarked in the future.


^

Data Structure

D7600850 - Tax Calculator for Brazil                             - 00

Parameter NameData ItemData TypeReq/OptI/O/Both
idNFHeaderRecordGENLNGIDNONENONE

General purpose ID variable.

idNFDetailRecordGENLNGIDNONENONE

General purpose ID variable.

szTaxArea1TXA1charNONENONE

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.

szTaxExplanationCode1EXR1charNONENONE

A hard-coded user defined code (00/EX) that controls the algorithm that the system uses to calculate tax and G/L distribution amounts. The 
system uses the tax explanation code in conjunction with the tax rate area and tax rules to determine how the tax is calculated. Each 
transaction pay item can be defined with a different tax explanation code.

mnAmountTaxableIPIBBTPMATH_NUMERICNONENONE

The amount on which IPI taxes are assessed.

mnAmountIPITaxBIPIMATH_NUMERICNONENONE

The IPI tax amount that is printed on the nota fiscal.

mnAmountIPITaxRecoverableBIPRMATH_NUMERICNONENONE

The IPI tax amount that is eligible for recovery.

mnIPITaxRateTXR2MATH_NUMERICNONENONE

A number that identifies the percentage of tax that should be assessed or paid to the corresponding tax authority, based on the tax area.  
Enter the percentage as a whole number and not as the decimal equivalent. For example, to specify 7 percent, enter 7, not .07. 

mnAmountICMSTaxableAmountBBCLMATH_NUMERICNONENONE

The amount on which ICMS taxes are assessed.

cFlagICMSTaxSubstitutionMarkUpBISTcharNONENONE

A code that specifies whether a client or product is subject to tax substitution. Valid values are: Y Use list price. Z Use net price. N No.

szCodeICMSTaxStatusBSTTcharNONENONE

Enter a two-character code to indicate the ICMS tax eligibility of a product. The value you enter for the first character of the code indicates 
the origin of the product, based on the BORI edit rules. The value you enter for the second character of the code indicates how the product will 
be taxed by ICMS. Valid values to indicate the origin of the product are: 0 Domestic goods 1 Foreign product, direct import 2 Foreign product, 
purchased in local market Valid values to indicate the ICMS tax condition of a product are: 0 - Totally taxed 1 - Taxed, with ICMS collection by 
tax substitution 2 - Taxed, with taxable amount reduction 3 - Exempt or non-taxable, with ICMS collection by tax substitution 4 - Exempt or 
non-taxable 5 - Suspended and deferred 6 - ICMS previously charged by tax substitution 7 - Reduced taxable amount, with ICMS collection by tax 
substitution 9 - Other (Codigo de Situacao Tributaria)

mnAmountICMSReducedTaxableBBIRMATH_NUMERICNONENONE

The amount on which ICMS taxes are assessed. In this case, the ICMS taxable amount is reduced due to the sale of given products.

mnAmountICMSRepassDiscountBREPMATH_NUMERICNONENONE

An additional discount granted to the client on interstate sales. It is based on the tax rate difference among states.

mnAmountICMSTaxBICMMATH_NUMERICNONENONE

The ICMS tax amount that is printed on the nota fiscal.

mnICMSTaxRateTXR1MATH_NUMERICNONENONE

A number that identifies the percentage of tax that should be assessed or paid to the corresponding tax authority, based on the tax area.  
Enter the percentage as a whole number and not as the decimal equivalent. For example, to specify 7 percent, enter 7, not .07. 

mnAmountICMStobePaidBICPMATH_NUMERICNONENONE

The ICMS tax amount that is to be paid.

mnAmountICMSSubstituteBVISMATH_NUMERICNONENONE

The ICMS Substitute amount that your customer must remit in advance if they are subject to Tax Substitution Mark-up.

mnAmountTaxableICMSSubstiTBBISMATH_NUMERICNONENONE

The amount on which ICMS Substitute tax is assessed. Products that are eligible for ICMS Substitute tax are listed in ICMS government 
directive 14.

cCodeIPIReportingColumnBFIPcharNONENONE

A code that indicates how IPI tax is assessed. This code determines in which column of the Inbound/Outbound Fiscal Book the system 
prints the IPI tax amount. You must enter a code that already exists in the IPI Code Fiscal Value (76/IP) UDC table. Valid values 
are: 1 Taxable 2 Exempt or not taxable 3 Other

cCodeICMSReportingColumnBFIIcharNONENONE

A code that indicates how ICMS tax is applied. You set up the codes that you need in the ICMS Code - Fiscal Value UDC (76/II). The system 
uses the code when it calculates ICMS tax, and when printing fiscal books.

mnAmountFreePortZoneDiscouBDIZMATH_NUMERICOPTNONE

The amount of the discount available to a free port zone customer.

mnAmountNotaFiscalTotalDisBDESMATH_NUMERICOPTNONE

The amount of the discount amount available for the Nota Fiscal.

szCodeICMSTaxStatus_BST1BST1charOPTNONE

Enter a three-character code to indicate the ICMS tax eligibility of a product. The value you enter for the first character of the code indicates 
of origin of the product, based on the BORI edit rules. The value you enter for the second character and the third character of the code 
indicates how the product will be taxed by ICMS. Valid values to indicate the origin of the product are: 0 Domestic Goods 1 Foreign product, direct 
import 2 Foreign product, purchased in local market Valid values to indicate the ICMS tax condition of a product are: 00 - Pay full Tax 10 - Pay 
ICMS and ICMS Sub. Mark up 20 - Reduced Base for Tax Calculation 30 - Exempt/Not ICMS; Pay ICMS Substitution 40 - Exempt 50 - 
Suspended 51 - Deferred 70 - With reduction of Base of Calculation and ICMS charged previously for substitution tax 90 - Others (Codigo de Situacao 
Tributaria)

cTagRecevrFlagEV01charOPTNONE

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

Related Functions

B0000019 Calculate Tax Authority Tax Amts
B9800100 Get Audit Information

Related Tables

None