Update commonobject.class.php

Hide the margintable if click at the top of it (usefull when customer are just in front of you), reappear when you click again
This commit is contained in:
BENKE Charles 2014-05-18 14:59:20 +02:00
parent 39ce76ba1b
commit b210d7a00f

View File

@ -3235,8 +3235,8 @@ abstract class CommonObject
$rounding = min($conf->global->MAIN_MAX_DECIMALS_UNIT,$conf->global->MAIN_MAX_DECIMALS_TOT);
$marginInfo = $this->getMarginInfos($force_price);
print '<table class="nobordernopadding" width="100%">';
print "<div onclick=\"$('#margintable').toggle();\" >&nbsp;</div>";
print '<table class="nobordernopadding" id="margintable" width="100%">';
print '<tr class="liste_titre">';
print '<td width="30%">'.$langs->trans('Margins').'</td>';
print '<td width="20%" align="right">'.$langs->trans('SellingPrice').'</td>';