|
@@ -12,11 +12,11 @@ use think\Model;
|
|
|
class GoodStockInfo extends Model
|
|
|
{
|
|
|
/**
|
|
|
- * @param int $stockid
|
|
|
- * @param string $bn
|
|
|
- * @param int $num
|
|
|
- * @param float $origin_price
|
|
|
- * @return bool
|
|
|
+ * @param int $stockid 仓库库存id
|
|
|
+ * @param string $bn bn编号
|
|
|
+ * @param int $num bn数量
|
|
|
+ * @param float $origin_price 采购成本价
|
|
|
+ * @return bool 入库bn库存数新建 或退回bn库存数
|
|
|
*/
|
|
|
public function AddBn(int $stockid,string $bn,int $num,float $origin_price=0){
|
|
|
$data=$this->where(["stockid"=>$stockid,"bnCode"=>$bn])->findOrEmpty();
|
|
@@ -43,7 +43,7 @@ class GoodStockInfo extends Model
|
|
|
/**
|
|
|
* @param int $stockid
|
|
|
* @param int $num
|
|
|
- * @return array
|
|
|
+ * @return array 下单消耗bn库存数
|
|
|
* @throws \think\Exception
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
|
* @throws \think\db\exception\DbException
|
|
@@ -78,7 +78,7 @@ class GoodStockInfo extends Model
|
|
|
* @param int $stockid
|
|
|
* @param string $bn
|
|
|
* @param int $num
|
|
|
- * @return bool
|
|
|
+ * @return bool 盘点修改bn仓库库存数
|
|
|
* @throws \think\Exception
|
|
|
*/
|
|
|
public function CheckBn(int $stockid,string $bn,int $num){
|