AR Debit Note v2

From AutoCount Resource Center
Revision as of 07:59, 23 May 2018 by DanielY (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Rules in Item Group

References of AutoCount Accounting version 2.0

AutoCount.Accounting.dll
AutoCount.Accounting.UI.dll
AutoCount.dll
AutoCount.MainEntry.dll
AutoCount.UI.dll
AutoCount.ARAP.dll

Item Group API Usage

New

public void NewARDebitNote(AutoCount.Authentication.UserSession userSession)
{
    AutoCount.ARAP.ARDN.ARDNDataAccess cmd = AutoCount.ARAP.ARDN.ARDNDataAccess.Create(userSession, userSession.DBSetting);
    AutoCount.ARAP.ARDN.ARDNEntity doc = cmd.NewARDN();
    AutoCount.ARAP.ARDN.ARDNDTLEntity dtl = null;

    doc.DebtorCode = "300-A001";
    doc.DocDate = new DateTime(2018, 5, 23);
    doc.Description = "Interest Charge";
    doc.Reason = "Late Payment";
    doc.OurInvoiceNo = "IV-000001";

    dtl = doc.NewDetail();
    dtl.AccNo = "580-0002";
    dtl.Description = "INTEREST CHARGE";
    dtl.Amount = 10M;
}

Edit

public void EditARDebitNote(AutoCount.Authentication.UserSession userSession)
{
    AutoCount.ARAP.ARDN.ARDNDataAccess cmd = AutoCount.ARAP.ARDN.ARDNDataAccess.Create(userSession, userSession.DBSetting);
    AutoCount.ARAP.ARDN.ARDNEntity doc = cmd.GetARDN("DN-000001");
    AutoCount.ARAP.ARDN.ARDNDTLEntity dtl = null;

    doc.DocDate = new DateTime(2018, 5, 23);
    doc.Description = "Interest Charge";
    doc.Reason = "Late Payment";
    doc.OurInvoiceNo = "IV-000001";

    doc.ClearDetails();
    dtl.AccNo = "580-0002";
    dtl.Description = "INTEREST CHARGE";
    dtl.Amount = 0.50M;
}


Template:SeeAlsoAPIAR

Go to menu

IconAC81.png Go to top
ProgrammerGo.jpg Resources For AutoCount Software Developers