![](https://spicatech.in/wp-content/uploads/2024/02/InvoiceProcessing.jpg)
![](https://spicatech.in/wp-content/uploads/2024/02/Invoice-processing-1024x584.png)
INTRODUCTION
Invoice is a certified document that records the list of products purchased by the customer, amount to be collected for the ordered quantity and required amount to be collected from the customer. The payment or settlement process for an order is initiated by an invoice. Invoice can be created through agent or API.
INVOICE RELATED TRANSACTIONS
- Order Invoice
- Shipment Invoice
- Void Invoice
- Send Invoice
ORDER INVOICE
The order invoice is created anywhere during the order life cycle. The order invoice agent is configured after all the changes are made in quantity and pricing. so that the invoice reversal process will be reduced. This agent will create the invoice for all eligible orders and update the invoice status to the created status (00).
CONFIGURATION
Application Platform – Process Modeling – Order Fulfillment – Transactions (Create an abstract transaction and select Create Order Invoice)
![](https://spicatech.in/wp-content/uploads/2024/02/Picture1.png)
![](https://spicatech.in/wp-content/uploads/2024/02/Picture2-1024x346.png)
ORDER FLOW FOR ORDER INVOICING
Create an order with Charge, Tax and Payment details.
![](https://spicatech.in/wp-content/uploads/2024/02/Picture3-1024x344.png)
Create Order Invoice:
![](https://spicatech.in/wp-content/uploads/2024/02/Picture4-1024x351.png)
Invoice Details : Invoice Type – Order
![](https://spicatech.in/wp-content/uploads/2024/02/Picture5.png)
![](https://spicatech.in/wp-content/uploads/2024/02/Picture6.png)
TABLE
After Creating the Invoice, ORDER_INVOICE Charge Type will Opened in YFS_CHARGE_TRANSACTION table.
![](https://spicatech.in/wp-content/uploads/2024/02/Picture7.png)
After calling the request and execute collection and check YFS_CHARGE_TRANSACTION table. Both ORDER_INVOICE and CHARGE status changed to “CHECKED”
![](https://spicatech.in/wp-content/uploads/2024/02/Picture8.png)
SHIPMENT INVOICE
A shipment invoice is created anywhere during shipment processing, and it can be created multiple times for a single order. The agent will created for a shipment invoice, and it will pick all the eligible records and create a shipment invoice for those records.
CONFIGURATION
Application Platform – Process Modeling – Outbound Shipment – Transactions (Create an abstract transaction and select Create Shipment Invoice)
![](https://spicatech.in/wp-content/uploads/2024/02/Picture9.png)
![](https://spicatech.in/wp-content/uploads/2024/02/Picture10-1024x633.png)
ORDER FLOW FOR SHIPMENT INVOICE
Create an Order with Charge, Tax and Payment Types
![](https://spicatech.in/wp-content/uploads/2024/02/Picture11-1024x268.png)
After Shipped status Create an Shipment Invoice
![](https://spicatech.in/wp-content/uploads/2024/02/Picture12-1024x663.png)
Invoice Details: Shipment Invoice Created and Invoice Type is Shipment
![](https://spicatech.in/wp-content/uploads/2024/02/Picture13-1024x216.png)
![](https://spicatech.in/wp-content/uploads/2024/02/Picture14-1024x380.png)
TABLE
After Creating an shipment invoice, the SHIPMENT charge Type will opened in the YFS_CHARGE_TRANSACTION table
![](https://spicatech.in/wp-content/uploads/2024/02/Picture15-1024x143.png)
After Calling the Request and Execute Collection, the SHIPMENT and CHARGE Status is moved to CHECKED.
![](https://spicatech.in/wp-content/uploads/2024/02/Picture16-1024x143.png)
VOID INVOICE
Voiding an invoice is the process of canceling or reversing a previously issued invoice. This action renders the initially issued invoice no longer valid. Common reasons for voiding an invoice include unsuccessful settlement, customer order cancellations, or other business considerations. After voiding, the invoice is typically marked with a status indicating that it has been voided, and the invoice status is set to ’02’ (Voided Status).
A void invoice will fail if the invoice has already been sent to an external system, as indicated by an invoice status of ’01’ (Sent Invoice Status). Only invoices with a status of ’00’ (Invoice Created Status) are eligible to be voided. This has two types.
- Void Order Invoice
- Void Shipment Invoice
VOID ORDER INVOICE
CONFIGURATION
Application Platform – Process Modeling – Order Fulfillment – Transactions (Create an abstract transaction and select Void Order Invoice)
![](https://spicatech.in/wp-content/uploads/2024/02/Picture17.png)
![](https://spicatech.in/wp-content/uploads/2024/02/Picture18-1024x341.png)
WORKING FLOW
Create an Order with Charge, Tax and Payment Types
![](https://spicatech.in/wp-content/uploads/2024/02/Picture19-1024x339.png)
Create Invoice for the Order
![](https://spicatech.in/wp-content/uploads/2024/02/Picture20-1024x218.png)
TABLE
After Creating the Invoice, the ORDER_INVOICE charge type will opened in the YFS_CHARGE_TRANSACTION table
![](https://spicatech.in/wp-content/uploads/2024/02/Picture21-1024x141.png)
Void Order Invoice: For Reversing the invoice, call voidInvoice API for that Order
Table: After creating the void invoice, the status is changed to VOIDED
![](https://spicatech.in/wp-content/uploads/2024/02/Picture22-1024x137.png)
VOID SHIPMENT INVOICE
CONFIGURATION
Application Platform – Process Modeling – Outbound Shipment – Transactions (Create an abstract transaction and select Void Shipment Invoice)
![](https://spicatech.in/wp-content/uploads/2024/02/Picture23.png)
![](https://spicatech.in/wp-content/uploads/2024/02/Picture24-1024x395.png)
WORKING FLOW
Create an Order with Charge, Tax and Payment details.
![](https://spicatech.in/wp-content/uploads/2024/02/Picture25-1024x396.png)
After Shipped Create a Shipment Invoice
![](https://spicatech.in/wp-content/uploads/2024/02/Picture26-1024x375.png)
![](https://spicatech.in/wp-content/uploads/2024/02/Picture27.png)
TABLE : After Creating the Invoice, the SHIPMENT charge type will opened in the YFS_CHARGE_TRANSACTION table
![](https://spicatech.in/wp-content/uploads/2024/02/Picture28.png)
Void Shipment Invoice: For reversing the shipment invoice, call voidInvoice API for the Shipment of order.
Table: After creating the void shipment invoice, SHIPMENT status is changed to VOIDED
![](https://spicatech.in/wp-content/uploads/2024/02/Picture29.png)
SEND INVOICE
This transaction will collect all the records with a invoice created status(00), and it will publish those invoices to an external system. Create an agent server for Send Invoice to publish the created invoice to other system and change the invoice status to 01.
CONFIGURATION
Time triggered transaction – Application Platform – Process Modeling – Order Fulfillment – Transactions – Send Invoice
![](https://spicatech.in/wp-content/uploads/2024/02/Picture30.png)
PUBLISH_INVOICE_DETAILS Event of the Send Invoice transaction will publish the invoice details to external system
![](https://spicatech.in/wp-content/uploads/2024/02/Picture31-1024x347.png)
WORKING FLOW
Agent will fetch the records with status of 00.
![](https://spicatech.in/wp-content/uploads/2024/02/Picture32.png)
Run the Agent Server: It will Publish the Invoice details to External System and updated the status from 00 to 01.
![](https://spicatech.in/wp-content/uploads/2024/02/Picture33.png)
The above information will provide a detailed explanation of the invoice process for sterling payment collection.
#LetsTalkOMS #SpicaTech