mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-23 15:08:22 +02:00
Update product naming convention for DLC items
Rename `productName` to `name` in `dlcProducts` schema and map `productName` to `name` in `DlcPage.tsx` for database compatibility. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/62NL8Ye
This commit is contained in:
1 parent
0a328c147e
commit
21ca1a32eb
3 files changed
+7
-5
No files matched your search
@@ -27,6 +27,10 @@ externalPort = 3000
|
|||||||
localPort = 38451
|
localPort = 38451
|
||||||
externalPort = 3002
|
externalPort = 3002
|
||||||
|
|
||||||
|
[[ports]]
|
||||||
|
localPort = 39283
|
||||||
|
externalPort = 6000
|
||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 41343
|
localPort = 41343
|
||||||
externalPort = 3001
|
externalPort = 3001
|
||||||
@@ -35,10 +39,6 @@ externalPort = 3001
|
|||||||
localPort = 41735
|
localPort = 41735
|
||||||
externalPort = 4200
|
externalPort = 4200
|
||||||
|
|
||||||
[[ports]]
|
|
||||||
localPort = 46005
|
|
||||||
externalPort = 5000
|
|
||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 46559
|
localPort = 46559
|
||||||
externalPort = 5173
|
externalPort = 5173
|
||||||
|
|||||||
@@ -264,6 +264,7 @@ export default function DlcPage() {
|
|||||||
|
|
||||||
const dlcData: InsertDlcProduct = {
|
const dlcData: InsertDlcProduct = {
|
||||||
...data,
|
...data,
|
||||||
|
name: data.productName, // Copier productName vers name (requis dans la DB)
|
||||||
expiryDate: dlcDate,
|
expiryDate: dlcDate,
|
||||||
quantity: 1, // Valeur par défaut
|
quantity: 1, // Valeur par défaut
|
||||||
unit: "unité", // Valeur par défaut
|
unit: "unité", // Valeur par défaut
|
||||||
|
|||||||
+2
-1
@@ -233,7 +233,8 @@ export const customerOrders = pgTable("customer_orders", {
|
|||||||
// DLC Products (Date Limite de Consommation)
|
// DLC Products (Date Limite de Consommation)
|
||||||
export const dlcProducts = pgTable("dlc_products", {
|
export const dlcProducts = pgTable("dlc_products", {
|
||||||
id: serial("id").primaryKey(),
|
id: serial("id").primaryKey(),
|
||||||
productName: varchar("product_name").notNull(), // Nom du produit
|
name: varchar("name").notNull(), // Nom du produit (requis dans la base de données)
|
||||||
|
productName: varchar("product_name"), // Nom du produit (champ alternatif)
|
||||||
gencode: varchar("gencode"), // Code-barres/gencode EAN13 (optionnel)
|
gencode: varchar("gencode"), // Code-barres/gencode EAN13 (optionnel)
|
||||||
supplierId: integer("supplier_id").notNull(), // ID du fournisseur
|
supplierId: integer("supplier_id").notNull(), // ID du fournisseur
|
||||||
groupId: integer("group_id").notNull(), // ID du magasin/groupe
|
groupId: integer("group_id").notNull(), // ID du magasin/groupe
|
||||||
|
|||||||
Reference in new issue
Block a user