|
|
@@ -77,6 +77,13 @@ class ItemInfoClass extends BaseClass
|
|
|
|
|
|
|
|
|
//加库存,允许负库存,负数数量(盘点时)
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param $ghsItemInfoId 门店下的花材ID(xhGhsItemInfo 主键ID)
|
|
|
+ * @param $itemNumBundle 花材数量(扎)
|
|
|
+ * @param $itemNumPiece 花材数量(支)
|
|
|
+ * @return bool
|
|
|
+ */
|
|
|
public static function addStock($ghsItemInfoId,$itemNumBundle,$itemNumPiece)
|
|
|
{
|
|
|
$itemInfoData =self::getById($ghsItemInfoId);
|
|
|
@@ -97,6 +104,13 @@ class ItemInfoClass extends BaseClass
|
|
|
}
|
|
|
|
|
|
//减库存,允许负库存,负数数量(盘点时)
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param $ghsItemInfoId 门店下的花材ID(xhGhsItemInfo 主键ID)
|
|
|
+ * @param $itemNumBundle 花材数量(扎)
|
|
|
+ * @param $itemNumPiece 花材数量(支)
|
|
|
+ * @return bool
|
|
|
+ */
|
|
|
public static function decreaseStock($ghsItemInfoId,$itemNumBundle,$itemNumPiece)
|
|
|
{
|
|
|
$itemInfoData =self::getById($ghsItemInfoId);
|
|
|
@@ -118,6 +132,12 @@ class ItemInfoClass extends BaseClass
|
|
|
|
|
|
|
|
|
//计算价格
|
|
|
+ /**
|
|
|
+ * @param $ghsItemInfoId 门店下的花材ID(xhGhsItemInfo 主键ID)
|
|
|
+ * @param $itemNumBundle 花材数量(扎)
|
|
|
+ * @param $itemNumPiece 花材数量(支)
|
|
|
+ * @return bool
|
|
|
+ */
|
|
|
public static function computedPrice($ghsItemInfoId,$itemNumBundle,$itemNumPiece)
|
|
|
{
|
|
|
//获取itemId的价格
|