Programmer:Debtor Aging (19)

Revision as of 03:40, 15 January 2019 by DanielY (talk | contribs) (Created page with "==References of AutoCount Accounting version 1.8 / 1.9== {{BaseReferenceAC18}} '''BCE.AutoCount.ARAP.dll''' ==Extract data of AR Debtor Aging with API== The sample code belo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

References of AutoCount Accounting version 1.8 / 1.9

BCE.AutoCount.dll
BCE.AutoCount.CommonAccounting.dll
BCE.AutoCount.MainEntry.dll
BCE.Utils.dll
BCE.Utils.UI.dll
BCE.AutoCount.ARAP.dll

Extract data of AR Debtor Aging with API

The sample code below shows how to retrieve DataSet or DataTable of Debtor Aging. It filters result of:

  1. Up to Today's date;
  2. Debtor code range of "300-A001" and "300-C999";
  3. and does not include debtor whom the balance is zero.
public System.Data.DataSet DebtorAgingTable(BCE.Data.DBSetting dbSetting)
{
    BCE.AutoCount.ARAP.DebtorAging.DebtorAging aging = BCE.AutoCount.ARAP.DebtorAging.DebtorAging.Create(dbSetting);
    BCE.AutoCount.ARAP.DebtorAging.DebtorAgingCriteria crit = new BCE.AutoCount.ARAP.DebtorAging.DebtorAgingCriteria();

    //There are many more criteria to filter the result
    crit.ReportDate = DateTime.Today.Date;
    crit.DebtorFilter.ByRange("300-A001", "300-C999");
    crit.IncludeZeroBalance = false;

    //The return table is "Master"
    DataTable tblAging = aging.Inquire(crit);

    //DataSet consists of many tables, and "Master" table
    return aging.ResultDataSet;

    //If only the master table is needed, programmer can return only DataTable of the master table
    //tblAging table and aging.ResultDataTable are the same
    //return tblAging;
    //return aging.ResultDataTable;
}

See Also Report API

Category Reporting
AR
AP
Stock
Sales
Purchase

Go to menu

  Go to top
  Resources For AutoCount Software Developers