库存修改

This commit is contained in:
2026-02-25 13:13:36 +08:00
parent 1251f78c6b
commit 1d88ef932a
4 changed files with 27 additions and 1 deletions
+2
View File
@@ -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,