Programmer:Get Stock Cost: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1:
==References of AutoCount Accounting version 1.8 / 1.9==
{{BaseReferenceAC18}}
'''BCE.AutoCount.StockMaint.dll'''
Line 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, nullbatchNo, DateTime.Today.Date);
return costHelper.GetMostRecentlyCost().Cost;
}