correct mass action "classify delivered"
This commit is contained in:
parent
70a18bc15a
commit
e4f4a07fc6
@ -337,15 +337,15 @@ if ($action == 'shipped' && $permissiontoadd) {
|
||||
$error = 0;
|
||||
foreach ($toselect as $checked) {
|
||||
if ($objecttmp->fetch($checked)) {
|
||||
if ($objecttmp->statut == 1) {
|
||||
if ($objecttmp->statut == 1 || $objecttmp->statut == 2) {
|
||||
if ($objecttmp->cloture($user)) {
|
||||
setEventMessage($objecttmp->ref." ".$langs->trans('PassedInOpenStatus'), 'mesgs');
|
||||
setEventMessage($objecttmp->ref." ".$langs->trans('PassedInShippedStatus'), 'mesgs');
|
||||
} else {
|
||||
setEventMessage($langs->trans('CantBeValidated'), 'errors');
|
||||
setEventMessage($langs->trans('YouCantShipThis'), 'errors');
|
||||
$error++;
|
||||
}
|
||||
} else {
|
||||
setEventMessage($objecttmp->ref." ".$langs->trans('IsNotADraft'), 'errors');
|
||||
setEventMessage($objecttmp->ref." ".$langs->trans('MustBeValidatedBefore'), 'errors');
|
||||
$error++;
|
||||
}
|
||||
} else {
|
||||
|
||||
@ -102,6 +102,9 @@ ConfirmCancelOrder=Are you sure you want to cancel this order?
|
||||
ConfirmMakeOrder=Are you sure you want to confirm you made this order on <b>%s</b>?
|
||||
GenerateBill=Generate invoice
|
||||
ClassifyShipped=Classify delivered
|
||||
PassedInShippedStatus=classified delivered
|
||||
YouCantShipThis=I can't classify this. Please check user permissions
|
||||
MustBeValidatedBefore=must be Validated or Shipping in order to be classified as shipped
|
||||
DraftOrders=Draft orders
|
||||
DraftSuppliersOrders=Draft purchase orders
|
||||
OnProcessOrders=In process orders
|
||||
|
||||
@ -102,6 +102,9 @@ ConfirmCancelOrder=Êtes-vous sûr de vouloir annuler cette commande ?
|
||||
ConfirmMakeOrder=Êtes-vous sûr de vouloir confirmer cette commande en date du <b>%s</b> ?
|
||||
GenerateBill=Facturer
|
||||
ClassifyShipped=Classer livrée
|
||||
PassedInShippedStatus=classée livrée
|
||||
YouCantShipThis=Classement impossible : veuillez vérifier les droits utilisateur
|
||||
MustBeValidatedBefore=doit être Validée ou En cours de livraison pour pouvoir être classée livrée
|
||||
DraftOrders=Commandes brouillons
|
||||
DraftSuppliersOrders=Commandes fournisseurs brouillons
|
||||
OnProcessOrders=Commandes en cours de traitement
|
||||
|
||||
Loading…
Reference in New Issue
Block a user