Programmer:Quotation: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1:
==Technical Specification==
{{NavigateDeveloper}}
===Rules in Sale Invoice===
# 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).
 
===Assemblies version 1.8=, 1.9==
{{BaseReferenceAC18}}
<pre>
'''BCE.AutoCount.Invoicing.dll'''
'''BCE.AutoCount.Invoicing.Sales.dll'''
</pre>
 
==Sample with data model==
===Create New Quotation===
<syntaxhighlight lang="csharp">
Line 23 ⟶ 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 112 ⟶ 113:
CustomerCode = "300-A001",
Description = "SALES INVOICE GENERATED",
DocumentNo//If =let AutoCount auto assign running number, assign "<<New>>", is unnecessary
//DocumentNo = "<<New>>",
DocumentDate = new DateTime(2017, 11, 30),
Inclusive = true
};
 
//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);
Line 134 ⟶ 137:
{{Note|'''Non-Stock Item''' can either with or without ItemCode, it depends on the setting & preference of customer Account Book.}}
 
{{SeeAlsoSale}}
==See Also==
{{NavigateDeveloper}}
* [[Programmer:Quotation]]
* [[Programmer:Sales Order]]
* [[Programmer:Delivery Order]]
* [[Programmer:Sales Invoice]]
* [[Programmer:Cash Sale with Payment]]
 
[[Category:Programmer]]
[[Category:API]]
[[Category:Integrate]]
[[Category:Plug-In]]