SAC Loop Documentation
810 SAC Segment Mapping Guide for NetSuite Invoices
Overview
The SAC (Service, Promotion, Allowance, or Charge) segment in 810 invoice transactions automatically captures discounts and shipping charges from NetSuite invoices and maps them to the appropriate EDI format.
How SAC Segments are Generated
Discounts
Discounts appearing on NetSuite invoices are automatically mapped to SAC segments when:
- Line items with item type "Discount" are present on the invoice
- The discount is linked to an Orderful Discount configuration record
Mapping Details:
- Allowance vs Charge: Positive amounts map to "Allowance", negative amounts to "Charge"
- SAC Code: Pulled from the discount configuration (see setup below)
- Amount: The discount amount in cents (multiplied by 100)
- Handling Method: Always set to "Off Invoice"
Shipping Charges
Shipping charges are automatically aggregated and mapped when:
- Line items with item type "ShipItem" are present on the invoice
- Total shipping cost is greater than zero
Mapping Details:
- Type: Always mapped as "Charge"
- SAC Code: Fixed as "Shipping_and_Handling"
- Amount: Total of all shipping line items in cents
Setting Up Discount Configurations
To ensure discounts map correctly to SAC segments:
1. Create Orderful Discount Records
Navigate to Customization > Lists, Records, & Fields > Record Types > Orderful Discount
For each discount type you use, create a record with:
- Customer: The customer this discount applies to (if customer-specific)
- Item: The NetSuite discount item
- Accept Amount: The acceptable discount amount
- Discount Code: The SAC code to use in the 810 transaction
2. Common SAC Discount Codes
Select the appropriate code based on your trading partner's requirements:
C310
- DiscountC240
- Volume DiscountD170
- Free GoodsD500
- RebateG740
- Promotional AllowanceC300
- Trade Discount
3. Link Discounts to Transactions
The system automatically links discounts when:
- Header-level discounts are applied to the entire invoice
- Line-level discounts are applied to specific items
- The discount item matches a configured Orderful Discount record
Troubleshooting
Discounts Not Appearing in SAC
Check:
- Orderful Discount record exists for the discount item
- Discount code field is populated in the configuration
- Invoice has the discount properly applied as a line item
Incorrect SAC Codes
Verify:
- The correct SAC code is set in the Orderful Discount configuration
- The right discount configuration is being matched (check customer/item combination)
Shipping Charges Missing
Ensure:
- Shipping items are properly classified as "ShipItem" type
- Shipping amount is greater than zero
- Shipping lines are included in the invoice
Updated about 2 hours ago