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/Entity Reference/Claim Line — entity reference
REFERENCE · Last reviewed

Claim Line — entity reference

One claimable item on a Claim, holding the claimed quantity and unit price alongside the approved and rejected splits that everything downstream reads. Lines are written by ClaimLineService when the PerformPopulateLines action runs — from service-order lines flagged 'Generate Claims'/'Auto Generate Claims' with ClaimableQuantity remaining, or from CreditNoteLine rows (the real supplier-return path, TransactionType 'BillReturn') for Purchase, Damaged, Shortage and Excess claims — and by the claims.generate engine, which maps them field-by-field from the setup's LineMapping. The line's own ClaimType, not the header's, steers the follow-ups: 'Part To Part' lines create reject/approve delivery orders when quantities change, and 'Reimbursment' lines with approved quantity let the reconcile action raise a sale invoice.

Fields

FieldLabelTypeRequiredWhat it does
ApproveAmountApprove AmountCalculated (calculated)Settlement computes approved value on the fly as UnitPrice times ApproveQuantity rather than reading this column, so it can be blank on fully settled lines.
ApproveBaseAmountApprove Base AmountCalculated (calculated)
ApproveDiscountApproveDiscountDecimal
ApproveDiscountAmountApprove Discount AmountCurrencyYes
ApproveNetDiscountApprove Net DiscountCalculated (calculated)
ApproveQuantityApprove QuantityDecimalThe quantity the principal accepted, and the figure everything financial reads: settlement builds the credit note or adjustment only from lines where it is greater than zero, and multiplies it by unit price for the amount. It is set line by line, or in bulk from the header's ApproveAll flag.
BaseAmountBase AmountCalculated (calculated)
BatchClaimIdBatch ClaimLookup → ClaimA second claim reference, separate from ClaimId, used to point a line at the claim that represents its batch. No first-party service writes it; ClaimId remains the owning-claim link that all line creation and settlement code uses.
BillReturnLineIdBill Return LineLookup → BillReturnLine
BranchIdBranchLookup → Branch
ClaimAmountClaim AmountCalculated (calculated)An amount column that no first-party code writes or reads — line value is carried by UnitPrice times ClaimQuantity everywhere in the claim, settlement and reconcile paths. Populated only by tenant rules or imports.
ClaimBatchIdClaim BatchLookup → ClaimBatch
ClaimBatchLineIdClaim Batch LineLookup → ClaimBatchLineStamped onto the line, together with ClaimBatchId, by the ClaimBatch populate action: it records which batch junction row (and therefore which member claim) brought this line into the batch.
ClaimIdClaimLookup → ClaimYes
ClaimQuantityClaim QuantityDecimal
ClaimTypeClaim TypePickListLine-level type that drives the downstream documents independently of the header's type. 'Part To Part' lines make ClaimLineHandler raise reject or approve delivery orders whenever the rejected or approved quantity changes, and 'Reimbursment' lines with an approved quantity are what allow the reconcile action to raise a sale invoice. Values: Part To Part, Reimbursment, Shortage, Damaged, Marketing.
ComplaintFaultIdComplaint FaultLookup → ComplaintFault
ComplaintIdComplaintLookup → Complaint
CreatedByIdCreated ByLookup → UserAccountYes
CreatedDateTimeCreated DateDateAndTimeYes
DiscountDiscountDecimalFor service-contract claim lines this is written as 100 minus the line's service-contract weightage — that is, the share of the value the contract does not cover — rather than a discount the dealer granted.
DiscountAmountDiscount AmountCurrency
ExternalIdExternalText
GoodsReceiptIdGoods ReceiptLookup → GoodsReceipt
GoodsReceiptLineIdGoods Receipt LineLookup → GoodsReceiptLine
IdIdGuidYes
InvoiceLineIdInvoice LineLookup → InvoiceLine
IsBatchIdBatchBooleanYesDo not use it in rules, filters or layouts.
IsClaimReconciliationCreatedClaim Reconciliation CreatedBooleanA second, similarly named reconciliation flag that no code path in the platform ever sets or reads. Ignore it when reasoning about reconciliation state and use IsReconciliationCreated instead.
IsReconciliationCreatedIsReconciliationCreatedBooleanSet to true for every line of a ClaimBatch when that batch's reconcile action completes. The single-claim reconcile path does not set it, so it only ever marks batch-processed lines.
ItemCodeItem CodeText
ItemIdItemLookup → Item
ItemServiceContractIdItem Service ContractLookup → ItemServiceContract
ModifiedByIdModified ByLookup → UserAccountYes
NameNameTextYes
NetDiscountNet DiscountCalculated (calculated)
OwnerIdOwnerLookup → UserAccountYes
PartnerAccountIdPartner AccountLookup → Account
PurchaseReturnLineIdPurchase Return LineLookup → PurchaseReturnLine
RecordTypeIdRecord TypeGuid, hidden
RejectAmountReject AmountCalculated (calculated)
RejectBaseAmountReject Base AmountCalculated (calculated)
RejectDiscountAmountReject Discount AmountCurrency
RejectNetDiscountReject Net DiscountCalculated (calculated)
RejectQuantityReject QuantityNumberThe quantity the principal refused. Changing it on a 'Part To Part' line triggers creation of a reject delivery order so the physical part is returned; no settlement document is produced from rejected quantity.
SchemeLedgerIdScheme LedgerLookup → SchemeLedgerLink back to the scheme-ledger accrual row a trade-scheme claim line was generated from.
ServiceOrderIdService OrderLookup → ServiceOrder
ServiceOrderLineIdService Order LineLookup → ServiceOrderLine
SourceLineKeySource Line KeyTextLine-level idempotency key for engine-generated lines, formed as the parent claim's GenerationKey plus a discriminator (the source row id for per-record aggregation, or '0' for the single summed line). It is also the merge key when the engine accumulates a group across query chunks: two chunks producing the same key have their amounts added rather than duplicated.
StatusStatusPickListValues: Draft, Approved, Rejected.
TaxGroupIdTax GroupLookup → TaxGroup
TechnicianIdTechnicianLookup → Resource
TotalAmountTotalAmountDecimal
UIPropsUI PropsText
UnitPriceUnit PriceCurrencyNot always a per-unit rate. For service-contract lines it is the source line's unit price, but for weightage lines it holds the whole computed contribution (claimable quantity times unit price times the weightage percentage) against a quantity of one, and for Sum-aggregate engine lines it holds the entire aggregated claim amount for the group, with the netting leg subtracted from it.
UnitPrice2Unit PriceCurrencyTreat it as unusable here.
UpdatedDateTimeModified DateDateAndTimeYes

