[FIX] 修正盤調單明細插入時的欄位名稱錯誤並更新簡報/圖片處理套件

This commit is contained in:
2026-03-13 16:18:13 +08:00
parent b57a4feeab
commit bee8ecb55b
4 changed files with 7505 additions and 6605 deletions

View File

@@ -49,7 +49,7 @@ class AdjustService
if (abs($item->diff_qty) < 0.0001) continue;
$itemsToInsert[] = [
'inventory_adjust_doc_id' => $adjDoc->id,
'adjust_doc_id' => $adjDoc->id,
'product_id' => $item->product_id,
'batch_number' => $item->batch_number,
'qty_before' => $item->system_qty,
@@ -108,7 +108,7 @@ class AdjustService
$qtyBefore = $inventory ? $inventory->quantity : 0;
$itemsToInsert[] = [
'inventory_adjust_doc_id' => $doc->id,
'adjust_doc_id' => $doc->id,
'product_id' => $data['product_id'],
'batch_number' => $data['batch_number'] ?? null,
'qty_before' => $qtyBefore,