## (CHL and PER) Working With Sales Order Processing for Chile and Peru

This chapter discusses how to:

- (CHL and PER) Associate legal document types and companies to Voucher Print versions.

- (CHL and PER) Process credit notes and debit notes.

- (CHL and PER) Inquire on sales orders.

- (CHL) Change the invoice date.

### (CHL and PER) Associating Legal Document Types and Companies to Voucher Print Versions for Chile and Peru

This section provides an overview of voucher print and lists the forms used to select a version of the Print Legal Documents program.

#### Understanding Print Legal Documents

Use the Legal Document Print UBE/Verison program (P76H3B39) to associate versions of the Print Legal Documents program (R76H3B30) to legal document types by company. The system stores all records in the Legal Documents Print UBE & Versions table (F76H3B39). When you print from the Lot Review Inquiry program, the system uses the version that you create for the Print Legal Documents program.

#### Forms Used to Associate Legal Document Types and Companies to Print Legal Documents Versions

Form Name | FormID | Navigation | Usage
Work with Legal Documents UBE & Versions | W76H3B39A | (CHL) Sales Order Processing (G76H42), Legal Document Print UBE/Version (PER) Sales Order Processing (G76P42), Legal Document Print UBE/Version | Locate existing associations between versions of the Print Legal Documents program and legal document types and companies.
Legal Documents UBE & Versions | W76H3B39C | Click Add on the Work with Legal Documents UBE & Versions form. | Add a version of Print Legal Documents by legal document and company.

### (CHL and PER) Processing Credit Notes and Debit Notes Related to Documents for Chile and Peru

This section provides an overview of credit and debit notes for Chile and Peru, lists prerequisites, and discusses how to:

- Set processing options for Process Credit Notes and Debit Notes Related to Documents (P76H4210).

- Process credit notes and debit notes related to documents.

#### Understanding Credit and Debit Notes for Chile and Peru

You can inquire on legal document numbers and relate them to a sales order. For example, you can relate a credit note to one or more invoices, or you can relate a debit note to one or more credit notes.

You must enter 1 in the processing options of PO – Sales Order Entry (P4210) (P76H4210) to relate sales orders to a credit note or to one or more invoices.

Note. Any changes that you make by using this program affect the entire order. When you relate one or more invoices to a credit order and legal numbers of related invoices, this information prints in the credit note. By law, invoices related to credit notes must belong to the same customer.

The system stores records for credit notes or debit notes related to invoices or credit notes in the NC/ND - Invoice Related - CHI - 42 - 76H table (F76H215).

If the tax rate changes when the program generates a credit or debit note related to an invoice; the credit note that the program creates must be the same tax rate in the related document. You must create and relate a credit note with a tax area with the same tax rate as the related invoice.

#### Prerequisites

Before you complete the task in this section:

- Verify that the processing option for PO – Sales Order Entry (P4210) (P76H4210) is active.

- Set up corresponding versions of the Sales Order Entry (P4210) program and the PO – Sales Order Entry (P4210) (P76H4210) program.

#### Forms Used to Process Credit Notes and Debit Notes Related to Documents

Form Name | FormID | Navigation | Usage
Customer Service Inquiry | W4210E | Additional Order Processes (G4212), Credit Orders From History | Review and select sales orders.
Sales Order Detail Revisions | W4210A | Click Add on the Customer Service Inquiry form. | Enter credit order information.
NC/ND Related to Sales Orders | W76H4210A | After entering credit order information, click OK on the Sales Order Detail Revisions form. | Review existing credit orders, or add credit orders.
Select Related Order Document | W76H4210B | Select an order and select Document Inquiry from the Form menu on NC/ND Related to Sales Orders. | Relate an order to a credit note. The system places a check mark on the row with the order to indicate there is a related credit note.

#### Setting Processing Options for Process Credit Notes and Debit Notes Related to Documents (P76H4210)

Processing options enable you to specify the default processing for programs and reports.

General

1. Related Sales Order | Enter 1 to enter SO related invoices.

#### Process Credit Notes and Debit Notes Related to Documents

Use one of these navigations:

- (CHL) Select Sales Order (G76H42), PO – Sales Order Entry. Select the version to run.

- (PER) Select Sales Order (G76P42), PO – Sales Order Entry. Select the version to run.

Before you process this program, complete the steps to relate a credit note to an order.

### (CHL and PER) Inquiring on Sales Orders for Chile and Peru

