Programmer:Get Stock Cost v2: Difference between revisions

no edit summary
(Created page with "==References of AutoCount Accounting version 2.0== {{BaseReferenceAC20}} '''AutoCount.StockMaint.dll''' '''AutoCount.Stock.dll''' ==Standard Cost== ===Get Standard Cost wit...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 24:
 
==Most Recent Cost==
*BatchNo can be assigned as null, if there is no BatchNo
<syntaxhighlight lang="csharp">
public decimal GetRecentStockCost(AutoCount.Data.DBSetting dbSetting, string itemCode, string uom, string loc, string batchNo)
{
AutoCount.Stock.UTDCostHelper costHelper =
AutoCount.Stock.UTDCostHelper.Create(dbSetting, itemCode, uom, loc, nullbatchNo, DateTime.Today.Date);
 
//BatchNo can be assigned as null, if there is no BatchNo
//AutoCount.Stock.UTDCostHelper costHelper =
// AutoCount.Stock.UTDCostHelper.Create(dbSetting, itemCode, uom, loc, null, DateTime.Today.Date);
return costHelper.GetMostRecentlyCost().Cost;
}
Line 34 ⟶ 39:
 
<br/>
 
==Up-to-date Cost==
<syntaxhighlight lang="csharp">
Line 59 ⟶ 65:
<br/><br/><br/><br/><br/><br/>
{{SeeAlsoStock}}
{{SeeAlsoAPIReport}}
[[Category:Programmer]]
[[Category:API]]