mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
feat: implement customer order form with automated product lookup and mobile-responsive order page
This commit is contained in:
1 parent
6df51a3934
commit
576db2d7f4
2 files changed
+2
-2
No files matched your search
@@ -176,7 +176,7 @@ export function CustomerOrderForm({
|
||||
setArticleNotFound(false);
|
||||
form.setValue("productName", article.libelle1, { 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é
|
||||
let codefouToMatch = article.codefou_principal;
|
||||
|
||||
@@ -178,7 +178,7 @@ export default function MobileCustomerOrdersPage() {
|
||||
setArticleNotFound(false);
|
||||
form.setValue("productName", article.libelle1, { 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;
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user