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

Credit Limit — entity reference

The credit ceiling a company (PartnerAccountId) extends to one customer account (AccountId), and the row that actually blocks trading. ArApSubledgerService looks it up by that company-plus-customer pair, sums the customer's live receivable exposure from OpenTransaction rows that are neither Settled nor Reversed, and reports a breach when that exposure plus the proposed document amount exceeds CreditLimitAmount. The Order and Invoice handlers call it on insert only and throw a validation failure on a breach, so an over-limit customer cannot have a new order or invoice saved; edits to existing documents are not re-checked. The check fails open — no limit row, a zero or null amount, or an unavailable subledger all let the document through. Exposure is recomputed live on every check, so the stored utilised and available columns are not what the gate consults.

Fields

FieldLabelTypeRequiredWhat it does
AccountIdAccountLookup → AccountThe customer whose trading is being capped.
AvaliableLimitAvaliable LimitCurrency
CreatedByIdCreated ByLookup → UserAccountYes
CreatedDateTimeCreated OnDateAndTimeYes
CreditDaysCredit DaysNumberIntended as the payment terms in days for this customer.
CreditLimitAmountCredit Limit AmountCurrencyThe ceiling that is actually enforced, and the only column the check reads. It must be greater than zero for a limit to be considered to exist at all — a null or zero value makes the check report no limit and lets every document pass, since the gate deliberately fails open.
CreditLimitNameNameTextYes
IdIdGuidYes
LabelLabelText
ModifiedByIdModified ByLookup → UserAccountYes
OwnerIdOwnerLookup → UserAccountYes
PartnerAccountIdPartner AccountLookup → AccountThe company extending the credit, not the customer receiving it. The gate matches on this alongside the customer, so a limit stamped with a different company from the one on the order or invoice is not found and the document is allowed through unchecked.
RecordTypeIdRecord TypeGuid, hidden
StatusStatusPickListApproval state offering Draft, Pending Approval and Approved. Values: Draft, Pending Approval, Approved.
UIPropsUI PropsText
UpdatedDateTimeUpdated OnDateAndTimeYes
UtilizedLimitUtilized LimitCurrencyA stored figure for credit already consumed, but no first-party code writes or reads it.

Actions

ActionLabelTypeWhat it does
BulkDeleteDeleteDeleteDelete the selected records.
CloneCloneServerAction (Clone)Create a copy of this record
DeleteDeleteDeleteDelete
DeleteInListDeleteDeleteDelete in a list page
EditEditEditEdit
EditInLineEditEditInlineEdit
EditListRowEditEditEditListRow
NewNewNewNew