Programmer:Quotation: Difference between revisions
Content added Content deleted
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
==Technical Specification== |
|||
===Rules in Sale Quotation=== |
|||
# NetTotal must not be negative amount |
# 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). |
# Document NetTotal amount is read-only, as the net total must be the sum of detail total (sub-total). |
||
==Assemblies version 1.8, 1.9== |
|||
{{BaseReferenceAC18}} |
{{BaseReferenceAC18}} |
||
'''BCE.AutoCount.Invoicing.dll''' |
'''BCE.AutoCount.Invoicing.dll''' |
||
'''BCE.AutoCount.Invoicing.Sales.dll''' |
'''BCE.AutoCount.Invoicing.Sales.dll''' |
||
==Sample with data model== |
|||
===Create New Quotation=== |
===Create New Quotation=== |
||
<syntaxhighlight lang="csharp"> |
<syntaxhighlight lang="csharp"> |
||
Line 21: | Line 22: | ||
doc.CurrencyRate = source.CurrencyRate; |
doc.CurrencyRate = source.CurrencyRate; |
||
doc.Agent = source.SalesPerson; |
doc.Agent = source.SalesPerson; |
||
//Set whether to apply which rounding methodo of either Document or Each Line, |
//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. |
//this may affect different result in GST Calculation due to decimal point. |
||
doc.RoundingMethod = source.RoundMethod; |
doc.RoundingMethod = source.RoundMethod; |
||
//Document Level Inclusive Tax |
//Document Level Inclusive Tax |
||
doc.InclusiveTax = source.Inclusive; |
doc.InclusiveTax = source.Inclusive; |
||
Line 116: | Line 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. |
//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() { 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 = 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 = 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() { ItemCode = "FG00001", Quantity = 1, GSTCode = "SR-S", Amount = 50.20M }); |
||
newDoc.Details.Add(new SaleQuotationDetail() { Description = "Non-Stock Items" }); |
newDoc.Details.Add(new SaleQuotationDetail() { Description = "Non-Stock Items" }); |
||
//When AccNo & ItemCode both are not defined, system will retrieve from default Sale Account. |
//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. |
//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() { Description = "Misc. Charges", GSTCode = "SR-S", Amount = 30 }); |
||
newDoc.Details.Add(new SaleQuotationDetail(){ Account = "500-0000", Description = "Transport", Amount = 50, GSTCode = "SR-S" }); |
newDoc.Details.Add(new SaleQuotationDetail() { Account = "500-0000", Description = "Transport", Amount = 50, GSTCode = "SR-S" }); |
||
NewSaleQuotation(dbSetting, newDoc); |
NewSaleQuotation(dbSetting, newDoc); |