project QadFinancials > class BDebtor > business logic query DebtorByIDsHighCreditLastInfo

Description

DebtorByIDsHighCreditLastInfo: query that return the credit-info and the last-info fields of a debotr


Parameters


iiCompanyIDintegerCompany id
iiDebtorIDintegerCustomer ID


query condition


  each Debtor where
Debtor.SharedSet_Id = vi_DEBTOR_sharedset(iiCompanyId) AND
Debtor.Debtor_ID = iiDebtorID


query resultset tqDebtorByIDsHighCreditLastInfo


field namedata typedb fielddescription
tiBusinessRelation_IDintegerDebtor.BusinessRelation_IDBusiness Relation
tiCurrency_IDintegerDebtor.Currency_IDCurrency Code
tiDebtor_IDintegerDebtor.Debtor_IDRecord ID
tcDebtorCodecharacterDebtor.DebtorCodeA code (maximum eight characters) that identifies a customer. If the code you specify matches an existing supplier code, a warning message displays. You can choose to ignore the warning, and create the record. However, when a supplier and customer share the same code, they must reference the same business relation.
api annotation:If you leave the Customer Code field blank, the system automatically generates a number for the record based on the sequence defined in Customer Autonumber Create.
tdDebtorHighCreditdecimalDebtor.DebtorHighCreditThe highest amount of credit you have ever extended to this customer. This is the largest AR balance they have had open at one time.
ttDebtorHighCreditDatedateDebtor.DebtorHighCreditDateThe date the highest credit amount was extended to this customer.
ttDebtorLastCreditReviewdateDebtor.DebtorLastCreditReviewThe date when the customer’s credit status was last reviewed.
ttDebtorLastCreditUpdatedateDebtor.DebtorLastCreditUpdateThe date when the customer’s credit status was last updated.
ttDebtorLastFinChargeDatedateDebtor.DebtorLastFinChargeDateThe date when finance charge is last calculated for this customer.
api annotation:Value for this field defaults to null.
ttDebtorLastPaymentdateDebtor.DebtorLastPaymentLast payment date.
api annotation:The system automatically updates this date when transactions are posted in Banking Entry, Petty Cash, and Customer Payments.
ttDebtorLastSaledateDebtor.DebtorLastSaleThe date an invoice was last posted for this customer.
api annotation:This date is updated by Invoice Post and Print.
tdDebtorSalesOrderBalancedecimalDebtor.DebtorSalesOrderBalanceCurrent balance of all sales order related to this customer.
api annotation:Value for this field defaults to 0.0000 .
ttLastModifiedDatedateDebtor.LastModifiedDateLast Modified Date
tiLastModifiedTimeintegerDebtor.LastModifiedTimeLast Modified Time
tcLastModifiedUsercharacterDebtor.LastModifiedUserLast Modified User


Internal usage


QadFinancials
method BDebtorBalance.UpdateDBalanceAndDHistDebtorHighCredit