库存修改
This commit is contained in:
@@ -168,6 +168,7 @@ class InvItemService
|
||||
* @param int $changeQty 变动数量:>0 入库,<0 出库
|
||||
* @param bool $allowNegative 是否允许库存变成负数,默认不允许
|
||||
* @param array $options 额外选项(用于记录日志)
|
||||
* - change_type: 变动类型
|
||||
* - biz_type: 业务类型
|
||||
* - biz_no: 单据号
|
||||
* - operator_id: 操作人ID
|
||||
@@ -223,6 +224,7 @@ class InvItemService
|
||||
'change_qty' => $changeQty,
|
||||
'before_qty' => $beforeQty,
|
||||
'after_qty' => $item->stock_qty,
|
||||
'change_type' => $options['change_type'] ?? null,
|
||||
'biz_type' => $options['biz_type'] ?? null,
|
||||
'biz_no' => $options['biz_no'] ?? null,
|
||||
'operator_id' => $options['operator_id'] ?? null,
|
||||
|
||||
Reference in New Issue
Block a user