Debug v23

This commit is contained in:
Laurent Destailleur 2026-03-02 20:06:19 +01:00
parent 864191e881
commit 343edad341
6 changed files with 4 additions and 5 deletions

View file

@ -159,7 +159,7 @@ $usercanclose = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && !empt
$usercanvalidate = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $usercancreate) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('commande', 'order_advance', 'validate')));
$usercancancel = ((!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $usercancreate) || (getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && $user->hasRight('commande', 'order_advance', 'annuler')));
$usercansend = (!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') || $user->hasRight('commande', 'order_advance', 'send'));
$usercangeneretedoc = (!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') || $user->hasRight('commande', 'order_advance', 'generetedoc'));
$usercangeneratedoc = (!getDolGlobalString('MAIN_USE_ADVANCED_PERMS') || $user->hasRight('commande', 'order_advance', 'generetedoc'));
$usermustrespectpricemin = ((getDolGlobalString('MAIN_USE_ADVANCED_PERMS') && !$user->hasRight('produit', 'ignore_price_min_advance')) || !getDolGlobalString('MAIN_USE_ADVANCED_PERMS'));
$usercancreatepurchaseorder = ($user->hasRight('fournisseur', 'commande', 'creer') || $user->hasRight('supplier_order', 'creer'));

View file

@ -58,7 +58,7 @@ if (!empty($permissioncreate) && empty($permissiontoadd)) {
}
// Build doc
if ($action == 'builddoc' && ($permissiontoadd || !empty($usercangeneretedoc))) {
if ($action == 'builddoc' && ($permissiontoadd || !empty($usercangeneratedoc))) {
if (is_numeric(GETPOST('model', 'alpha'))) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("Model")), null, 'errors');
} else {

View file

@ -71,7 +71,6 @@ EnableBarOrRestaurantFeatures=Enable features for Bar or Restaurant
ConfirmDeletionOfThisPOSSale=Do your confirm the deletion of this current sale ?
ConfirmDiscardOfThisPOSSale=Do you want to discard this current sale ?
NoClientErrorMessage=Please select a customer first
History=History
ValidateAndClose=Validate and close
Terminal=Terminal
NumberOfTerminals=Number of Terminals

View file

@ -1425,3 +1425,4 @@ SignatureID=Signature
except=except
DUPLICATA=DUPLICATA
ErrorFailedTriggerCall=Failed to call trigger
History=History

View file

@ -5,7 +5,6 @@ SupplierInvoices=Vendor invoices
ShowSupplierInvoice=Show Vendor Invoice
NewSupplier=New vendor
NewSupplierInvoice = New vendor invoice
History=History
ListOfSuppliers=List of vendors
ShowSupplier=Show vendor
BuyingPriceMin=Best buying price

View file

@ -4236,7 +4236,7 @@ div.popuptab {
/* ============================================================================== */
div.tabsAction {
margin: 20px 0em 30px 0em;
margin: 20px 0em 40px 0em;
padding: 0em 0em;
text-align: right;
}