Skip to main content
Version: Current

Purchase Credits

Overview

📥 Direction: NetSuite → Zudello
🔄 Sync Type: Incremental sync
⏱️ Frequency: Every 15 minutes
📋 Entity: Vendor credit memos with line items

Vendor credit memos flow from NetSuite to Zudello for tracking returns, price adjustments, and billing corrections. The integration handles absolute value conversion to ensure credits are properly represented as positive values in Zudello.

Key Benefits

Absolute Value Processing - Automatic conversion of negative amounts
Return Tracking - Monitor product returns and defects
Price Adjustments - Handle billing corrections and discounts
Bill Application - Track credits applied to vendor bills
Audit Trail - Complete credit memo history for reconciliation

Processing Strategy

The integration employs specialized processing for credit memos:

  • Convert negative NetSuite amounts to positive values
  • Maintain credit memo relationships to original bills
  • Handle both item returns and price adjustments
  • Filter for posted credits only
  • Support partial and full credit scenarios

Field Mappings

Header Fields

NetSuite FieldZudello Transaction FieldData TypeNotes
traniddocument_numberStringCredit memo number
trandatedate_issuedDateCredit date
entitysupplierRelationLinks to Supplier
currencycurrencyRelationLinks to Currency
subsidiarysubsidiaryRelationLinks to Subsidiary
postingperiodposting_periodStringAccounting period
appliedtolinktypeapplied_to_typeStringLink type (Bill)
appliedtotransactionapplied_to_billRelationLinks to original bill
statustransaction_statusStringCredit status
exchangerateexchange_rateDecimalCurrency rate
memonotesStringCredit memo reason
totaltotal_amountDecimalAbsolute value of total

Line Item Field Mappings

NetSuite FieldZudello Line FieldData TypeNotes
lineline_numberIntegerLine sequence
itemitemRelationLinks to Item (if return)
accountaccountRelationLinks to Account (if adjustment)
descriptiondescriptionStringLine description
quantityquantityDecimalAbsolute value
rateunit_priceDecimalAbsolute value
amounttotal_exclusiveDecimalAbsolute value
taxamounttax_totalDecimalAbsolute value
grossamttotal_inclusiveDecimalAbsolute value
departmentdepartmentRelationLinks to Department
classclassificationRelationLinks to Classification
locationlocationRelationLinks to Location
isbillableis_billableBooleanBillable flag

API Configuration

SuiteQL Query Structure

Specialized query handling:

  • Transaction table filtered for VendCred type
  • TransactionLine with absolute value conversion
  • Applied-to relationships for bill tracking
  • Status filtering for posted credits only

Query Filters

  • transaction.type = 'VendCred' - Vendor credits only
  • transaction.status = 'Posted' - Posted transactions
  • transactionline.mainline = 'F' - Exclude headers
  • transactionline.taxline = 'F' - Exclude tax lines
  • ABS() functions for amount conversion

Sync Configuration

Incremental Sync Details

  • Sync Field: lastmodifieddate
  • Initial Load: All posted vendor credits
  • Updates: Modified credits since last sync
  • Frequency: Every 15 minutes
  • Special Handling: Absolute value conversion

Processing Requirements

Credits are synced when:

  • Status is "Posted"
  • Contains valid line items
  • Not voided or deleted
  • Has proper vendor reference

Special Processing Features

Absolute Value Processing

All credit amounts are converted to positive values:

Original NetSuite Values:

  • Amount: -100.00
  • Tax: -10.00
  • Total: -110.00

Converted Zudello Values:

  • Amount: 100.00
  • Tax: 10.00
  • Total: 110.00

Credit Application Tracking

Track relationships between:

  • Credit memo and original vendor bill
  • Partial vs full credit applications
  • Multiple credits to single bill
  • Unapplied credit balances

Return Type Classification

Item Returns:

  • Physical product returns
  • Quantity and item reference
  • Inventory impact tracking

Price Adjustments:

  • Billing corrections
  • Service credits
  • Account-based adjustments

Document Classification

All credits set with:

  • Module: "ACCOUNTS_PAYABLE"
  • Submodule: "CREDIT"
  • Document Type: "VENDOR_CREDIT"
  • Amount Sign: Always positive

Processing Logic

Absolute Value Conversion

For each amount field:
zudello_amount = ABS(netsuite_amount)

Special handling:
- Preserve credit nature through document type
- Maintain positive values for processing
- Track original bill relationships

Line Type Processing

  1. Identify line type (item return vs adjustment)
  2. Apply absolute value to all amounts
  3. Preserve quantity signs for returns
  4. Map appropriate account/item references
  5. Include all dimension allocations

Application Status

NetSuite StatusZudello StatusDescription
OpenOPENUnapplied credit
Partially AppliedPARTIALSome credit used
Fully AppliedAPPLIEDFully utilized
PostedPOSTEDAvailable for use
VoidedVOIDEDCancelled credit

Troubleshooting

IssueCauseSolution
Negative amounts showingAbsolute value not appliedVerify ABS() processing
Missing credit memosStatus filteringCheck posted status
Wrong bill referenceApplied-to link missingVerify bill relationships
Line items missingFilter too restrictiveCheck line type flags
Dimension data gapsMapping incompleteConfigure dimensions
Currency conversion errorsRate calculationVerify exchange rates
Partial credits wrongApplication trackingCheck credit allocations