AR Debit Note v2: Difference between revisions

no edit summary
(Created page with " ==Rules in Item Group== ==References of AutoCount Accounting version 2.0== {{BaseReferenceAC20}} AutoCount.ARAP.dll ==Item Group API Usage== ===New=== <syntaxhighlight lan...")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1:
 
==Rules in ItemAR GroupDebit Note==
# Net Total of the document is read-only. The calculation of net total is from amount total.
# Account No. must not be '''Creditor Code''' and '''Bank or Cash account'''
# Account No. must be a '''leaf account'''
 
==References of AutoCount Accounting version 2.0==
{{BaseReferenceAC20}}
'''AutoCount.ARAP.dll'''
 
==Item Group API Usage==
Line 19 ⟶ 22:
doc.Description = "Interest Charge";
doc.Reason = "Late Payment";
doc.OurInvoiceNo = "IV-0000010001";
 
dtl = doc.NewDetail();
dtl.AccNo = "580-0002";
dtl.Description = "INTEREST CHARGE";
dtl.Amount = 0.10M;
 
try
{
cmd.SaveARDN(doc, userSession.LoginUserID);
}
catch (AutoCount.AppException ex)
{
AutoCount.AppMessage.ShowMessage(ex.Message);
}
}
</syntaxhighlight>
Line 35 ⟶ 47:
AutoCount.ARAP.ARDN.ARDNEntity doc = cmd.GetARDN("DN-000001");
AutoCount.ARAP.ARDN.ARDNDTLEntity dtl = null;
 
if (doc == null)
return;
 
doc.DocDate = new DateTime(2018, 5, 23);
Line 45 ⟶ 60:
dtl.Description = "INTEREST CHARGE";
dtl.Amount = 0.50M;
 
try
{
cmd.SaveARDN(doc, userSession.LoginUserID);
}
catch (AutoCount.AppException ex)
{
AutoCount.AppMessage.ShowMessage(ex.Message);
}
}
</syntaxhighlight>
 
===Delete===
<syntaxhighlight lang="csharp">
public void DeleteARDebitNote(AutoCount.Authentication.UserSession userSession)
{
AutoCount.ARAP.ARDN.ARDNDataAccess cmd = AutoCount.ARAP.ARDN.ARDNDataAccess.Create(userSession, userSession.DBSetting);
 
try
{
cmd.DeleteARDN("DN-000001");
}
catch (AutoCount.AppException ex)
{
AutoCount.AppMessage.ShowMessage(ex.Message);
}
}
</syntaxhighlight>
 
===Void (Cancel)===
<syntaxhighlight lang="csharp">
public void CancelARDebitNote(AutoCount.Authentication.UserSession userSession)
{
AutoCount.ARAP.ARDN.ARDNDataAccess cmd = AutoCount.ARAP.ARDN.ARDNDataAccess.Create(userSession, userSession.DBSetting);
 
try
{
cmd.CancelARDN("DN-000001", userSession.LoginUserID);
}
catch (AutoCount.AppException ex)
{
AutoCount.AppMessage.ShowMessage(ex.Message);
}
}
</syntaxhighlight>
 
{{SeeAlsoAPIAccount}}
{{SeeAlsoAPIAR}}
[[Category:Programmer]]
[[Category:API]]
[[Category:Integrate]]
[[Category:Plug-In]]
{{NavigateDeveloper}}