AR Invoice: Difference between revisions
Content added Content deleted
No edit summary |
mNo edit summary |
||
Line 91: | Line 91: | ||
===Implementation=== |
===Implementation=== |
||
[[File:GenerateSaleInAR.PNG|link=]] |
[[File:GenerateSaleInAR.PNG|link=]] |
||
<syntaxhighlight lang="csharp" highlight=" |
<syntaxhighlight lang="csharp" highlight="16,17"> |
||
public void MainEntry(BCE.Data.DBSetting dbSetting) |
public void MainEntry(BCE.Data.DBSetting dbSetting) |
||
{ |
{ |
||
Line 105: | Line 105: | ||
newDoc.Details.Add(new ARInvoiceDetail(){ Account = "500-0000", Description = "APPLE IPHONE X", Amount = 5000, GSTCode = "SR-S" }); |
newDoc.Details.Add(new ARInvoiceDetail(){ Account = "500-0000", Description = "APPLE IPHONE X", Amount = 5000, GSTCode = "SR-S" }); |
||
newDoc.Details.Add(new ARInvoiceDetail(){ Account = "520-0000", Description = "Discount 10%", Amount = -500, GSTCode = "SR-S" }); |
newDoc.Details.Add(new ARInvoiceDetail(){ Account = "520-0000", Description = "Discount 10%", Amount = -500, GSTCode = "SR-S" }); |
||
//No error while Account is empty, because the amount is zero |
//No error while Account is empty, because the amount is zero; |
||
//Hence no posting to account is required. |
|||
newDoc.Details.Add(new ARInvoiceDetail(){ Description = "GIFT", Amount = 0, GSTCode = "SR-S" }); |
newDoc.Details.Add(new ARInvoiceDetail(){ Description = "GIFT", Amount = 0, GSTCode = "SR-S" }); |
||
newDoc.Details.Add(new ARInvoiceDetail(){ Account = "500-0000", Description = "FREE Screen Protector", GSTCode = "SR-S" }); |
newDoc.Details.Add(new ARInvoiceDetail(){ Account = "500-0000", Description = "FREE Screen Protector", GSTCode = "SR-S" }); |