Summary
This article explains enhancements made to the E-Invoice module in NetSuite to support overseas customers (i.e., those whose billing country is not India). These updates ensure appropriate field visibility, default values, and IRN payload compliance for export transactions.
Enhancement Overview
1. E-Invoice Button Visibility Logic
Condition:
The E-Invoice Generation button is now visible if the Billing Country on the customer record is not India.
if (billingCountry !== 'IN') {
displayEInvoiceButton();
}
2. Default Values for Foreign Customers
Auto-populate the below when Billing Country ≠ India:
Supply Type-EXPWP
Buyer GSTIN-URP
Buyer State Code-96
Place of Supply-96
Buyer PIN Code-999999
3. Export Details – New Field Group
A new field group called Export Details is added to the E-Invoice record.
Field Name| Mandatory| Description
Country Code| Yes| ISO Code of destination country
Foreign Currency| Yes| Currency used in the transaction
Port Code| No| Port used for shipment
Refund Claim| No| GST Refund eligibility (Y/N)
Shipping Bill No| No| Shipping Bill Number
4. IRN Payload Enhancement (For Exports)
The below ExpDtls block is added to the IRN payload only for foreign customers:
"ExpDtls": {
"CntCode": "AE",
"ForCur": "AED",
"Port": "INABG1",
"RefClm": "N",
"ShipBNo": "55654"
}