AR Credit Note v2: Difference between revisions

From AutoCount Resource Center
Content added Content deleted
No edit summary
No edit summary
Line 2: Line 2:
==Technical Specification==
==Technical Specification==
# Net Total of the document is read-only. The calculation of net total is from amount total.
# Net Total of the document is read-only. The calculation of net total is from amount total.
# '''Knock Off Date''' must be equal or greater than the document date.
# Account No. must not be '''Creditor Code''' and '''Bank or Cash account'''
# Total of '''Knock Off Amount''' must not exceed the amount of Credit Note.
# Account No. must be a '''leaf account'''
# '''Knock Off Amount''' of the AR Invoice or AR Debit Note must not exceed its remain outstanding.
# '''CN Type''' must be specified.
# Debit A/C (of Detail) does not allow Debtor or Creditor Account.
#:The common reason to select Creditor in Debit A/C of Credit Note is for Contra.
#:To do Contra, create '''[[ARAP Contra Entry v18|A/R and A/P Contra Entry]]'''
# Debit A/C (of Detail) does not allow '''Bank or Cash account'''
#:Related to Bank or Cash transaction must be created at '''[[AR Received Payment]]'''
# Debit A/C (of Detail) must be a '''leaf account'''


==References of AutoCount Accounting version 2.0==
==References of AutoCount Accounting version 2.0==

Revision as of 08:51, 5 June 2018

Technical Specification

  1. Net Total of the document is read-only. The calculation of net total is from amount total.
  2. Knock Off Date must be equal or greater than the document date.
  3. Total of Knock Off Amount must not exceed the amount of Credit Note.
  4. Knock Off Amount of the AR Invoice or AR Debit Note must not exceed its remain outstanding.
  5. CN Type must be specified.
  6. Debit A/C (of Detail) does not allow Debtor or Creditor Account.
    The common reason to select Creditor in Debit A/C of Credit Note is for Contra.
    To do Contra, create A/R and A/P Contra Entry
  7. Debit A/C (of Detail) does not allow Bank or Cash account
    Related to Bank or Cash transaction must be created at AR Received Payment
  8. Debit A/C (of Detail) 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 NewARCreditNote(AutoCount.Authentication.UserSession userSession)
{
    AutoCount.ARAP.ARCN.ARCNDataAccess cmd = AutoCount.ARAP.ARCN.ARCNDataAccess.Create(userSession, userSession.DBSetting);
    AutoCount.ARAP.ARCN.ARCNEntity doc = cmd.NewARCN();
    AutoCount.ARAP.ARCN.ARCNDTLEntity 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.SaveARCN(doc, userSession.LoginUserID);
    }
    catch (AutoCount.AppException ex)
    {
        AutoCount.AppMessage.ShowMessage(ex.Message);
    }
}

Edit

public void EditARCreditNote(AutoCount.Authentication.UserSession userSession)
{
    AutoCount.ARAP.ARCN.ARCNDataAccess cmd = AutoCount.ARAP.ARCN.ARCNDataAccess.Create(userSession, userSession.DBSetting);
    AutoCount.ARAP.ARCN.ARCNEntity doc = cmd.GetARCN("CN-000001");
    AutoCount.ARAP.ARCN.ARCNDTLEntity 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.SaveARCN(doc, userSession.LoginUserID);
    }
    catch (AutoCount.AppException ex)
    {
        AutoCount.AppMessage.ShowMessage(ex.Message);
    }
}

Delete

public void DeleteARCreditNote(AutoCount.Authentication.UserSession userSession)
{
    AutoCount.ARAP.ARCN.ARCNDataAccess cmd = AutoCount.ARAP.ARCN.ARCNDataAccess.Create(userSession, userSession.DBSetting);

    try
    {
        cmd.DeleteARCN("CN-000001", userSession.LoginUserID);
    }
    catch (AutoCount.AppException ex)
    {
        AutoCount.AppMessage.ShowMessage(ex.Message);
    }
}

Void (Cancel)

public void CancelARCreditNote(AutoCount.Authentication.UserSession userSession)
{
    AutoCount.ARAP.ARCN.ARCNDataAccess cmd = AutoCount.ARAP.ARCN.ARCNDataAccess.Create(userSession, userSession.DBSetting);

    try
    {
        cmd.CancelARCN("CN-000001", userSession.LoginUserID);
    }
    catch (AutoCount.AppException ex)
    {
        AutoCount.AppMessage.ShowMessage(ex.Message);
    }
}

Template:SeeAlsoAccountV2

Go to menu

Go to top
Resources For AutoCount Software Developers