Update list.php
This commit is contained in:
parent
8baa529719
commit
97f161b276
@ -585,22 +585,19 @@ if ($resql)
|
|||||||
'presend'=>$langs->trans("SendByMail"),
|
'presend'=>$langs->trans("SendByMail"),
|
||||||
'builddoc'=>$langs->trans("PDFMerge"),
|
'builddoc'=>$langs->trans("PDFMerge"),
|
||||||
);
|
);
|
||||||
if ($conf->prelevement->enabled) {
|
if ($conf->prelevement->enabled) {
|
||||||
$langs->load("withdrawals");
|
$langs->load("withdrawals");
|
||||||
$arrayofmassactions['withdrawrequest'] = $langs->trans("MakeWithdrawRequest");
|
$arrayofmassactions['withdrawrequest'] = $langs->trans("MakeWithdrawRequest");
|
||||||
}
|
}
|
||||||
if ($user->rights->facture->supprimer) {
|
if ($user->rights->facture->supprimer) {
|
||||||
//if (! empty($conf->global->STOCK_CALCULATE_ON_BILL) || empty($conf->global->INVOICE_CAN_ALWAYS_BE_REMOVED))
|
if (!empty($conf->global->INVOICE_CAN_REMOVE_DRAFT_ONLY)) {
|
||||||
if (!empty($conf->global->INVOICE_CAN_REMOVE_DRAFT_ONLY)) {
|
$arrayofmassactions['predeletedraft'] = $langs->trans("Deletedraft");
|
||||||
$arrayofmassactions['predeletedraft'] = $langs->trans("Deletedraft");
|
}
|
||||||
|
elseif (!empty($conf->global->INVOICE_CAN_ALWAYS_BE_REMOVED)) { // mass deletion never possible on invoices on such situation
|
||||||
}
|
$arrayofmassactions['predelete'] = $langs->trans("Delete");
|
||||||
elseif (!empty($conf->global->INVOICE_CAN_ALWAYS_BE_REMOVED)) {
|
}
|
||||||
// mass deletion never possible on invoices on such situation
|
}
|
||||||
$arrayofmassactions['predelete'] = $langs->trans("Delete");
|
if (in_array($massaction, array('presend', 'predelete'))) $arrayofmassactions = array();
|
||||||
}
|
|
||||||
}
|
|
||||||
if (in_array($massaction, array('presend', 'predelete'))) $arrayofmassactions = array();
|
|
||||||
$massactionbutton=$form->selectMassAction('', $arrayofmassactions);
|
$massactionbutton=$form->selectMassAction('', $arrayofmassactions);
|
||||||
|
|
||||||
$newcardbutton='';
|
$newcardbutton='';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user