feat: 更新库存逻辑核销后状态

This commit is contained in:
mkm 2024-06-28 18:45:55 +08:00
parent 28f434f0d7
commit cdeeaaf717

View File

@ -157,7 +157,7 @@ class StoreFinanceFlowLogic extends BaseLogic
if ($find) {
$find->status=1;
$find->save();
if ($find['number'] > 0) { // 核销后更新库存
if ($find['number'] > 0) {
SystemStore::where('id', $store_id)->inc('attrition', $find['number'])->update();
}
}