This section provides an overview of sales order inquiries for Chile and Peru, lists a prerequisite, and discusses how to set the processing options for the Order Inquiry by Legal Document (P76H2012) program.

#### Understanding Sales Order Inquiries for Chile and Peru

Sales Order inquiries must meet Chilean and Peruvian legal requirements. Using the localized inquiries enables you to display vouchers' legal numbers (invoice, ticket, export invoice, and so on) and the shipping guide, with the internal number generated by the sales order number and type.

Customer Service

You use the Customer Service program (P4210) to check the information for a customer’s sales orders and items in the Sales Orders Detail (F4211) table or in the Historical Sales Orders Detail (F42119) table. Using the localization menu selections, you can display the legal document number and type (invoices, tickets, shipping guides, export invoices, and so on) with a sales order. You can also view the shipping guide with the internal number generated by the sales order number and type.

Sales Ledger History

You can review information in the sales ledger for any order that has been through the sales order process. You can also view the legal document number with a sales order.

Orders Inquiry by Internal Document

Using Orders Inquiry by Internal Document form, you can access the legal document numbers and document types for a sales order. You can inquire by internal document type and document number or by sales order number and type.

Note. When you review a sales order line, there is a row for each voucher line. For example, there are two rows for order line 1000: one line corresponding to the legal invoice number and the other to the legal shipping guide number.

Order Inquiry by Legal Document

You can inquire on a sales order using the legal number. You can also inquire by legal document type and number, order type and number, and invoice internal document type and number.

Sales Order – Batch Inquiry

You can use this inquiry to locate sales orders by batch.

Voided Documents Inquiry

You can use this inquiry to locate voided legal documents for the JD Edwards EnterpriseOne Accounts Receivable system and the JD Edwards EnterpriseOne Sales Order Management system.

#### Prerequisite

Verify that all voucher types are set up in UDC 76H/DG.

#### Forms Used for Sales Order Inquiries

Form Name | FormID | Navigation | Usage
Customer Service - Customer Service Inquiry | W4210E | Sales Orders Inquiry (G42112), Customer Service | Locate customer sales orders and items.
Sales Legal Document Inquiry by Internal Document | W76H2011A | (CHL) Sales Order (G76H42), Sales Legal Document Inquiry by Internal Document Alternatively, select an order and then select Order, Regional Information from the Row menu on the Customer Service - Customer Service Inquiry form. (PER) Sales Order (G76P42), Sales Legal Document Inquiry by Internal Document Alternatively, select an order and then select Order, Regional Information from the Row menu on the Customer Service - Customer Service Inquiry form. | Review sales order legal document numbers and types.
Sales Ledger History Inquiry - Work With Sales Ledger Inquiry | W42025A | Sales Orders Inquiry (G42112), Sales Ledger History Inquiry | Review sales ledger information.
Sales Legal Document Inquiry by Legal Number | W76H2012A | (CHL) Sales Order (G76H42), Sales Legal Document Inquiry by Legal Number (PER) Sales Order (G76P42), Sales Legal Document Inquiry by Legal Number | Review sales orders by legal number.
Sales Order /Lot Inquire | W76H2013A | (CHL) Sales Order (G76H42), Order Lot – Inquiry (PER) Sales Order (G76P42), Order Lot – Inquiry | Locate sales orders by batch.
Void Invoices - Work with Legal Next Numbers for Cancellation | W76H3B20A | (CHL) Sales Order (G76H42), Void Invoices (PER) Sales Order (G76P42), Void Invoices | Locate voided legal documents for the JD Edwards EnterpriseOne Accounts Receivable and JD Edwards EnterpriseOne Sales Order Management systems.
Void Invoices - Work with Invoices not Printed | W76H3B20C | Select an invoice and then select Invoices not Printed from the Row menu on the Void Invoices - Work with Legal Next Numbers for Cancellation form. | Review voided legal documents.

#### Setting Processing Options for Order Inquiry by Legal Document (P76H2012)

Processing options enable you to specify the default processing for programs and reports.

General

You must enter document types in UDC 76H/DG to inquire by legal number by document type. Enter the value without spaces and commas in each processing option. For example, if you want the shipping guide number of an order to display in column 1 and the invoice or ticket number in column 2, you might enter 08 for column 1 and 0102 for column 2.

