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 use inline images in emails.
|
||||
- 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
|
||||
characters.
|
||||
- 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.
|
||||
CopyOf=Copy of
|
||||
Show=Show
|
||||
ShowCardHere=Show card
|
||||
Search=Search
|
||||
Valid=Valid
|
||||
Approve=Approve
|
||||
|
||||
@ -112,6 +112,7 @@ ConfirmClone=Veuillez choisir votre option de clonage :
|
||||
NoCloneOptionsSpecified=Aucun option de clonage n'a été spécifiée.
|
||||
CopyOf=Copie de
|
||||
Show=Voir
|
||||
ShowCardHere=Voir la fiche ici
|
||||
Search=Rechercher
|
||||
Valid=Valider
|
||||
Approve=Approuver
|
||||
|
||||
@ -260,7 +260,9 @@ if ($_POST["action"] == 'confirm_clone' && $_POST['confirm'] == 'yes' && $user->
|
||||
$_error = 1;
|
||||
$_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);
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user