feat: add receiptName field to InventoryItem model and update related DTOs and service

This commit is contained in:
Nils-Johan Gynther
2026-04-16 21:22:34 +02:00
parent af88a0dc81
commit 2a0da005ff
7 changed files with 25 additions and 2 deletions
+2 -2
View File
@@ -162,7 +162,7 @@ export default function ReceiptImportClient() {
productId: r.selectedProductId,
quantity: parseFloat(r.editQty) || r.quantity,
unit: r.editUnit,
brand: r.rawName,
receiptName: r.rawName,
}),
}),
),
@@ -299,4 +299,4 @@ export default function ReceiptImportClient() {
function primaryBtn(disabled: boolean): React.CSSProperties {
return { padding: '0.6rem 1.25rem', background: disabled ? '#aaa' : '#0070f3', color: '#fff', border: 'none', borderRadius: '6px', cursor: disabled ? 'not-allowed' : 'pointer', fontWeight: 600, fontSize: '0.95rem' };
}
}