Fix shadow must be same for all buttons. if we chang for common we must

change for fordbidden, grayed and others.
This commit is contained in:
Laurent Destailleur 2024-08-30 16:32:16 +02:00
parent 2a326d02ed
commit 065ef0b2af
3 changed files with 6 additions and 5 deletions

View file

@ -408,7 +408,7 @@ class MouvementStock extends CommonObject
}
} else { // If not found, we add record
$productlot = new Productlot($this->db);
$productlot->origin = !empty($this->origin_type) ? $this->origin_type : '';
$productlot->origin_type = !empty($this->origin_type) ? $this->origin_type : '';
$productlot->origin_id = !empty($this->origin_id) ? $this->origin_id : 0;
$productlot->entity = $conf->entity;
$productlot->fk_product = $fk_product;
@ -431,7 +431,8 @@ class MouvementStock extends CommonObject
}
}
// Check if stock is enough when qty is < 0
// Check if stock is enough when qty is < 0.
// THIS MUST BE DONE AT END OF MOVEMENTS
// Note that qty should be > 0 with type 0 or 3, < 0 with type 1 or 2.
if ($movestock && $qty < 0 && !getDolGlobalInt('STOCK_ALLOW_NEGATIVE_TRANSFER')) {
if (isModEnabled('productbatch') && $product->hasbatch() && !$skip_batch) {

View file

@ -145,8 +145,8 @@ span.butActionNewRefused>span.fa, span.butActionNewRefused>span.fa:hover
.butAction:hover, .dropdown-holder.open > .butAction {
/** TODO use css var with hsl from --colortextlink to allow create darken or lighten color */
-webkit-box-shadow: 5px 5px 0px rgba(0,0,0,0.1), inset 0px 0px 200px rgba(0,0,0,0.3); /* fix hover feedback : use "inset" background to easily darken background */
box-shadow: 5px 5px 0px rgba(0,0,0,0.1), inset 0px 0px 200px rgba(0,0,0,0.3); /* fix hover feedback : use "inset" background to easily darken background */
-webkit-box-shadow: 0px 0px 6px rgba(50,50,50,0.4), inset 0px 0px 200px rgba(0,0,0,0.3); /* fix hover feedback : use "inset" background to easily darken background */
box-shadow: 0px 0px 6px rgba(50,50,50,0.4), inset 0px 0px 200px rgba(0,0,0,0.3); /* fix hover feedback : use "inset" background to easily darken background */
}
.butActionNew:hover {
text-decoration: underline;

View file

@ -23,7 +23,7 @@ if (!defined('ISLOADEDBYSTEELSHEET')) {
min-height: 94px; /* must be same height than info-box-icon */
background: var(--colorbacklineimpair2);
width: 100%;
box-shadow: 1px 1px 15px rgba(192, 192, 192, 0.2);
box-shadow: 1px 1px 12px rgba(192, 192, 192, 0.2);
border-radius: 2px;
border: 1px solid #e9e9e9;
margin-bottom: 15px;