Allow one order with items from multiple companies and shared cash settlement.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-15 08:52:54 +02:00
co-authored by Cursor
parent e801557e62
commit 551fd6f06a
5 changed files with 138 additions and 45 deletions
+3
View File
@@ -308,11 +308,14 @@ model OrderItem {
unitDiscount Float? @default(0)
lineTotal Float?
notes String?
companyId String
companyName String
order Order @relation(fields: [orderId], references: [id], onDelete: Cascade)
product Product? @relation(fields: [productId], references: [id], onDelete: SetNull)
@@index([orderId])
@@index([companyId])
}
model OrderStatusHistory {