Fix Bug : repository (stock) the delta was rounded

This commit is contained in:
sparkyx 2025-09-10 10:25:59 +02:00
parent 95a79ae252
commit e9535840c1
5 changed files with 15 additions and 6 deletions

View file

@ -95,7 +95,7 @@ $a_repo=$cn->get_array("select distinct t.r_id,r_name,r_adress,r_city,r_country,
</td>
<td class="num">
<?php echo nbm(bcsub($a_stock[$s]['qin'],$a_stock[$s]['qout']))?>
<?php echo nbm(bcsub($a_stock[$s]['qin'],$a_stock[$s]['qout'],4))?>
</td>
</tr>
<?php endfor; ?>

View file

@ -89,7 +89,7 @@
<?php echo _("DIFF")?> :
</td>
<td class="num">
<?php echo nbm((bcsub($array[0]['s_qin']??0,$array[0]['s_qout']??0)))?>
<?php echo nbm((bcsub($array[0]['s_qin']??0,$array[0]['s_qout']??0,4)))?>
</td>
</tr>
</table>