xMatix
Sign in Request demo
xMatix
PRODUCTS
SalesField Sales & SFACRMRewardsClaimsInventoryProcurementWarehouse ManagementField ServiceServiceSupportTelephony & MessagingFinance & AccountingPayrollExpense ManagementCommercePortalsAnalytics & ReportingData StudioMobile AppSee all products →
PLATFORM
Platform overviewApp BuilderAutomationIntegrationsSecurity & GovernanceChange ManagementDevelopers
SENSE AI
Sense AI overviewSense AssistSense ControlSense VisionAI StudioTrust & governanceIn Claude & ChatGPTUse cases
SOLUTIONS
Auto DMSConsumer Goods DMSSales Force Automation (SFA) FMCG & DistributionManufacturing & Dealer NetworksAutomotive & DealershipsPharma & HealthcareConsumer DurablesAgri-InputsBuilding MaterialsService NetworksWarehousing & 3PLFinancial AccountingERP SoftwareIndia GST ComplianceUAE VAT & e-InvoicingSaudi ZATCA & VATAll solutions →
RESOURCES
Knowledge CenterDeveloper & CLIBlogGuidesWhat is xMatix?Company facts
COMPANY
AboutCareersPartnersEventsContactAuthorsLegal
Sign in Request demo
Home/Docs/Entity Reference/Credit Note — entity reference
REFERENCE · Last reviewed

Credit Note — entity reference

A document that reduces what a party owes. One Credit Note record covers four kinds of credit, chosen by Transaction Type: blank is a financial credit note against a customer, SaleReturn is a customer return of goods, BillReturn is a purchase credit from a supplier, and Claim Settlement is a note raised by a trade-claim settlement. Notes are listed in the Finance app under Adjustments. They are raised from an invoice with Create Credit Note or created directly, filled with lines (Create From copies invoice lines, Quick Add adds one by hand), and posted with Post General Ledger, which reverses sales and tax and reduces the receivable (or, for BillReturn, reduces the payable and reverses the purchase and input tax). A posted note that names its invoice or bill is applied to it automatically. Credit notes never move stock.

Fields

