mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge remote-tracking branch 'origin/3.9' into develop
This commit is contained in:
commit
a36abd43fd
|
|
@ -274,6 +274,10 @@ if (! empty($conf->margin->enabled))
|
|||
jQuery("input[name='np_marginRate']:first").val('');
|
||||
jQuery("input[name='np_markRate']:first").val('');
|
||||
});
|
||||
jQuery("#qty").keyup(function() {
|
||||
jQuery("input[name='np_marginRate']:first").val('');
|
||||
jQuery("input[name='np_markRate']:first").val('');
|
||||
});
|
||||
jQuery("#remise_percent").keyup(function() {
|
||||
jQuery("input[name='np_marginRate']:first").val('');
|
||||
jQuery("input[name='np_markRate']:first").val('');
|
||||
|
|
@ -322,7 +326,7 @@ if (! empty($conf->margin->enabled))
|
|||
|
||||
/* Add rules to reset price_ht from margin info */
|
||||
<?php
|
||||
if (! empty($conf->global->DISPLAY_MARGIN_RATES))
|
||||
if (! empty($conf->global->DISPLAY_MARGIN_RATES) && !empty($conf->global->MARGIN_RESET_HT_FROM_MARGIN_FIELD))
|
||||
{
|
||||
?>
|
||||
$('#savelinebutton').click(function (e) {
|
||||
|
|
@ -334,7 +338,7 @@ if (! empty($conf->margin->enabled))
|
|||
});*/
|
||||
<?php
|
||||
}
|
||||
if (! empty($conf->global->DISPLAY_MARK_RATES))
|
||||
if (! empty($conf->global->DISPLAY_MARK_RATES) && !empty($conf->global->MARGIN_RESET_HT_FROM_MARGIN_FIELD))
|
||||
{
|
||||
?>
|
||||
$('#savelinebutton').click(function (e) {
|
||||
|
|
|
|||
|
|
@ -1963,7 +1963,7 @@ if (! function_exists("llxFooter"))
|
|||
print "\n<!-- JS CODE TO ENABLE tipTip on all object with class classfortooltip -->\n";
|
||||
print '<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
jQuery(".classfortooltip").tipTip({maxWidth: "'.dol_size(600,'width').'px", edgeOffset: 10, delay: 50, fadeIn: 50, fadeOut: 50});
|
||||
jQuery(".classfortooltip").tipTip({maxWidth: "'.dol_size(400,'width').'px", edgeOffset: 10, delay: 50, fadeIn: 50, fadeOut: 50});
|
||||
});
|
||||
</script>' . "\n";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
* Copyright (C) 2010-2013 Juanjo Menent <jmenent@2byte.es>
|
||||
* Copyright (C) 2012 Cedric Salvador <csalvador@gpcsolutions.fr>
|
||||
* Copyright (C) 2013-2014 Cedric GROSS <c.gross@kreiz-it.fr>
|
||||
* Copyright (C) 2013-2015 Marcos García <marcosgdf@gmail.com>
|
||||
* Copyright (C) 2013-2016 Marcos García <marcosgdf@gmail.com>
|
||||
* Copyright (C) 2011-2014 Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
|
||||
* Copyright (C) 2014 Henry Florian <florian.henry@open-concept.pro>
|
||||
* Copyright (C) 2014-2016 Philippe Grand <philippe.grand@atoo-net.com>
|
||||
|
|
@ -4139,7 +4139,11 @@ class Product extends CommonObject
|
|||
$price_min = $price * (1 - ($rules[$i]->var_min_percent/100));
|
||||
}
|
||||
|
||||
if ($price == $this->multiprices[$i] && ($price_min == $this->multiprices_min[$i])) {
|
||||
//Little check to make sure the price is modified before triggering generation
|
||||
$check_amount = (($price == $this->multiprices[$i]) && ($price_min == $this->multiprices_min[$i]));
|
||||
$check_type = ($baseprice == $this->multiprices_base_type[$i]);
|
||||
|
||||
if ($check_amount && $check_type) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2964,12 +2964,10 @@ table.valid {
|
|||
border-radius: 4px;
|
||||
}
|
||||
#tiptip_content {
|
||||
-moz-border-radius:0px;
|
||||
-webkit-border-radius: 0px;
|
||||
border-radius: 0px;
|
||||
background-color: rgb(255,255,255);
|
||||
/* background-color: rgb(255,255,255);
|
||||
background-color: rgba(255,255,255,0.95);*/
|
||||
-moz-border-radius:0px;
|
||||
-webkit-border-radius: 0px;
|
||||
border-radius: 0px;
|
||||
background-color: rgb(255,255,255);
|
||||
line-height: 1.4em;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user