Add a confirmation when cloning products.
This commit is contained in:
parent
bd99870694
commit
c9daeaa149
@ -14,6 +14,7 @@ For users:
|
|||||||
- New: Can add a field errors-to in emailing.
|
- New: Can add a field errors-to in emailing.
|
||||||
- New: Can use inline images in emails.
|
- New: Can use inline images in emails.
|
||||||
- New: Add predefined invoices (can be use for repeated invoices).
|
- New: Add predefined invoices (can be use for repeated invoices).
|
||||||
|
- New: Add a confirmation when cloning products.
|
||||||
- Fix: Customer code was not correct on PDF it if contains special
|
- Fix: Customer code was not correct on PDF it if contains special
|
||||||
characters.
|
characters.
|
||||||
- Fix: Can update price even with "NPR" VAT rates.
|
- Fix: Can update price even with "NPR" VAT rates.
|
||||||
|
|||||||
@ -112,6 +112,7 @@ ConfirmClone=Choose data you want to clone :
|
|||||||
NoCloneOptionsSpecified=No data to clone defined.
|
NoCloneOptionsSpecified=No data to clone defined.
|
||||||
CopyOf=Copy of
|
CopyOf=Copy of
|
||||||
Show=Show
|
Show=Show
|
||||||
|
ShowCardHere=Show card
|
||||||
Search=Search
|
Search=Search
|
||||||
Valid=Valid
|
Valid=Valid
|
||||||
Approve=Approve
|
Approve=Approve
|
||||||
|
|||||||
@ -112,6 +112,7 @@ ConfirmClone=Veuillez choisir votre option de clonage :
|
|||||||
NoCloneOptionsSpecified=Aucun option de clonage n'a été spécifiée.
|
NoCloneOptionsSpecified=Aucun option de clonage n'a été spécifiée.
|
||||||
CopyOf=Copie de
|
CopyOf=Copie de
|
||||||
Show=Voir
|
Show=Voir
|
||||||
|
ShowCardHere=Voir la fiche ici
|
||||||
Search=Rechercher
|
Search=Rechercher
|
||||||
Valid=Valider
|
Valid=Valider
|
||||||
Approve=Approuver
|
Approve=Approuver
|
||||||
|
|||||||
@ -260,7 +260,9 @@ if ($_POST["action"] == 'confirm_clone' && $_POST['confirm'] == 'yes' && $user->
|
|||||||
$_error = 1;
|
$_error = 1;
|
||||||
$_GET["action"] = "";
|
$_GET["action"] = "";
|
||||||
|
|
||||||
$mesg='<div class="error">'.$langs->trans("ErrorProductAlreadyExists",$product->ref).'</div>';
|
$mesg='<div class="error">'.$langs->trans("ErrorProductAlreadyExists",$product->ref);
|
||||||
|
$mesg.=' <a href="'.$_SERVER["PHP_SELF"].'?ref='.$product->ref.'">'.$langs->trans("ShowCardHere").'</a>.';
|
||||||
|
$mesg.='</div>';
|
||||||
//dol_print_error($product->db);
|
//dol_print_error($product->db);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user