Legal document types group of UDC 76H/DG for column 1 | Specify a legal document type that the system uses to select records to display in column 1 in the Sales Legal Document Inquiry by Legal Number form. The value that you enter must exist in the Legal Document Type Group (74/DG) UDC table.
Legal document types group of UDC 76H/DG for column 2 | Specify a legal document type that the system uses to select records to display in column 2 in the Sales Legal Document Inquiry by Legal Number form. The value that you enter must exist in the Legal Document Type Group (74/DG) UDC table.
Legal document types group of UDC 76H/DG for column 3 | Specify a legal document type that the system uses to select records to display in column 3 in the Sales Legal Document Inquiry by Legal Number form. The value that you enter must exist in the Legal Document Type Group (74/DG) UDC table.

Versions

Enter the version for Header review of OV (P4210) | Enter a version of the Sales Order Entry program that you want to use for header review. If you leave this processing option blank, the system uses version ZJDE0001.
Enter the version for Detail review of OV (P4210) | Enter a version of the Sales Order Entry program that you want to use for detail review. If you leave this processing option blank, the system uses version ZJDE0001.
Enter the version for OV Date (P42045) | Enter a version of the Customer Service Inquiry program or leave this processing option blank to use version ZJDE0001.
Enter the version for OV Address numbers (P42045) | Enter a version of the Customer Service Inquiry program or leave this processing option blank to use version ZJDE0001.
Enter the version for OV Line Detail (P42045) | Enter a version of the Customer Service Inquiry program or leave this processing option blank to use version ZJDE0001.
Enter the version for Customer Service (P4210) | Enter a version of the Sales Order Entry program that you want to use for customer service. If you leave this processing option blank, the system uses version ZJDE0001.

### (CHL and PER) Working with Billing Information for Chile and Peru

This section provides overviews of the billing process for Chile and Peru, and sales order inquiry by status by batch, lists prerequisites, and discusses how to set processing options for Printing Invoices and Shipping Guides (P76H2565)

See Also

(CHL and PER) Setting Up the System for Chile and Peru Legal Requirements

Setting Processing Options for Lot of Printing Review (P76H3B50)

#### Understanding Billing Information for Chile and Peru

Printing legal documents such as invoices is localized in the JD Edwards EnterpriseOne Sales Order Management and JD Edwards EnterpriseOne Accounts Receivable systems to meet Chilean and Peruvian legal requirements. You also use the JD Edwards EnterpriseOne Sales Order Management system to print shipping guides.

The billing process in the JD Edwards EnterpriseOne Sales Order Management system includes these tasks:

1. Run the Print Invoices program (R42565).

   This program generates the corresponding invoices, taking into account printing one invoice per page and considers all necessary data according to Chilean and Peruvian legal requirements. At the end of the process, the system issues a .pdf document with the print batch number containing all the invoices generated by during this process.

2. Number legal vouchers.

   With the batch number generated by the Print Invoices program, you can access the print program and number the legal vouchers in the batch prior to printing. The system performs validation for numbering.

3. Print vouchers.

   After the voucher is numbered, you can print vouchers.

Note. (PER) According to Peruvian legislation, identifiable goods sold or lent in use require that the serial or motor number be included in the invoice, ticket, or shipping guide. In order to comply with the legal requirement, these items must be set up and you must assign the batch or serial number in the order line.
To issue shipping guides, set the processing options for the Print Invoice program to the version that does not update the JD Edwards EnterpriseOne Accounts Receivable system. Entering an internal document type is not necessary.

(CHL) For Chile, it is recommended that you set up a specific version of the Print Invoices form to process invoice and sales tickets and external services (duty free).

(PER) For Peru, it is recommended that you set up a specific version of the Print Invoices program to process invoice and sales tickets, and another for export invoices.

The features of Invoice Summarizations by Item and Invoice Consolidation by Customer are not included in the Chilean or Peruvian localizations. You must disable these features in the processing options for the Print Invoice program(R42565). You cannot run Billing or Shipping Guides Generation in proof mode.

You can number and print one batch at a time. A batch cannot be numbered with a status of O (open) if there is a previous batch that is not at the status of C (closed). This enables the user to continue working while the system numbers vouchers.

You cannot delete batches generated in the JD Edwards EnterpriseOne Sales Order Management system because the system generates these batches in the Print Invoice program. You must delete the invoices by generating a credit note. You can delete batches that were generated from the JD Edwards EnterpriseOne Accounts Receivable system if the batch and the voucher have an open status. You must renumber vouchers the same day that you print them. You must renumber vouchers printed on prior dates.

