TaxCalculatorSales

Tax Calculator for Brazil - Sales - Brazil - 42

Major Business Rule

Object Name: X76TAXBS

Parent DLL: CLOC

Location: Client/Server

Language: C

Object Specifications 
Sales Tax Calculator

SAR Number :1800122


Purpose of Application


Split Tax calculator program in two: Sales and Purchasing are now separated objects.

Tax Calculator for Sales Order Entry adjustments.

Add Advanced Pricing functionalities. 

Apply changes made for World software: 

1. Use quantity with primary UOM, not with UOM3 (change soqs for pqor) .
2. Advanced Pricing - Repasse logic. 

3. Advanced Pricing - Discounts calculation. 

4. Advanced Pricing - Free Port Discount.

5. Modify how the tax calculator populates Discounts Field FDBDES. 

6. Modify ICMS Substituiton Decision Routine.

7. Modify formula for applying reduction to ICMS substitution basis and move the logic.

8. Add freight, insurance and additional expenses logic. 

9. Check new small functionalities added up to Cum 9


Enhancement Type:  New

B7600900 - Interface UBE/Appl to Tax Calculator

SAR Number :1800122


Purpose of Application


BDES (Trade Discount) and BDIZ (Free Port Zone Discount) are now being updated to F7611B after the Tax Calculations.

Data Structure D7600850 (Brazilian Tax Calculator) changed to return the two new discount fields.


Enhancement Type:  Changed.


X76TAXBS - Sales Tax Calculator Brazil

SAR Number :1800122

Business Function Summary


Design Changes


DateDesign ChangeCompleted Date

August 1998Advanced PricingAugust 1998

August 1998World sortware 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


No.TypeSource DescriptionData Structure

1b4100210Get Item Branch Informationd4100210

2b4000460Free Pointerd4000460

3b4200140Get Ship To Billing Instructionsd4200140


Related Tables by Source


Source Table DescriptionPrimary / SecondaryModeKey Fields or Notes

F0101Address Book Read

F0150Address Organizat.Read

F4074Price AdjustmentRead

F4201SO HeaderRead

F4211SO DetailRead

F7601BNF HeaderRead

F7611BNF DetailRead

F7608BICMS Tax RatesRead

F7615BTransact. NatureRead

F7617BTax SummaryRead

F76B18IPI Tax RatesRead




Performance Impact


Required if changed or new


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

None

Related Tables

None