Open main menu

Rules in AR Debit Note

  1. Net Total of the document is read-only. The calculation of net total is from amount total.
  2. Account No. must not be Creditor Code and Bank or Cash account
  3. Account No. must be a leaf account

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-0001";

    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);
    }
}

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;

    if (doc == null)
        return;

    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;

    try
    {
        cmd.SaveARDN(doc, userSession.LoginUserID);
    }
    catch (AutoCount.AppException ex)
    {
        AutoCount.AppMessage.ShowMessage(ex.Message);
    }
}

Delete

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);
    }
}

Void (Cancel)

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);
    }
}

See Also

AutoCount Accounting Account API
AR AP
Transactions Version Transactions Version
AR Debtor (Customer) 1.8, 1.9
2.0
AP Creditor (Supplier) 1.8, 1.9
2.0
AR Invoice 1.8, 1.9
2.0
AP Invoice 1.8, 1.9
2.0
AR Received Payment 1.8, 1.9
2.0
AP Payment 1.8, 1.9
2.0
AR Debit Note 1.8, 1.9
2.0
AP Debit Note 1.8, 1.9
2.0
AR Credit Note 1.8, 1.9
2.0
AP Credit Note 1.8, 1.9
2.0
AR Refund 1.8, 1.9
2.0
AP Refund 1.8, 1.9
2.0
AR Deposit 1.8, 1.9
2.0
AP Deposit 1.8, 1.9
2.0
AR Deposit - Create New or Update
with Refund & Forfeit
1.8, 1.9
2.0
A/R and A/P Contra Entry 1.8, 1.9
2.0

Go to menu