Add a confirmation when cloning products.

This commit is contained in:
Laurent Destailleur 2009-05-27 15:16:54 +00:00
parent bd99870694
commit c9daeaa149
4 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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