public DataView SRMCostAnalysis(JournalEntry UnitCostJournal, string CommodityType, double Stock, double CostOfSales, int receiptID) { Receipt receipt = new Receipt(); string facilityName = receipt.FacilityName(receiptID); UnitCostJournal.AddNewEntry(String.Format("Stock ({0})", CommodityType), Stock, null); UnitCostJournal.AddNewEntry(String.Format("Account Receivable ({0})", facilityName), null, CostOfSales); return(UnitCostJournal.DefaultView()); }
public DataView SRMCostAnalysis(JournalEntry UnitCostJournal,string CommodityType, double Stock, double CostOfSales,int receiptID) { Receipt receipt = new Receipt(); string facilityName = receipt.FacilityName(receiptID); UnitCostJournal.AddNewEntry(String.Format("Stock ({0})", CommodityType), Stock, null); UnitCostJournal.AddNewEntry(String.Format("Account Receivable ({0})",facilityName), null, CostOfSales); return UnitCostJournal.DefaultView(); }