Billing Process Features

Billing process features include:

- The ability to generate shipping guides.

- The ability to generate a print batch containing shipping guides and invoices.

  When you run the Print Invoices program, the system generates a print batch containing shipping guides and invoices. You must use this program to comply with the Peruvian legal requirement that states that the shipping guide must have the same number as the invoice number, and the invoice must contain the shipping guide number.

- The ability for different users to run the Print Invoices program at the same time to generate invoices, credit and debit notes, export invoices, and so on.

- Automatic invoice voiding when renumbering.

  For example, if there is an invoice printing problem, the system enables you to review the invoice, void it, renumber it, and reprint it. When renumbering invoices, the system automatically sends the voided document to a voided documents table.

- A flexible design that enables you to customize an invoice.

Generating Shipping Guides and Invoices

The Print Invoices program calls the Printing Invoices and Shipping Guides (P76H2565) program containing the localization parameters for generating legal documents.

These Chilean and Peruvian legal documents are generated by running Printing Invoices and Shipping Guides program:

- Invoices.

- Tickets.

- Shipping guides.

- Credit notes.

- Debit notes.

- Export invoices.

- Export credit and debit notes.

- (CHL) Tax-free goods and service invoices (duty free).

- (CHL) Tax free goods and service tickets (duty free).

The Printing Invoices and Shipping Guides program generates:

- A print batch.

  Each print batch consists of various documents (invoices, shipping guides, or shipping guides and invoices together), depending on the parameters that you set in the localized program processing options. Users locate the batch and number and print the documents in the batch.

- A .pdf file containing the number for the batch and the number of document processed.

  For example, the program generates batch 428, containing 1,000 invoices.

- Invoices, taking into account space limits by document.

  Depending on the setup, these invoices can contain discounts, attached data, shipping guide numbers, and all required legal information.

- Internal document type and number.

  Vouchers do not have a legal number assigned. To enter the legal number and print the voucher, you must use the Lot Review Inquiry program (P76H3B50).

- A .pdf document with a warning to address the work center to verify errors if the program does not run successfully.

  Users must correct sales orders, correct their statuses, and then run the program again. Sales orders with billing errors have a last status of 931 and next status of 831 or the statuses specified by the user in the processing options. This enables you to easily identify incorrect sales orders, correct them, and reprocess them.

Localized Tables

Tables the system uses for localized data include:

- F76H3B10: Legal documents Header.

- F76H211: Shipping Guide/Invoices.

- F76H3B50: Print Batch Header.

- F76H3B51: Print Batch Detail.

- F76H3B31: Print Header Image.

- F76H3B32: Print Detail Image.

- F76H3B33: Tax Detail.

- F76H3B34: Sales Order Lines.

- F76H3B35: Sales Order Price Adjustments Detail.

- F76H3B36: Attached Data Detail.

- F76H3B38: Shipping Guide Detail.

#### Understanding Sales Order Inquiry by Status by Batch

You can access the internal voucher type and number of the voucher using the voucher legal number.

You can also update the next status of orders in the batch after voucher printing (shipping guide or invoice). Renumbering vouchers does not update sales orders status.

Additionally, you can inquire on batches according to sales order status. You can choose to display or hide batches that belong to a sales order status range according to the processing options on the Sales Order Processing (SOP) tab. The batches that are not in the status range appear in light gray, and you can inquire on the detailed information, but you cannot number, renumber, or print the batch. This enables you to inquire on the batches that are in the status range that you entered in the processing options and other batches from the same batch version.

#### Prerequisites

Before you complete the tasks in this section:

- Verify that sales orders have a correct status code to print shipping guides and invoices.

- Set up legal document types.

- Set up print layout.

- Set the processing options for the Print Invoices and Printing Invoices and Shipping Guides programs.

  You must enter the same version in the processing option.

- Set up legal document types relationship.

- Verify localized tax area information.

- Set up activity rules for sales order types.

- Set up status codes.

#### Forms Used to Work with Billing Information