FieldLabelTypeRequiredWhat it does
AccountIdAccountLookup → AccountThe customer the note credits. It is the party for blank, SaleReturn and Claim Settlement notes, whose receivable is reduced. The picker offers active customer accounts. On a SaleReturn note it cannot be changed after the first save.
AdjustedAmountAdjusted AmountCurrencyHow much of the note has been applied to invoices or bills, refunded, or used by a TDS reversal. Maintained by xMatix whenever the note or the documents it is applied to post.
AmountAmountCalculated (calculated)The sum of the line Amount values, before tax. Calculated from the lines.
BranchIdBranchLookup → BranchThe branch of the issuing company. The picker is limited to the selected Partner Account's branches. On a SaleReturn note it cannot be changed after the first save.
ClaimIdClaimLookup → ClaimThe trade claim whose settlement created this note. Set by the claim settlement job.
CreatedByIdCreated ByLookup → UserAccountYes
CreatedDateTimeCreated DateDateAndTimeYes
CurrencyCurrencyPickListValues: INR, GBP.
DeliveryOrderIdDelivery OrderLookup → DeliveryOrderThe outbound delivery the returned goods came out on, for sale-return notes; return quantities are written back to its lines. Purchase-return notes instead RELEASE a delivery order for the goods going back to the vendor, via the PerformReleaseDelivery / SelectiveDeliveryOrder actions.
DeliveryOrderLineIdDelivery Order LineLookup → DeliveryOrderLine
DescriptionDescriptionText
DiscountGroupIdDiscount GroupLookup → DiscountGroup
DocumentDateDocument DateDateYesThe note's date, set to the creation date. It decides the fiscal period the note posts in. On a SaleReturn note it cannot be changed after the first save.
DueDateDue DateDate
ExternalIdExternalText
GeneralLedgerIdGeneral LedgerLookup → GeneralLedgerLegacy pointer to the decommissioned GeneralLedger entity, retained on the row and guarded as a system field. The current ledger links the other way: Journal.SourceEntityName + Journal.SourceRecordId identify the document that produced the journal.
GLAccountIdGL AccountLookup → GLAccountA GL account recorded on the note. Posting does not use it: the receivable or payable leg comes from posting definitions or the chart's control account, and each line posts to its own GL Account. When Branch is empty, the account's default branch fills it.
GLAmountGL AmountCalculated (calculated)Equal to Amount.
GoodsReceiptIdGoods ReceiptLookup → GoodsReceipt
IdIdGuidYes
InvoiceIdInvoiceLookup → InvoiceThe invoice this note credits. A posted note is applied to this invoice automatically when the setting to apply credit notes on posting is on and the invoice has the same customer and company. It also limits Create From to that invoice's lines.
IsGLPostedIs GL PostedBooleanYesSystem field. Not set by the current posting process; read Status or GL Posting Status to see whether the note is posted.
IsGLPostingApprovedIs GL Posting ApprovedBooleanYesSet by Post General Ledger. Once set, saving the note posts or re-posts its journal.
IsInJobQueueIn Job QueueBoolean
IsReturnedReturnedBooleanSet true by the handler when PerformReturn is approved on a purchase-return (BillReturn) note; it marks the return as executed. Not maintained on financial or sale-return notes.
ItemIdItemLookup → Item
JobInterfaceQueueIdJob QueueLookup → InterfaceQueue
LineSubTotalLine Sub TotalCalculated
ModifiedByIdModified ByLookup → UserAccount
NameNameTextYes
NotesNotesLongMultiLineText
OpenAmountOpen AmountCalculatedTotal Amount less Adjusted Amount: the credit still available to apply or refund.
OwnerIdOwnerLookup → UserAccountYes
PartnerAccountIdPartner AccountLookup → AccountYour company that issues the note. The picker offers active partner accounts. Create From lists invoice lines of this company only.
PerformGLPostingPerform GL PostingBooleanYesNot read when a credit note is saved. A claim settlement copies its Auto GL Posting choice here, but the note is still created as Draft; post it with Post General Ledger.
PerformInventoryPostingPerform Inventory PostingBooleanNot used to post stock. Credit note lines have no inventory ledger rule, so credit notes never move stock.
PerformReturnPerform ReturnBooleanTwo distinct meanings by TransactionType. On a SaleReturn note it drives the PerformReturn action, which builds return lines from the invoice lines the user picked. On a BillReturn note, setting it true during a save makes the handler flip IsReturned to true and reset this flag back to false — so it behaves as a one-shot trigger, not a state.
PlaceOfSupplyPlace of SupplyPickList
PriceAsOnDatePrice As On DateDate
PriceListIdPrice ListLookup → PriceList
PriceListRuleIdPrice List RuleLookup → PriceListRule
PurchaseOrderIdPurchase OrderLookup → PurchaseOrder
RecordTypeIdRecord TypeGuid, hidden
RemarksRemarksTextFree text. A note raised from an invoice is given the text 'Credit against invoice' followed by the invoice number; a claim settlement note names the claim.
ResourceIdExecutiveLookup → Resource
RoundOffRound OffCurrencyA rounding amount added to the line totals to give Total Amount. When the note posts, it is booked to the Rounding posting definition (financial and BillReturn notes).
SourceOfSupplySource of SupplyPickList
StatusStatusPickListDraft or Posted. Moves to Posted when the note posts, and back to Draft if posting is undone. Edit is hidden once the note is Posted.
SupplierAccountIdSupplier AccountLookup → AccountThe supplier on a BillReturn note: the party whose payable is reduced. It must be a supplier account. It is not on the create form; set it on the Details tab before posting.
SupplierInvoiceAmountSupplier Invoice AmountCurrency
SupplierInvoiceDateSupplier Invoice DateDate
SupplierInvoiceNumberSupplier Invoice NumberTextThe vendor's own document number for the purchase being returned, carried on a BillReturn note for reconciliation against the supplier's books and for GST credit-note reporting on the inward side. Free text supplied by the user, not a link.
TaxSupplyTypeTax Supply TypePickList
TotalAmountTotal AmountCalculated (calculated)The sum of the lines' gross amounts (amount plus tax, less discounts) plus Round Off. This is the amount applied to the invoice or bill.
TotalDiscountAmountTotal Discount AmountCalculated (calculated)Calculated total of line net discount, summing the pre-merge "ReturnLines" collection rather than CreditNoteLines — unreliable; sum CreditNoteLine.NetDiscount directly.
TotalLineAmountTotal Line AmountCalculated (calculated)Calculated total of the line amounts, but its stored formula sums the pre-merge "ReturnLines" collection rather than CreditNoteLines — treat the value as unreliable and sum CreditNoteLine.Amount directly.
TotalLineBaseAmountTotal Line Base AmountCalculated (calculated)Calculated total of line base (pre-discount, pre-tax) amounts, summing the pre-merge "ReturnLines" collection rather than CreditNoteLines — unreliable; sum CreditNoteLine.BaseAmount directly.
TotalLineGrossAmountTotal Line Gross AmountCalculated (calculated)Header amount the BillReturn (purchase-return) posting purpose reads when posting the note, calculated over the pre-merge "BillReturnLines" collection — the same stale-navigation caveat as the other Total* columns applies, so verify against CreditNoteLine.GrossAmount.
TotalLineTaxAmountTotal Line Tax AmountCalculated (calculated)The sum of the line tax amounts.
TotalSchemeDiscountAmountTotal Scheme AmountCalculated (calculated)Calculated total of scheme discount on the lines (labelled "Total Scheme Amount"), summing the pre-merge "ReturnLines" collection rather than CreditNoteLines — unreliable; sum CreditNoteLine.NetSchemeDiscount directly.
TotalTaxAmountTotal Tax Posting AmountCurrencyA posting figure, not the line tax total. Read Total Line Tax Amount for the tax on the lines.
TotalTaxAmount2Total Tax AmountCalculated (calculated)Despite its label "Total Tax Amount" this is a calculated sum of a single tax slot only — Tax2 across the lines — and it sums the pre-merge "ReturnLines" collection at that. It is not the note's total tax. Use CreditNoteLine.TaxAmount for the real figure.
TransactionTypeTransaction TypePickListWhich kind of credit the note is: blank for a financial credit note, SaleReturn for a customer return of goods, BillReturn for a purchase credit from a supplier, or Claim Settlement for a note raised by a claim settlement. It decides the party and the ledger entries. On SaleReturn and BillReturn notes, new lines get their tax group from tax group rules; lines added on the web to a blank-type note get none. Values: SaleReturn, BillReturn, Claim Settlement.
UIPropsUI PropsText
UpdatedDateTimeModified DateDateAndTimeYes

