ERPNext Connector - SendOrder
This document describes the process of sending an order from App4Sales to ERPNext.
Data Source Configuration
The connector sends a POST request to the /api/resource/Sales%20Order endpoint of the ERPNext API. The API credentials (address, username, and password) are configured in the App4Sales administration.
Data Mapping Table (Order Header)
App4Sales Field | Source Field (API/Excel/DB) | Logic/Notes |
order.Customer.CustomerCode | customer | The customer code from the App4Sales order. |
order.OrderDate | delivery_date | The order date from the App4Sales order. |
Data Mapping Table (Order Lines)
App4Sales Field | Source Field (API/Excel/DB) | Logic/Notes |
orderLine.ItemCode | item_code | The item code from the App4Sales order line. |
- (Derived) | amount | The total amount for the order line, including discounts. Calculated as |
orderLine.Quantity | qty | The quantity of the item in the App4Sales order line. |
- (Hardcoded) | warehouse | The default warehouse for sales orders, configured in the connector settings. Value is taken from |
Related Settings & Prerequisites
The following settings must be configured for the connector to work correctly:
DefaultWarehouseForSalesOrders: The default warehouse to use for sales orders.