SalesOrderNotaFiscalReturn

Sales Order Nota Fiscal Return - Brazil - 42B

Major Business Rule

Object Name: B7601170

Parent DLL: CLOC

Location: Client/Server

Language: C

B7601170  Sales Order Nota Fiscal Return

SAR Number :1844213 / 2249129 / 2241090


Purpose of Business Function


This process is responsible for generating extra reversing lines in F4211 file for ICMS, IPI, Substitution as well as for additional 
costs. These lines come from the return sales order. By adding these lines to this file, the accounting process for the specific entries 

will be taken care of by the standard software. . It processes all lines in a nota fiscal and accumulates the amount to add to the 

header.


Enhancement Type:  New


Business Function Summary


Type of Business Function (Logic Class)


• Transaction Business Function.

Business Function Origin


• C

Sources in this Business Function


No.TypeSource DescriptionData Structure
1B9800100Get Audit InformationD9800100
2B4200410F40203 Get Next Status from Activity RulesD4200410

3B7600950F42119 Write Sales History LedgerD7600950

4B7600980Add Tax Lines To Sales Order DetailD7600980

5B7601180SO Additional Cost Lines ReverseD7601180

6B0100024Update Customer CurrencyD0100024


Related Tables by Source


Source Table DescriptionPrimary / SecondaryModeKey Fields or Notes
F4211Sales Order DetailPrimaryUpdtPrimary, Unique
F7611BNota Fiscal DetailSecondaryReadPrimary, Unique




Source Data Structure


No.Data ItemRequiredI/ODescription
1.LNTYYiProcessing Options from R76B803  Tax line Type
2.LTTRYIProcessing Options from R76B803  Beginning Status

3.NXTRYIProcessing Options from R76B803  Next Status Code From

4.NXTRYIProcessing Options from R76B803  Next Status Code To

5.EV01YIProcessing Options from R76B803  Reverse or Return Freight 

6.EV01YIProcessing Options from R76B803  Reverse or Return Insurance 

7.EV01YIProcessing Options from R76B803  Reverse or Return Additional Expenses 

8.LNTYYIProcessing Options from R76B803  Line Type for Freight

9.LNTYYIProcessing Options from R76B803  Line Type for Insurance

10.LNTYYIProcessing Options from R76B803  Line Type for Additional Expenses

11.AAYI/ONota Fiscal Header Total  amount to update NF Header

12.DOCOYISO Number  from Business View

13.DCTOYISO Doc. Type  from Business View

14.KCOOYISO Company -  from Business View

15.EV01YIcCurrencyConversion

16.CRYRYIcCurrencyConvType

17.EV01YocErrorCode: 1-No Error; 0-Error

18.DTAIYiszErrorMessage

19.AN8YiAddressBook for Customer Currency

20.TRDJYiTransaction Date for Customer Currency



Special Logic

Performance Impact


Type A

^

Data Structure

D7601170 - Sales Order Nota Fiscal Return - Brazil               - 42

Parameter NameData ItemData TypeReq/OptI/O/Both
szPOLineTypeLNTYcharOPTINPUT

A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as 
General Ledger, Job Cost, Accounts Payable, Accounts Receivable, and Inventory Management. It also specifies the conditions under 
which a line prints on reports, and it is included in calculations. Codes include the following: S Stock item   J Job cost   N Nonstock item   F Freight  
T Text information   M Miscellaneous charges and credits   W Work order

szPOBeginningStatusLTTRcharOPTINPUT

A code (system 40/type AT) specifying the last step in the processing cycle that this order line has successfully completed.

szPOStatusNextFromNXTRcharOPTINPUT

A user defined code (system 40/type AT) indicating the next step in the order flow of the line type.

szPOStatusNextToNXTRcharOPTINPUT

A user defined code (system 40/type AT) indicating the next step in the order flow of the line type.

cPOReverseFreightEV01charOPTINPUT

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

cPOReverseInsuranceEV01charOPTINPUT

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

cPOReverseExpensesEV01charOPTINPUT

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

szPOLineTypeFreightLNTYcharOPTINPUT

A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as 
General Ledger, Job Cost, Accounts Payable, Accounts Receivable, and Inventory Management. It also specifies the conditions under 
which a line prints on reports, and it is included in calculations. Codes include the following: S Stock item   J Job cost   N Nonstock item   F Freight  
T Text information   M Miscellaneous charges and credits   W Work order

szPOLineTypeInsuranceLNTYcharOPTINPUT

A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as 
General Ledger, Job Cost, Accounts Payable, Accounts Receivable, and Inventory Management. It also specifies the conditions under 
which a line prints on reports, and it is included in calculations. Codes include the following: S Stock item   J Job cost   N Nonstock item   F Freight  
T Text information   M Miscellaneous charges and credits   W Work order

szPOLineTypeExpensesLNTYcharOPTINPUT

A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as 
General Ledger, Job Cost, Accounts Payable, Accounts Receivable, and Inventory Management. It also specifies the conditions under 
which a line prints on reports, and it is included in calculations. Codes include the following: S Stock item   J Job cost   N Nonstock item   F Freight  
T Text information   M Miscellaneous charges and credits   W Work order

mnOrderGrossDifferenceAAMATH_NUMERICOPTBOTH

A number that identifies the amount that the system will add to the account balance of the associated account number.  Enter credits with a 
minus sign (-) either before or after the amount. 

mnDocumentOrderInvoiceEDOCOMATH_NUMERICOPTINPUT

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szOrderTypeDCTOcharOPTINPUT

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

szCompanyKeyOrderNoKCOOcharOPTINPUT

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

cReturnErrorEV01charOPTOUTPUT

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

cCurrencyConverTypeCRYRcharOPTINPUT

A code that specifies whether to use multi-currency accounting, and the method of multi-currency accounting to use: Codes are:    N Do not 
use multi-currency accounting. Use if you enter transactions in only one currency for all companies. The multi-currency fields will not appear 
on forms. The system supplies a value of N if you do not enter a value.    Y Activate multi-currency accounting and use multipliers to convert 
currency. The system multiplies the foreign amount by the exchange rate to calculate the domestic amount.    Z Activate multi-currency 
accounting and use divisors to convert currency. The system divides the foreign amount by the exchange rate to calculate the domestic amount.

cCurrencyConversionEV01charOPTINPUT

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

szErrorCodeDTAIcharOPTOUTPUT

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

szUserIdUSERcharOPTINPUT

The code that identifies a user profile.

szWorkStationIdJOBNcharOPTINPUT

The code that identifies the work station ID that executed a particular job.

jdDateUpdatedUPMJJDEDATEOPTINPUT

The date that specifies the last update to the file record.

mnTimeOfDayTDAYMATH_NUMERICOPTINPUT

The computer clock in hours:minutes:seconds.

Related Functions

None

Related Tables

None