/// <summary> /// Year End with the physical store information /// </summary> /// <param name="_itemID">The _item ID.</param> /// <param name="_storeID">The _store ID.</param> /// <param name="_unitID">The _unit ID.</param> /// <param name="_endingBal">The _ending bal.</param> /// <param name="_physicalInventory">The _physical inventory.</param> /// <param name="year">The year.</param> /// <param name="physicalStoreID">The physical store ID.</param> public static void AddNewYearEndEntry(int _itemID, int _storeID, int _unitID, long _endingBal, long _physicalInventory, int year, int physicalStoreID) { BLL.YearEnd yEnd = new YearEnd(); yEnd.LoadByItemUnitStoreAndPhysicalStore(_itemID, _unitID, _storeID, physicalStoreID, year); if (yEnd.RowCount == 0) yEnd.AddNew(); yEnd.StoreID = _storeID; yEnd.ItemID = _itemID; yEnd.UnitID = _unitID; yEnd.PhysicalInventory = _physicalInventory; yEnd.EBalance = _endingBal; yEnd.Year = year; yEnd.PhysicalStoreID = physicalStoreID; yEnd.Save(); }
/// <summary> /// Year End with the physical store information /// </summary> /// <param name="_itemID">The _item ID.</param> /// <param name="_storeID">The _store ID.</param> /// <param name="_unitID">The _unit ID.</param> /// <param name="_endingBal">The _ending bal.</param> /// <param name="_physicalInventory">The _physical inventory.</param> /// <param name="year">The year.</param> /// <param name="physicalStoreID">The physical store ID.</param> public static void AddNewYearEndEntry(int _itemID, int _storeID, int _unitID, long _endingBal, long _physicalInventory, int year, int physicalStoreID) { BLL.YearEnd yEnd = new YearEnd(); yEnd.LoadByItemUnitStoreAndPhysicalStore(_itemID, _unitID, _storeID, physicalStoreID, year); if (yEnd.RowCount == 0) { yEnd.AddNew(); } yEnd.StoreID = _storeID; yEnd.ItemID = _itemID; yEnd.UnitID = _unitID; yEnd.PhysicalInventory = _physicalInventory; yEnd.EBalance = _endingBal; yEnd.Year = year; yEnd.PhysicalStoreID = physicalStoreID; yEnd.Save(); }