2,743
edits
(Created page with " ==Standard Cost== ===Get Standard Cost with ItemRecord=== <syntaxhighlight lang="csharp"> public decimal GetItemStandardCostWithItemRecord(BCE.Data.DBSetting dbSetting, strin...") |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1:
==References of AutoCount Accounting version 1.8 / 1.9==
{{BaseReferenceAC18}}
'''BCE.AutoCount.StockMaint.dll'''
'''BCE.AutoCount.Stock.dll'''
==Standard Cost==
Line 20 ⟶ 24:
==Most Recent Cost==
*BatchNo can be assigned as null, if there is no BatchNo
<syntaxhighlight lang="csharp">
public decimal GetRecentStockCost(BCE.Data.DBSetting dbSetting, string itemCode, string uom, string loc, string batchNo)
{
BCE.AutoCount.Stock.UTDCostHelper costHelper =
BCE.AutoCount.Stock.UTDCostHelper.Create(dbSetting, itemCode, uom, loc,
return costHelper.GetMostRecentlyCost().Cost;
}
</syntaxhighlight>
<br/>
==Up-to-date Cost==
<syntaxhighlight lang="csharp">
Line 39 ⟶ 45:
<br/>
==Items' Stock Balance, Quantity and Costing Table==
<syntaxhighlight lang="csharp">
public System.Data.DataTable GetStockBalanceCostTable(BCE.Data.DBSetting dbSetting)
{
BCE.AutoCount.Stock.StockBalance.StockBalanceHelper sbHelper = new BCE.AutoCount.Stock.StockBalance.StockBalanceHelper(dbSetting);
sbHelper.Inquire(DateTime.Today.Date);
return sbHelper.ResultTable;
}
</syntaxhighlight>
[[File:Prog StkBalwQtyCost.png|left|1200px|thumb|Stock Balance Table with Quantity and Cost Balance]]<br/>
<br/><br/><br/><br/><br/><br/>
{{SeeAlsoStock}}
{{SeeAlsoAPIReport}}
[[Category:Programmer]]
[[Category:API]]
|