Actions

ActionLabelTypeWhat it does
BulkDeleteDeleteDeleteDelete the selected records.
CloneCloneServerAction (Clone)Create a copy of this record
DeleteDeleteDeleteDelete
DeleteInListDeleteDeleteDelete in a list page
EditEditEditEdit
EditInLineEditEditEdit in page.
EditInLine1EditEditInlineEdit
EditListRowEditEdit, inactiveEditListRow
NewNewNewNew
PerformReturnPerform ReturnServerAction (PerformReturn)On a sale-return credit note, creates CreditNoteLine rows from the invoice lines passed in the action payload (an "InvoiceLines" array). The quantity write-backs to the Invoice, DeliveryOrder and Order lines are NOT done here — inserting the lines runs the line handler, which owns those aggregates and recomputes them as a SUM, so they stay correct when a line is later edited or removed.
PostAdjustmentsPost AdjustmentsServerAction (PostAdjustments)Advertised as a supported action on this entity, but the credit-note handler has no dispatch branch for it: invoking it reaches the handler and falls through to a NotSupportedException, and the seeded action row asks for no confirmation, so the user sees a raw error. Do not describe it as posting anything. Credit-note settlement is actually recorded by creating PaymentAdjustment rows (the claim-settlement path nets a note against the partner's open invoices oldest-first) or, on the current open-item engine, SettlementAllocation rows against the note's OpenTransaction.
PostGeneralLedgerPost General LedgerServerAction (PostGeneralLedger)Sets IsGLPostingApproved on the note and saves it; the save pipeline is what posts. The handler then posts through DocumentJournalPostingService under the purpose chosen by TransactionType — CreditNote (Dr Sales / Cr AR) for a financial note, Return (revenue and AR reversal) for a sale return, BillReturn (Dr AP / Cr GR-IR plus input-tax reversal, party SupplierAccountId) for a purchase return — creating one balanced journal plus the note's OpenTransaction, and captures GST tax transactions afterwards (outward for sales notes, inward for purchase returns). Posting is append-only: re-posting an already-posted document produces reversal journals rather than editing the ledger. A GST capture failure is swallowed and never blocks the ledger posting.

Lookup filters

FilterLookup fieldNotes
Branch For Partner AccountBranchId
Customer Account FilterAccountId
Partner Account FilterPartnerAccountId