xMatix
Sign in Request demo
xMatix
PRODUCTS
SalesField SalesCRMRewardsClaimsInventoryProcurementWarehouse 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
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/Sales/Invoicing and payments
CONCEPT · Last reviewed

Invoicing and payments

Invoices in xMatix Sales are released from orders — over the counter for pending quantities, or for allocated lines at the end of the warehouse flow — and can also be created from delivery orders, in bulk, or by hand. Payments are their own records: a payment tagged to an invoice rolls up into the invoice's paid and outstanding figures and, when posted, settles the receivable open item in the ledger. For India, the invoice carries the e-invoice (IRN) and e-way bill actions.

Read the screen

Sales app Invoices entry showing the All Invoices list with summary cards for total invoices, outstanding, invoiced amount, scheme discount, discount and overdue receivables
The Invoices entry of the Sales app: 30-day summary cards over the invoice register. Status tells you whether an invoice is still Draft or has been Posted to the ledger; the amount columns tell you exposure, not settlement.UI captured
  1. 1

    New creates a manual invoice header; operational invoices are normally released from an order, delivery order or bulk conversion instead.

  2. 2

    Total Outstanding and Total Invoiced separate what was billed in the last 30 days from what is still unpaid.

  3. 3

    Overdue Receivables counts invoices past their due date; it reads Outstanding Amount together with Due Date.

  4. 4

    Document Date, Partner Account (the billing company), Branch and Account (the customer) fix legal ownership and the debtor.

  5. 5

    Total Amount is the invoice value; Status is Draft until Post General Ledger runs and a rule flips it to Posted.

  6. 6

    Open an invoice from its document number to see lines, amounts, payments and the e-invoice status.

The Invoices entry of the Sales app opens the register with 30-day summary cards: total invoices, total outstanding, total invoiced, scheme discount, total discount and overdue receivables. Read a row as both a commercial document and a future settlement target: document date and number establish identity, partner account and branch establish the billing company, account identifies the debtor, total amount establishes exposure and status shows whether the invoice has reached the ledger. Do not infer settlement from the existence of an invoice; open it and read the payments behind the outstanding figure.

Read an invoice record

Posted invoice with the Lines tab open: five invoice lines with item, quantity, unit price, discounts, tax group and tax amount, header actions Print Invoice, E Invoice Generator and E Way Bill, and an Amount Summary panel showing a recorded payment and the outstanding balance
A posted invoice released from a sales order. The Lines tab is the billed detail, the header actions carry printing and the India e-invoice and e-way bill steps, and the Amount Summary panel shows the payment recorded against it and what is still outstanding.UI captured
  1. 1

    Document number and Posted status; Order links back to the sales order this invoice was released from.

  2. 2

    Print Invoice, E Invoice Generator and E Way Bill: the print and India GST actions, with Clone and Edit; the chevron holds Post Inventory, Post General Ledger, Delivery and the scheme actions.

  3. 3

    Each line carries item, quantity, unit price, net discount, net scheme discount, tax group and tax amount; header totals are roll-ups of these.

  4. 4

    Quick Add appends a line; Draft invoices accept line edits, posted ones should be corrected by cancellation or credit note.

  5. 5

    Amount Summary: base amount, scheme and other discounts, tax and Total Amount, followed by every Payment tagged to the invoice.

  6. 6

    Total Paid and Outstanding come from the payments listed above; Payment opens the payment form for this invoice.

Lines is the billed detail. Each line carries item, quantity, unit price, net discount, net scheme discount, tax group and tax amount, and every money field on the header is a roll-up of these lines rather than a typed value. The Amount Summary panel restates the roll-ups — base amount, scheme and other discounts, tax and total — and lists every payment tagged to the invoice with the resulting Total Paid and Outstanding.

Posted invoice with the Details tab open showing Key Details (partner account, branch, account, executive, GL account, status, e-invoice status), Amounts (line, tax, discount, scheme, total, finance and outstanding amounts) and the Taxes section
The Details tab groups the invoice header: who is billing whom, the amount roll-ups, and the tax fields. Status (eInvoice) tracks the GST e-invoice lifecycle separately from the accounting Status.UI captured
  1. 1

    Partner Account is the company issuing the invoice and Account the customer being billed; both are fixed once the invoice exists.

  2. 2

    Status is Draft or Posted; it follows the GL posting approval flag rather than being typed.

  3. 3

    Status (eInvoice) moves from Ready For IRN to Pending when the payload is staged and records the IRN once the GST integration returns it.

  4. 4

    Total Line Amount, Total Tax Amount, discounts and Total Amount are calculated from the lines, not entered.

  5. 5

    Outstanding Amount is Total Amount minus payments tagged to the invoice; the Amount Summary panel shows the same figure with the payments behind it.

  6. 6

    The Taxes section holds the header-level tax slot, tax group and Tax Supply Type used when the lines were taxed.

Details groups the header: Key Details (partner account, branch, customer account, executive, GL account, status and e-invoice status), Amounts and Taxes. Status is Draft or Posted and follows the GL posting approval flag rather than being typed. Status (eInvoice) is a separate lifecycle: Ready For IRN, then Pending once the payload is staged, then the IRN and acknowledgement once the GST integration has returned them. Related lists the delivery orders released from the invoice and the journals posted for it.

How an invoice is created

PathActionBehaviour
Over the counterInvoice (OTC) on the orderInvoices the order's pending quantities directly, drawing available stock
From allocationInvoice on the orderInvoices the quantities already allocated to the order
SelectiveSelective Invoice OTC / Selective Invoice on the orderChosen lines and quantities only
In bulkBulk order processingMany orders at once, with shortfall reporting
From deliveryCreate Invoice on the delivery orderInvoices the delivered lines that still have pending invoice quantity; refuses when none do
From a claimClaim and claim-batch settlementSee Trade claims
By handNew on the Invoices listA Draft header you add lines to yourself

