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/Scheme Ledger — entity reference
REFERENCE · Last reviewed

Scheme Ledger — entity reference

The record of one applied trade scheme on one document line. The scheme engine writes it in the same save that applies the scheme, for sale orders, sale invoices, credit notes, purchase orders, bills and service orders; storefront carts write none. On every re-evaluation the engine updates the line's row, adds rows for newly schemed lines (including scheme-generated free or discounted lines) and deletes the rows of lines that no longer carry a scheme, together with their budget utilisation rows; Reset Scheme deletes all of a document's rows. The ledger is the source of record for scheme limits: Val Count counts the distinct documents of the same type with rows for the scheme and account, and scheme-wide, partner and partner-group budgets add up Net Scheme Discount over rows on other documents. For budgets an order row stops counting once the invoice line made from that order line has its own row, and rows left without any document link are ignored. Partner rebate figures (accrued, claimed, claimable) read the same rows. Rows are not meant to be maintained by hand: an edit is overwritten and a deleted row is rewritten the next time the document's schemes are evaluated. No shipped app menu lists the entity; rows open from a claim line's Scheme Ledger link or from a list an administrator adds to an app.

Fields

FieldLabelTypeRequiredWhat it does
AccountIdAccountLookup → AccountThe document's account: the customer on sale orders, sale invoices, credit notes and service orders, the supplier on purchase orders and bills. Val Count limits are counted per account.
BillIdBillLookup → BillThe bill, on rows written for a bill.
BillLineIdBill LineLookup → BillLineThe bill line, on rows written for a bill.
BranchIdBranchLookup → BranchThe document's branch, copied when the row is written. Not used by scheme matching or budget checks.
CreatedByIdCreated ByLookup → UserAccountYes
CreatedDateTimeCreated DateDateAndTimeYes
DescriptionDescriptionTextFree text. The scheme engine leaves it empty.
DiscountDiscountPercentThe line's scheme discount percent, copied from the line. Entered and shown as a percentage.
DiscountAmountDiscount AmountCurrencyThe line's scheme discount amount, copied from the line.
IdIdGuidYes
InvoiceIdInvoiceLookupThe sale invoice, on rows written for a sale invoice.
InvoiceId (dup-d8cd9ff0)InvoiceLookup → Invoice
InvoiceLineIdInvoice LineLookup → InvoiceLineThe sale invoice line, on rows written for a sale invoice. Its order line link is what stops the order's row from counting against budgets once the sale is invoiced.
InvoiceLineId (dup-39357cb8)Invoice LineLookup
IsClaimedClaimedBooleanYesSet when a claim has consumed this row, for example by a claim generation setup that uses Scheme Ledger as its source with Claimed as its processed flag, so the row is not claimed twice. Partner rebate figures treat unclaimed rows on claimable schemes as claimable. Not on the shipped forms.
LineAmountLine AmountCurrencyThe line's base amount when the row was last written.
ModifiedByIdModified ByLookup → UserAccountYes
NameDocument NumberTextYesDocument number, generated from the SCL series when the row is created. Shown as Name in the All Scheme Ledger view; not on the shipped record form.
NetSchemeDiscount2Net Scheme DiscountCurrencyThe currency value of the benefit on this line: the discount amount when it is above zero, otherwise the line amount multiplied by the discount percent, rounded to two decimals. Budget checks, the Utilized Amount and Budget Available figures on budgets and partner rebate figures add up this value. In the All Scheme Ledger view; not on the shipped record form.
OpportunityIdOpportunityLookup → OpportunityNot filled by the scheme engine; opportunities write no ledger rows.
OrderIdOrderLookupThe sale order, on rows written for a sale order.
OrderId (dup-30229b9d)OrderLookup → Order
OrderLineIdOrder LineLookupThe sale order line, on rows written for a sale order.
OrderLineId (dup-ff82e134)Order LineLookup → OrderLine
OwnerIdOwnerLookup → UserAccountYes
PartnerAccountIdPartner AccountLookup → AccountThe document's partner, copied when the row is written. Partner budgets count only rows with that partner, and partner-group budgets count rows whose partner is a member of the group; a row with no partner draws only on the scheme-wide budget.
PurchaseOrderIdPurchase OrderLookup → PurchaseOrderThe purchase order, on rows written for a purchase order.
PurchaseOrderLineIdPurchase Order LineLookup → PurchaseOrderLineThe purchase order line, on rows written for a purchase order.
QuoteIdQuoteLookup → QuoteNot filled by the scheme engine; quotes write no ledger rows.
RecordTypeIdRecord TypeGuid, hidden
ReturnIdSale ReturnLookup → ReturnLabelled Sale Return on the form. Not filled by the scheme engine: rows for credit notes keep their credit note in a link that is not on the shipped form.
ReturnId (dup-175a25aa)ReturnLookup
ReturnLineIdReturn LineLookupLabelled Return Line on the form. Not filled by the scheme engine.
ReturnLineId (dup-43e8eca0)Sale Return LineLookup → ReturnLine
RewardPointsReward PointsNumberThe reward points the scheme gave the line, copied from the line. Reward points never consume a currency budget. Not on the shipped forms.
SchemeBenefitIdScheme BenefitLookup → SchemeBenefitThe scheme benefit recorded on the document line, copied when the row is written.
SchemeIdSchemeLookup → SchemeThe scheme the applied slab belongs to. Val Count and budget checks select rows by this field. Stored on every engine-written row but not on the shipped forms.
SchemeLineIdScheme SlabLookup → SchemeLineThe scheme slab that was applied to the document line.
ServiceOrderIdService OrderLookup → ServiceOrderThe service order, on rows written for a service order.
ServiceOrderId (dup-3b855515)Service OrderLookup
ServiceOrderLineIdService Order LineLookupThe service order line, on rows written for a service order.
ServiceOrderLineId (dup-88cc914f)Service Order LineLookup → ServiceOrderLine
UIPropsUI PropsText
UpdatedDateTimeModified DateDateAndTimeYes

Actions

ActionLabelTypeWhat it does
BulkDeleteDeleteDeleteDelete
CloneCloneServerAction (Clone)Create a copy of this record
DeleteDeleteDeleteDelete
DeleteInListDeleteDeleteDelete
EditEditEditEdit
EditInLineEditEditInlineEdit
EditListHeaderEditEditInlineEditListHeader
EditListRowEditEditEditListRow
NewNewNewNew

Lookup filters

FilterLookup fieldNotes
Branch For Partner AccountBranchId