Programmer:Quotation: Difference between revisions
Content deleted Content added
No edit summary |
mNo edit summary |
||
Line 1:
==Technical Specification==
# NetTotal must not be negative amount
# Document NetTotal amount is read-only, as the net total must be the sum of detail total (sub-total).
{{BaseReferenceAC18}}
'''BCE.AutoCount.Invoicing.dll'''
'''BCE.AutoCount.Invoicing.Sales.dll'''
==Sample with data model==
===Create New Quotation===
<syntaxhighlight lang="csharp">
Line 21 ⟶ 22:
doc.CurrencyRate = source.CurrencyRate;
doc.Agent = source.SalesPerson;
//Set whether to apply which rounding methodo of either Document or Each Line,
//this may affect different result in GST Calculation due to decimal point.
doc.RoundingMethod = source.RoundMethod;
//Document Level Inclusive Tax
doc.InclusiveTax = source.Inclusive;
Line 116 ⟶ 119:
};
//Here shows various way to create new detail in Sale document
//There are many ways which data input can be entered into details, here are some of the common input.
newDoc.Details.Add(new SaleQuotationDetail() { Description = "Particulars" });
newDoc.Details.Add(new SaleQuotationDetail() { ItemCode = "FG00001", Quantity = 1, UnitPrice = 50.20M, GSTCode = "SR-S" });
newDoc.Details.Add(new SaleQuotationDetail() { ItemCode = "FG00001", Quantity = 2, UnitPrice = 50.20M, Discount = "5%", GSTCode = "SR-S" });
newDoc.Details.Add(new SaleQuotationDetail() { ItemCode = "FG00001", Quantity = 1, GSTCode = "SR-S", Amount = 50.20M });
newDoc.Details.Add(new SaleQuotationDetail() { Description = "Non-Stock Items" });
//When AccNo & ItemCode both are not defined, system will retrieve from default Sale Account.
//If default Sale Account is not maintained in Tools | Options, system will throw error on saving.
newDoc.Details.Add(new SaleQuotationDetail() { Description = "Misc. Charges", GSTCode = "SR-S", Amount = 30 });
newDoc.Details.Add(new SaleQuotationDetail() { Account = "500-0000", Description = "Transport", Amount = 50, GSTCode = "SR-S" });
NewSaleQuotation(dbSetting, newDoc);
|