mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix label of set to status mass action
This commit is contained in:
parent
d07669a92c
commit
f34253796f
|
|
@ -1147,18 +1147,18 @@ EventReminder=Event Reminder
|
|||
UpdateForAllLines=Update for all lines
|
||||
OnHold=On hold
|
||||
Civility=Civility
|
||||
AffectTag=Affect Tag
|
||||
AffectUser=Affect User
|
||||
AffectTag=Assign Tag
|
||||
AffectUser=Assign User
|
||||
SetSupervisor=Set Supervisor
|
||||
CreateExternalUser=Create external user
|
||||
ConfirmAffectTag=Bulk Tag Affect
|
||||
ConfirmAffectUser=Bulk User Affect
|
||||
ConfirmAffectTag=Bulk Tag Assignement
|
||||
ConfirmAffectUser=Bulk User Assignement
|
||||
ProjectRole=Role assigned on each project
|
||||
TasksRole=Role assigned on each task of each project
|
||||
ConfirmSetSupervisor=Bulk Supervisor Set
|
||||
ConfirmUpdatePrice=Choose a increase/decrease price rate
|
||||
ConfirmAffectTagQuestion=Are you sure you want to affect tags to the %s selected record(s)?
|
||||
ConfirmAffectUserQuestion=Are you sure you want to affect users to the %s selected record(s)?
|
||||
ConfirmAffectTagQuestion=Are you sure you want to assign tags to the %s selected record(s)?
|
||||
ConfirmAffectUserQuestion=Are you sure you want to assign users to the %s selected record(s)?
|
||||
ConfirmSetSupervisorQuestion=Are you sure you want to set supervisor to the %s selected record(s)?
|
||||
ConfirmUpdatePriceQuestion=Are you sure you want to update the price of the %s selected record(s)?
|
||||
CategTypeNotFound=No tag type found for type of records
|
||||
|
|
@ -1169,6 +1169,7 @@ InformationOnLinkToContract=This amount is only the total of all the lines of th
|
|||
ConfirmCancel=Are you sure you want to cancel
|
||||
EmailMsgID=Email MsgID
|
||||
EmailDate=Email date
|
||||
SetToStatus=Set to status %s
|
||||
SetToEnabled=Set to enabled
|
||||
SetToDisabled=Set to disabled
|
||||
ConfirmMassEnabling=mass enabling confirmation
|
||||
|
|
@ -1197,8 +1198,8 @@ Terminated=Terminated
|
|||
AddLineOnPosition=Add line on position (at the end if empty)
|
||||
ConfirmAllocateCommercial=Assign sales representative confirmation
|
||||
ConfirmAllocateCommercialQuestion=Are you sure you want to assign the %s selected record(s)?
|
||||
CommercialsAffected=Sales representatives affected
|
||||
CommercialAffected=Sales representative affected
|
||||
CommercialsAffected=Sales representatives assigned
|
||||
CommercialAffected=Sales representative assigned
|
||||
YourMessage=Your message
|
||||
YourMessageHasBeenReceived=Your message has been received. We will answer or contact you as soon as possible.
|
||||
UrlToCheck=Url to check
|
||||
|
|
|
|||
|
|
@ -796,36 +796,41 @@ class Societe extends CommonObject
|
|||
*/
|
||||
public $bank_account;
|
||||
|
||||
|
||||
const STATUS_CEASED = 0;
|
||||
const STATUS_INACTIVITY = 1;
|
||||
|
||||
/**
|
||||
* Third party is no customer
|
||||
* Third party type is no customer
|
||||
*/
|
||||
const NO_CUSTOMER = 0;
|
||||
|
||||
/**
|
||||
* Third party is a customer
|
||||
* Third party type is a customer
|
||||
*/
|
||||
const CUSTOMER = 1;
|
||||
|
||||
/**
|
||||
* Third party is a prospect
|
||||
* Third party type is a prospect
|
||||
*/
|
||||
const PROSPECT = 2;
|
||||
|
||||
/**
|
||||
* Third party is a customer and a prospect
|
||||
* Third party type is a customer and a prospect
|
||||
*/
|
||||
const CUSTOMER_AND_PROSPECT = 3;
|
||||
|
||||
/**
|
||||
* Third party is no supplier
|
||||
* Third party supplier flag is not supplier
|
||||
*/
|
||||
const NO_SUPPLIER = 0;
|
||||
|
||||
/**
|
||||
* Third party is a supplier
|
||||
* Third party supplier flag is a supplier
|
||||
*/
|
||||
const SUPPLIER = 1;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
|
|
|||
|
|
@ -321,7 +321,8 @@ if ($action == "change") { // Change customer for TakePOS
|
|||
}
|
||||
|
||||
if (GETPOST('cancel', 'alpha')) {
|
||||
$action = 'list'; $massaction = '';
|
||||
$action = 'list';
|
||||
$massaction = '';
|
||||
}
|
||||
if (!GETPOST('confirmmassaction', 'alpha') && $massaction != 'presend' && $massaction != 'confirm_presend') {
|
||||
$massaction = '';
|
||||
|
|
@ -934,10 +935,10 @@ if (isModEnabled('category') && $user->hasRight("societe", "creer")) {
|
|||
$arrayofmassactions['preaffecttag'] = img_picto('', 'category', 'class="pictofixedwidth"').$langs->trans("AffectTag");
|
||||
}
|
||||
if ($user->hasRight("societe", "creer")) {
|
||||
$arrayofmassactions['preenable'] = img_picto('', 'stop-circle', 'class="pictofixedwidth"').$langs->trans("SetToEnabled");
|
||||
$arrayofmassactions['preenable'] = img_picto('', 'stop-circle', 'class="pictofixedwidth"').$langs->trans("SetToStatus", $object->LibStatut($object::STATUS_INACTIVITY));
|
||||
}
|
||||
if ($user->hasRight("societe", "creer")) {
|
||||
$arrayofmassactions['predisable'] = img_picto('', 'stop-circle', 'class="pictofixedwidth"').$langs->trans("SetToDisabled");
|
||||
$arrayofmassactions['predisable'] = img_picto('', 'stop-circle', 'class="pictofixedwidth"').$langs->trans("SetToStatus", $object->LibStatut($object::STATUS_CEASED));
|
||||
}
|
||||
if ($user->hasRight("societe", "creer")) {
|
||||
$arrayofmassactions['presetcommercial'] = img_picto('', 'user', 'class="pictofixedwidth"').$langs->trans("AllocateCommercial");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user