Whichever path creates it, the invoice header gets today's document date (a caller-supplied earlier date is honoured on insert; a future date is never accepted), a generated document number and Draft status. Account, partner account and branch are then fixed.

Credit check. When the invoice is created with a finance amount and the customer has a credit limit with this partner account, the customer's open receivables plus this invoice must fit under the limit, or the save is rejected with a message naming the party, the open amount and the limit. The check is deliberately fail-open: if the finance subledger cannot be resolved or queried, or the Sales module setting credit limit override requires approval is on (an approval process then governs the override), the invoice is created without a hard block. Finance administrators should monitor the subledger rather than treat every created invoice as proof of a passed check.

Working on an invoice

ActionWhat it does
Post General LedgerSets the GL posting approval flag and posts one balanced journal (Dr Accounts Receivable / Cr Sales plus output tax) together with a Receivable open item — the row the AR subledger ages and settles. Re-posting is reverse-then-repost. A business rule moves Status to Posted.
Post InventoryRuns the inventory ledger for lines that have not yet reached it; refused when every line is already posted.
DeliveryCreates a delivery order from the lines with pending delivery quantity; refused when nothing is pending.
Create Shipment / Selective Create ShipmentCreate a shipment for the invoiced lines.
PaymentOpens a form to record a new Payment tagged to this invoice (also available from the Amount Summary panel). Nothing runs on the server for the action itself; the saved payment is what changes the figures.
Reprice, Apply Scheme and the other scheme actionsBehave as on the order; see Trade schemes.
Print Invoice, PreviewPrint or preview the document template.
CloneCopies the invoice into a new Draft.
CancelOnly a Posted invoice can be cancelled, only inside the invoice cancellation window hours configured for the Sales module (0 turns the window off), and only while at least one line still has quantity to cancel. Cancelling reverses the invoice's inventory movement, any payment received against it and its GL journals; the window defaults to 24 hours, and outside it the message tells you to raise a credit note instead.

A GL-posted invoice cannot be hard-deleted — deleting it would orphan its journal and receivable open item.

Payments, advances and adjustments

A Payment record is a single money movement. Payment Type gives it direction — Payment Taken is a customer receipt, Payment Given a disbursement — and Amount is always positive. Mode Of Payment (Cash, Cheque, Electronic Transfer) chooses the money-side ledger account when the payment posts; Cheque parks the amount in a cheques-in-hand account until it clears.

  • Tagged to an invoice. Set Invoice on the payment. The invoice's Amount Paid roll-up is recomputed on insert, edit and delete, and Outstanding Amount (total minus amount paid) falls with it. When the payment posts, a settlement allocation reduces the invoice's receivable open item.
  • Tagged to an order (advance). Set Order instead. The money accumulates as the order's Advance Amount; Open Amount is the order total minus that advance. Applying the advance to the order's invoices later is recorded as a payment adjustment against the order and is capped at the order's Open Advance Amount — you cannot adjust more than remains open.
  • No document. A receipt with no invoice or order posts as an unapplied, on-account open item for the customer that can be allocated later.

Payments post as soon as they are inserted when the owning company has GL posting enabled; Post General Ledger on a payment simply turns the approval flag on for one that was withheld. The payment's own Status picklist is not maintained by the platform — judge posting from the GL flags and application from the open and adjusted amounts.

A payment adjustment pairs a payment with an invoice or order (exactly two documents), and an adjustment larger than the invoice's current Open Amount is rejected. Settlement credit notes from trade claims are netted against the partner's open invoices oldest-first through the same mechanism.

E-invoice and e-way bill (India)

E Invoice Generator on the invoice builds the e-invoice payload from the invoice and its lines, stores it on the invoice and moves Status (eInvoice) to Pending. The GST integration flow your administrator has connected transmits the payload to the invoice registration portal and writes the returned IRN, acknowledgement number and date and signed QR code back onto the invoice. Once an IRN exists the action refuses with "This invoice already has an IRN; an e-invoice cannot be regenerated." Set E-Invoice Status lets the integration (or an administrator) move the status explicitly.

E Way Bill creates a Draft e-way bill register entry (the Part A consignment record) for the invoice, with optional distance, transport mode (Road by default) and vehicle number; the connected flow generates the e-way bill number and records it on the invoice. Delivery orders show e-way bill fields, but their own E Way Bill button is not bound to a handler and does nothing; generate from the invoice, and treat the delivery order's fields as manual capture.

Both actions stage and record; the exchange with the GST systems is done by the integration. Without it, staged documents stay Pending.

Common questions

What is the difference between Invoice (OTC) and Invoice?

Invoice (OTC) invoices the order's pending quantities immediately, drawing stock as it goes — no allocation needed. Invoice invoices only the quantities already allocated to the order, so what was reserved is exactly what is billed. Use OTC for counter sales and the allocated path for warehouse-fulfilled orders.

Why do Outstanding Amount and Open Amount differ?

They measure different things. Outstanding Amount is total minus the payments tagged to the invoice. Open Amount is total minus payment adjustments applied to it. They agree only when every payment has also been applied as an adjustment; the ledger's own view is the receivable open item created at posting.

Can I regenerate an e-invoice?

Not once an IRN has been recorded — the generator blocks with an explicit message, because a registered invoice must not be registered twice. Corrections after registration are handled through credit notes and the GST processes your organization follows.

How do part-payments show up?

Each payment is its own record. The invoice's Amount Summary lists every tagged payment with its mode and date, then Total Paid, Outstanding and the percentage paid. Nothing requires a single full payment.