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/Discount Group Rule — entity reference
REFERENCE · Last reviewed

Discount Group Rule — entity reference

One dated contract discount inside a discount group, added on the group's Rules tab. When a line with an item is added to a document, xMatix looks only at the rules of the document's discount group (and only if the group's scope still fits the document), keeps those in force on the document date whose item, SKU and item group are each empty or fit the line, and ranks a rule naming the item first, then one naming the SKU, then the latest Date Effective From. An item-group rule does not outrank a catch-all rule; between them the later start date wins. The winner writes its percentage to the line's Contract Discount, or its fixed amount to Contract Discount Amount when the percentage is empty, and records itself in the line's Discount Group Rule. A matching rule replaces a contract discount typed on the new line. Discounts are written only when a line is added; editing the line, changing the document's group and Reprice do not re-apply them.

Fields

FieldLabelTypeRequiredWhat it does
ClaimablePercentageClaimable PercentageNumberNot stored and not read by any process.
CreatedByIdCreated ByLookup → UserAccountYes
CreatedDateTimeCreated DateDateAndTimeYes
DateEffectiveFromDate Effective FromDateYesFirst day the discount applies, compared with the document date. Required. The last ranking key: among rules equal on item and SKU, the latest start wins. When documents with different dates are saved together, only rules that started by the earliest of those dates are considered.
DateEffectiveTillDate Effective TillDateLast day the discount applies; empty means no end date. It cannot be earlier than Date Effective From.
DiscountGroupIdDiscount GroupLookup → DiscountGroupYesThe group the rule belongs to, set from the group it is added on. Only rules of the group on the document are ever considered.
DiscountPercentDiscount PercentPercentThe percentage written to the line's Contract Discount (enter 5 for 5 percent). It wins when a fixed discount amount is also filled in, and sets the line's Contract Discount Amount to zero. A rule with neither a percentage nor a fixed amount still matches and, if it wins, gives the line a zero contract discount, which leaves that item out of a catch-all rule.
ExternalIdExternalTextA free-text reference. Not used by discount matching.
IdIdGuidYes
ItemGroupIdItem GroupLookup → ItemGroupNarrows the rule to items that are members of this item group. Only item groups of type Discount are recognised. Not on the rule create form; set it in place on the rule's record page under Applicable Item. It does not raise the rule's rank, so a newer catch-all rule beats it.
ItemIdItemLookup → ItemThe item the discount is for. Empty covers every item. Only active items are offered. A rule naming the item outranks every other matching rule.
ItemLotTypeIdItem Lot TypeLookup → ItemLotTypeStored but not used for matching, so a rule naming a lot type applies to every lot type.
ModifiedByIdModified ByLookup → UserAccountYes
NameNameTextThe rule number, filled automatically from the DR series.
OwnerIdOwnerLookup → UserAccountYes
PriceListIdPrice ListLookup → PriceListStored but not used for matching, so a rule naming a price list still applies to every document carrying its group.
RecordTypeIdRecord TypeGuid, hidden
SKUIdSKULookup → SKUNarrows the rule to one SKU of the item; the picker lists only the item's SKUs. Empty covers every SKU. It is the second ranking key after item.
UIPropsUI PropsText
UpdatedDateTimeModified DateDateAndTimeYes

Actions

ActionLabelTypeWhat it does
BulkDeleteDelete SelectedDeleteDelete the selected records.
CloneCloneServerAction (Clone)Create a copy of this record
DeleteDeleteDeleteDelete
DeleteInListDeleteDeleteDelete in a list page
EditEditEditEdit
EditInLineEditEditInlineDelete in page.
EditListHeaderEditEditInlineEditListHeader
EditListRowEditEditEditListRow
NewNewNewInlineNew
UIActionUI ActionUIActionUI Action

Validations

ValidationApplies toError messageNotes
Date Effective Till Rule ValidationDateEffectiveTill, ErrorDate Effective Till can not be BackdatedDate Effective can't be Backdated Validation.

Lookup filters

FilterLookup fieldNotes
Active ItemsItemId
SKU For ItemSKUId