fix(seed): patch existing PO currency from USD to INR on re-seed
This commit is contained in:
parent
67beccc16d
commit
bde7fc9842
1 changed files with 3 additions and 3 deletions
|
|
@ -188,7 +188,7 @@ async function main() {
|
|||
// Sample POs — upsert so re-running seed is safe
|
||||
const po1 = await db.purchaseOrder.upsert({
|
||||
where: { poNumber: "PO-2026-00001" },
|
||||
update: {},
|
||||
update: { currency: "INR" },
|
||||
create: {
|
||||
poNumber: "PO-2026-00001",
|
||||
title: "Engine Room Spare Parts — MV Pelagia Star",
|
||||
|
|
@ -218,7 +218,7 @@ async function main() {
|
|||
|
||||
await db.purchaseOrder.upsert({
|
||||
where: { poNumber: "PO-2026-00002" },
|
||||
update: {},
|
||||
update: { currency: "INR" },
|
||||
create: {
|
||||
poNumber: "PO-2026-00002",
|
||||
title: "Crew Safety Equipment — MV Aegean Wind",
|
||||
|
|
@ -242,7 +242,7 @@ async function main() {
|
|||
|
||||
await db.purchaseOrder.upsert({
|
||||
where: { poNumber: "PO-2026-00003" },
|
||||
update: {},
|
||||
update: { currency: "INR" },
|
||||
create: {
|
||||
poNumber: "PO-2026-00003",
|
||||
title: "Navigation Charts Update — Fleet",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue