-
-
-
- {typeLabels[comment.type]}
-
+
+
{comment.content}
+
+ Par {comment.author.email} • {safeFormat(comment.createdAt, "dd/MM/yyyy 'à' HH:mm")}
+
-
+
-
-
{comment.content}
-
-
- Par {comment.author.email}
- {safeFormat(new Date(comment.createdAt), 'dd/MM/yyyy HH:mm')}
-
)}
diff --git a/client/src/pages/BLReconciliation.tsx b/client/src/pages/BLReconciliation.tsx
index d23d765..bc51c79 100644
--- a/client/src/pages/BLReconciliation.tsx
+++ b/client/src/pages/BLReconciliation.tsx
@@ -147,8 +147,7 @@ export default function BLReconciliation() {
const createCommentMutation = useMutation({
mutationFn: async ({ deliveryId, content }: { deliveryId: number; content: string }) => {
const response = await apiRequest(`/api/deliveries/${deliveryId}/reconciliation-comments`, 'POST', {
- content,
- type: 'warning'
+ content
});
return response;
},
diff --git a/server/storage.ts b/server/storage.ts
index 7be5426..d910797 100644
--- a/server/storage.ts
+++ b/server/storage.ts
@@ -2585,7 +2585,6 @@ export class DatabaseStorage implements IStorage {
deliveryId: reconciliationComments.deliveryId,
groupId: reconciliationComments.groupId,
content: reconciliationComments.content,
- type: reconciliationComments.type,
authorId: reconciliationComments.authorId,
createdAt: reconciliationComments.createdAt,
updatedAt: reconciliationComments.updatedAt,
diff --git a/shared/schema.ts b/shared/schema.ts
index 65ee1e1..950542e 100644
--- a/shared/schema.ts
+++ b/shared/schema.ts
@@ -183,7 +183,6 @@ export const reconciliationComments = pgTable("reconciliation_comments", {
deliveryId: integer("delivery_id").notNull(), // Référence vers la livraison concernée
groupId: integer("group_id").notNull(), // Magasin/groupe pour filtrage
content: text("content").notNull(), // Contenu du commentaire
- type: varchar("type", { length: 50 }).notNull().default("warning"), // warning, error, success
authorId: varchar("author_id").notNull(), // Utilisateur auteur du commentaire
createdAt: timestamp("created_at").defaultNow(),
updatedAt: timestamp("updated_at").defaultNow(),