3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-08-18 03:06:23 +00:00

Backfill to order items

This commit is contained in:
snipe
2026-08-05 15:30:05 +01:00
parent 5524ab482c
commit 915f6eb59e

View File

@ -118,6 +118,7 @@ return new class extends Migration
'item_id' => $row->id,
'qty' => max(1, (int) ($qtyMap[$row->id] ?? 1)),
'price' => $row->purchase_cost,
'created_by' => $row->created_by,
'created_at' => $row->created_at ?? now(),
'updated_at' => $row->created_at ?? now(),
]);