feat: implement customer order form with automated product lookup and mobile-responsive order page

This commit is contained in:
Michael committed 2026-04-02 11:50:46 +02:00
1 parent 6df51a3934
commit 576db2d7f4
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -176,7 +176,7 @@ export function CustomerOrderForm({
setArticleNotFound(false); setArticleNotFound(false);
form.setValue("productName", article.libelle1, { shouldValidate: true }); form.setValue("productName", article.libelle1, { shouldValidate: true });
if (article.gtin) form.setValue("gencode", article.gtin, { shouldValidate: true }); if (article.gtin) form.setValue("gencode", article.gtin, { shouldValidate: true });
if (article.codein) form.setValue("productReference", article.codein, { shouldValidate: true }); if (article.ref_fou_principale) form.setValue("productReference", article.ref_fou_principale, { shouldValidate: true });
// Fournisseur : dernière entrée en stock en priorité // Fournisseur : dernière entrée en stock en priorité
let codefouToMatch = article.codefou_principal; let codefouToMatch = article.codefou_principal;
@@ -178,7 +178,7 @@ export default function MobileCustomerOrdersPage() {
setArticleNotFound(false); setArticleNotFound(false);
form.setValue("productName", article.libelle1, { shouldValidate: true }); form.setValue("productName", article.libelle1, { shouldValidate: true });
if (article.gtin) form.setValue("gencode", article.gtin, { shouldValidate: true }); if (article.gtin) form.setValue("gencode", article.gtin, { shouldValidate: true });
if (article.codein) form.setValue("productReference", article.codein, { shouldValidate: true }); if (article.ref_fou_principale) form.setValue("productReference", article.ref_fou_principale, { shouldValidate: true });
let codefouToMatch = article.codefou_principal; let codefouToMatch = article.codefou_principal;
try { try {