Form Name | FormID | Navigation | Usage
Lot Review | W76H3B50A | (CHL) Sales Order (G76H42), Lot of Printing Review (Inquiry and Re.) Complete the processing options, and then click OK. (PER) Sales Order (G76P42), Lot of Printing Review (Inquiry and Re.) Complete the processing options, and then click OK. | Inquire on batch vouchers, or inquire on sales orders by status by batch.
Edit Lot | W76H3B50B | Click Add on the Lot Review form. Select the lot and click Select. | Display sales orders in which a legal document relates to a print batch.
Sales Legal Document Inquiry by Internal Document | W76H2011A | Select a record on the Edit Lot form and select Sales Legal Document Inquiry from the Row menu. | Review sales order legal document numbers.
Get Internal Number From Legal Number | W76H3B50I | Select the batch, and select Get Internal Number from the Form menu on the Lot Review form. | Attach a legal number to a document.

#### Setting Processing Options for Printing Invoices and Shipping Guides (P76H2565)

Processing options enable you to specify the default processing for programs and reports.

General

1. Document to be generated | Specify the document the system will generate. Values are: 1: Generate an invoice, ticket, C/N, or D/N. 2: Generate a shipping guide. 3: Generate simultaneous invoice and shipping guide.
2. Issuing Series | Enter 001 for invoice, shipping guide, or simultaneous invoice and shipping guide.
3. Internal type document | Enter the internal document type (DCT) for the legal types relationship. For example, enter GD for the legal types relationship for the shipping guide or enter FD for invoice generation.
4. Shipping Guide | Enter the internal document type (DCT) for the legal types relationship. For example, enter GD for the legal types relationship for the shipping guide or enter FD for invoice generation.

Shipping Guides

1. Weight Unit of Measure for Print | Enter the weight unit of measure for printing. For example, enter KG for shipping guides and simultaneous invoice and shipping guide.
2. Volume Unit of Measure for print | Enter the volume unit of measure for printing. For example, enter M3 for shipping guides and simultaneous invoice and shipping guide.
3. Item unit price or Shipping Guides | Enter 1 to print the item unit price for shipping guides. This processing option does not apply for Peru.

Error Processing

1. Last Status Invoices | Enter the last status code to be used in invoices when errors are found. If you leave this processing option blank, the default value is 931.
Next Status Invoices | Enter the next status code to be used in invoices when errors are found. If you leave this processing option blank, the default value is 831.
Last Status Shipping Guides | Enter the last code status to be used in shipping guides when errors are found. If you leave this blank, the default value is 931.
Next Status Shipping Guides | Enter the next code status to be used in shipping guides when errors are found. If you leave this blank, the default value is 832.

### (CHL) Changing Invoice Dates for Chile

This section provides an overview of invoice dates, lists the forms used to change invoice dates, and discusses how to set processing options for Lot of Printing Invoice Date - CHI - 03B (P76H3B53).

#### Understanding Invoice Dates for Chile

When you print invoices using the Lot of Printing Review program (R76H3B50), the system uses the current system date as the date of the invoice. When you set the processing option to display the Invoice Date Override form, the Lot of Printing Invoice Date - CHI - 03B program (P76H3B53) enables you to change the invoice date. If you enter a new date for an invoice that is generated from the JD Edwards EnterpriseOne Sales Order Management system, the system verifies that the date entered is the equal to or greater than the order date. The system does not perform this validation for invoices generated from the JD Edwards EnterpriseOne Accounts Receivable system.

The Generate Legal Document Number - CHI - 03B program (R76H3B29) uses the invoice date that you enter instead of the current date.

#### Forms Used to Change the Invoice Date

Form Name | FormID | Navigation | Usage
Lot Review | W76H3B50A | Accounts Receivable (G76H03B), Lot of Printing Review | Review print batches.
Send Lot to Print | W76H3B50D | On the Lot Review form, locate and select the print batch for which you want to assign legal numbers, and then select Generate Legal Num (Generate Legal Numbers) from the Row menu. | Assign legal numbers to invoices in print batches.
Invoice Date Override | W76H3B53A | Click OK on the Send Lot to Print form. | Override the system assigned date for the invoice. Note. You must set the processing option for the Lot of Printing Date program (P76H3B53) to 1 to enable this form.
Review Lot Printing Orders | W76H3B53B | Select Orders Review from the Row menu on the Invoice Date Override form. | Verify the order and invoice dates.

#### Setting Processing Options for Lot of Printing Date (P76H3B53)

Processing options enable you to specify the default processing for programs and reports.

Default

Override Invoice Date | Enter 1 to display the Invoice Date Override form and enable the change of the invoice date.