2024.2 [b2b] NetSuite Invoice Import from NetSuite
The NetSuite Invoice is the post-process of the Order Export Process. This process is a B2B process, which means the client must have Magento 2 with B2B installed. Once the Order with the Purchase Order or the Payment on Account(Company Credit Limit) payment method is exported, and an invoice is created for it in NetSuite, the NetSuite Invoice Import is triggered. As part of the NetSuite Import Process (see: 2024.2 2. Import process), \RocketWeb\NetSuitePayments\Model\Process\Import\Invoice::process() transforms the NetSuite Invoice into Magento format.
This module also depends on the RocketWeb/NetSuiteInvoice module that is responsible for the CashSales Import from NetSuite. The same logic is used for mapping.
The NetSuite Invoice can be added to the import queue only if (is Magento Importable):
- It has the status 'Paid In Full'
- Order in Magento have Purchase Order or Payment on Account(Company Credit Limit)
This process does not support Invoice Update.
Transform the NetSuite Invoice into Magento Format
The same logic is used as for NetSuite Cashsale Import (see: 2024.2 NetSuite Cashsale Import from NetSuite).
Save Magento Invoice
The same logic is used as for NetSuite Cashsale Import (see: 2024.2 NetSuite Cashsale Import from NetSuite).