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:
@ -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(),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user