2,421
editsDifference between revisions of "Cash Book Received Voucher v2"
Jump to navigation
Jump to search
no edit summary
(Created page with "===Rules in Cash Book Entry=== # Net Total of the voucher must be positive; # Net Total of the voucher must not be zero. # Total Payment amounts must be tally with the total a...") |
|||
public string GSTCode { get; set; }
public bool Inclusive { get; set; } = false;
}
</syntaxhighlight>
===Implementation===
<syntaxhighlight lang="csharp">
public void MainEntry(AutoCount.Authentication.UserSession userSession)
{
CashBookSource newCB = new CashBookSource()
{
From = "KENNY LEE",
Description = "VEHICLE SOLD",
CurrencyCode = "MYR",
CurrencyRate = 1,
VoucherNo = "<<New>>",
VoucherDate = new DateTime(2017, 11, 27),
};
newCB.Payments.Add(new ReceivedDetail()
{
PaymentMethod = "CASH",
Amount = 5000
});
newCB.Details.Add(new CashBookDetail(){ Account = "200-6000", Description = "ASSET PURCHASED VALUE", Amount = 60000 });
newCB.Details.Add(new CashBookDetail(){ Account = "200-6005", Description = "ACCUMULATED DEPRECIATION", Amount = -50000 });
newCB.Details.Add(new CashBookDetail(){ Account = "900-1050", Description = "LOSS ON SOLD", Amount = -5000 });
NewReceivedVoucher(userSession, newCB);
}
</syntaxhighlight>
[[File:ProgCBReceivedv2.PNG|link=]]
[[Category:Programmer]]
[[Category:API]]
[[Category:Integrate]]
[[Category:Plug-In]]
{{NavigateDeveloper}}
|