The applied-scheme record: one row per document line that has a scheme applied, mirrored from the line state by the scheme engine on every save (rows for lines that no longer carry a scheme are deleted). Links the scheme/slab/benefit to the exact document line across Orders, Invoices, Credit Notes, Purchase Orders, Bills and Service Orders. This ledger is the source of record for enforcement: validCount apply-count limits and scheme/partner budget utilization are computed from it live, and inserting/updating rows triggers the account-budget utilization upsert. Not user-maintained - it is derived from transactions, and data sync deliberately protects it from being imported.
Fields
| Field | Label | Type | Required | What it does |
AccountId | Account | Lookup → Account | | |
BillId | Bill | Lookup → Bill | | |
BillLineId | Bill Line | Lookup → BillLine | | |
BranchId | Branch | Lookup → Branch | | |
CreatedById | Created By | Lookup → UserAccount | Yes | |
CreatedDateTime | Created Date | DateAndTime | Yes | |
Description | Description | Text | | |
Discount | Discount | Percent | | The discount fraction copied from the document line's SchemeDiscount at sync time; the companion DiscountAmount carries the absolute amount and LineAmount the line's base amount. |
DiscountAmount | Discount Amount | Currency | | |
Id | Id | Guid | Yes | |
InvoiceId | Invoice | Lookup | | |
InvoiceId (dup-d8cd9ff0) | Invoice | Lookup → Invoice | | |
InvoiceLineId | Invoice Line | Lookup → InvoiceLine | | |
InvoiceLineId (dup-39357cb8) | Invoice Line | Lookup | | |
IsClaimed | Claimed | Boolean | Yes | Processed flag for the claim generation engine (same idiom as CreditNoteLine.IsClaimed): set once a claim has consumed this ledger row so it is not claimed twice. |
LineAmount | Line Amount | Currency | | |
ModifiedById | Modified By | Lookup → UserAccount | Yes | |
Name | Document Number | Text | Yes | |
NetSchemeDiscount2 | Net Scheme Discount | Currency | | The normalized currency value of the applied benefit for this line: the discount amount when one is set, otherwise line amount times discount percent. This is the figure budget utilization and the denormalized budget displays consume. |
OpportunityId | Opportunity | Lookup → Opportunity | | |
OrderId | Order | Lookup | | |
OrderId (dup-30229b9d) | Order | Lookup → Order | | |
OrderLineId | Order Line | Lookup | | |
OrderLineId (dup-ff82e134) | Order Line | Lookup → OrderLine | | |
OwnerId | Owner | Lookup → UserAccount | Yes | |
PartnerAccountId | Partner Account | Lookup → Account | | Partner dimension stamped at sync time; partner-scoped SchemeAccountBudget rows aggregate ledger consumption through this key. |
PurchaseOrderId | Purchase Order | Lookup → PurchaseOrder | | |
PurchaseOrderLineId | Purchase Order Line | Lookup → PurchaseOrderLine | | |
QuoteId | Quote | Lookup → Quote | | |
RecordTypeId | Record Type | Guid, hidden | | |
ReturnId | Sale Return | Lookup → Return | | |
ReturnId (dup-175a25aa) | Return | Lookup | | |
ReturnLineId | Return Line | Lookup | | |
ReturnLineId (dup-43e8eca0) | Sale Return Line | Lookup → ReturnLine | | |
RewardPoints | Reward Points | Number | | Reward points the applied benefit granted on this line, copied from the line's SchemeRewardPoints. |
SchemeBenefitId | Scheme Benefit | Lookup → SchemeBenefit | | |
SchemeId | Scheme | Lookup → Scheme | | |
SchemeLineId | Scheme Slab | Lookup → SchemeLine | | |
ServiceOrderId | Service Order | Lookup → ServiceOrder | | |
ServiceOrderId (dup-3b855515) | Service Order | Lookup | | |
ServiceOrderLineId | Service Order Line | Lookup | | |
ServiceOrderLineId (dup-88cc914f) | Service Order Line | Lookup → ServiceOrderLine | | |
UIProps | UI Props | Text | | |
UpdatedDateTime | Modified Date | DateAndTime | Yes | |
Actions
| Action | Label | Type | What it does |
BulkDelete | Delete | Delete | Delete |
Clone | Clone | ServerAction (Clone) | Create a copy of this record |
Delete | Delete | Delete | Delete |
DeleteInList | Delete | Delete | Delete |
Edit | Edit | Edit | Edit |
EditInLine | Edit | EditInline | Edit |
EditListHeader | Edit | EditInline | EditListHeader |
EditListRow | Edit | Edit | EditListRow |
New | New | New | New |
Lookup filters
| Filter | Lookup field | Notes |
| Branch For Partner Account | BranchId | |