Return all sale quote types for an AccountRight company file.
Table Specific Information
MYOB allows a subset of columns to be used in the WHERE clause of a SELECT query. These columns may be used with the following operators: =, !=, >, <, >=, <=. In addition, queries with multiple criterias can be executed by combining the criteria with AND and OR operators.
These columns support the above comparison types for server side filtering: ID, BalanceDueAmount, Date, IsTaxInclusive, JournalMemo, Number, ReferralSource, Subtotal, TotalAmount, TotalTax, CustomerPurchaseOrderNumber, CustomerID, CustomerDisplayID, CustomerName, Freight, FreightTaxCodeID, FreightTaxCodeCode, CategoryID, CategoryDisplayID, CategoryName, SalespersonID, SalespersonDisplayID, SalespersonName, TermsDiscount, TermsDiscountDate, TermsDiscountExpiryDate, TermsDiscountForEarlyPayment, TermsDueDate, TermsFinanceCharge, TermsMonthlyChargeForLatePayment, TermsPaymentIsDue, TermsBalanceDueDate. All the other columns and operators are processed client side.
QuoteType supports only equality comparison.
SELECT * FROM SaleQuotes WHERE ID = "7cabea25-6250-4df5-bb37-77eb2d38f803" SELECT * FROM SaleQuotes WHERE BalanceDueAmount = 13 SELECT * FROM SaleQuotes WHERE QuoteType = "Service"
To update an existing bill, along with its Lines, we can either pass a JSON string to the Lines value or use a temporary table like below.
Note: this will replace all the current Lines with the ones below.
INSERT INTO SaleQuoteItems#TEMP(Total, AccountID, TaxCodeID) VALUES (444.21, "44a7b2bc-0a0e-4381-86fc-9b2c7a479f8f", "bd0f9821-4437-4ec2-9c95-c1bdbdd26c7b") UPDATE PurchaseBills SET QuoteType = "Service", Lines = "SaleQuoteItems#TEMP" WHERE ID = "f979f0e7-1cd8-4fb9-b2c2-9d4546440cf7"
The following attribute is required when performing an insert: QuoteType, CustomerID.
INSERT INTO SaleQuotes(QuoteType, CustomerID) VALUES ("item", "4635fd9e-82a7-4612-ae15-32c464ef7c48")
Unique identifier in the form of a guid.
Amount still payable on the sales quote.
The date of the entry.
True indicates the transaction is set to tax inclusive. False indicates the transaction is not tax inclusive.
Journal memo text describing the sale.
Sales Quote number.
Type of the quote. One of: Item,Service,Professional,TimeBilling,Miscellaneous.
Referral Source selected on the sale quote.
Number value that changes upon a record update, can be used for change control but does does not preserve a date or a time.
If IsTaxInclusive = false then sum of all tax exclusive line amounts. If IsTaxInclusive = true then sum of all tax inclusive line amounts.
Total amount of the sale quote.
Total of all tax amounts applicable to the sale quote.
Uniform resource identifier encompasses all types of names and addresses that refer to objects on the web.
Customer PO number.
Unique guid identifier belonging to the assigned customer contact.
Customer contact Card ID, can also be used as a unique customer contact identifier.
Name of the customer contact.
Uniform resource identifier associated with the customer contact object.
Tax inclusive freight amount applicable to the sale quote.
Unique guid identifier belonging to the assigned tax code.
3 digit tax code.
Uniform resource identifier associated with the tax code object.
Unique category identifier in the form of a guid.
Display id for the category.
Name of the category.
Uniform resource identifier associated with the category object.
Unique identifier in the form of a guid.
Employee contact Card ID.
Selected employee contact name.
Uniform resource identifier associated with the employee.
Discount amount that will apply if payment is made in full by the discount date.
If PaymentIsDue = CashOnDelivery, PrePaid, InAGivenNumberOfDaysNumber or NumberOfDaysAfterEOM then set the number of days within which the customer must pay to receive discounts. If PaymentIsDue = OnADayOfTheMonth or DayOfMonthAfterEOM then set the day of the month within which the payment must be made to receive discounts.
Date in which payment must be paid in full in quote to receive discount.
% discount for early payment.
Date in which payment is due.
Late payment fee to be charged if payment is not made in full by the due date.
% monthly charge for late payment.
Default Terms of Payment definitions: CashOnDelivery, PrePaid, InAGivenNumberOfDays, OnADayOfTheMonth, NumberOfDaysAfterEOM, DayOfMonthAfterEOM.
If PaymentIsDue = CashOnDelivery, PrePaid, InAGivenNumberOfDaysNumber or NumberOfDaysAfterEOM then set the number of days within which the customer has to pay invoices. If PaymentIsDue = OnADayOfTheMonth or DayOfMonthAfterEOM then set the day of the month within which the payment must be made to pay invoices.
An array of sale line quote information.
The ID of the company file. Takes precedence over the CompanyFileId connection property.
Sales Quotes Comment
Transaction Promised Date.