Actions

ActionLabelTypeWhat it does
ApproveApproveUIActionApprove
CloneCloneServerAction (Clone)Create a copy of this record
DeleteDeleteDeleteDelete
DeleteEntityDeleteDeleteDeleteEntity
EditEditEditEdit
EditEntityEditEditEditEntity
EditInLineEdit In LineEditInlineEdit In Line
EditListRowEdit List RowEditInlineEdit List Row
NewNewNewNew
NewInLineQuick AddNewInlineNewInLine
OpenChecklistOpen ChecklistUIActionOpens the claim-checklist layout for the line — a manual verification list (warranty form completed, purchase invoice available, purchase from an authorised dealer, no prior claim on the same invoice) rendered as tick-boxes. It is a UI-only action: no server handler implements it, so it records nothing and changes no field on the claim line.
RejectRejectUIActionReject

Validations

ValidationApplies toError messageNotes
XM_ApprovedQuantityValidationRuleApproveAmount, ErrorApproved Quantity cannot be NegativeApproved Quantity cannot be Negative
XM_ClaimQuantityValidationRuleClaimQuantity, ErrorClaim Quantity cannot be NegativeClaim Quantity cannot be Negative
XM_RejectedQuantityValidationRuleRejectQuantity, ErrorRejected Quantity Cannot be NegativeRejected Quantity Cannot be Negative
XM_UnitPriceValidationRuleUnitPrice, ErrorUnit Price cannot be NegativeUnit Price cannot be Negative