Fix minor :operation detail bottom, compute amount

This commit is contained in:
sparkyx 2025-06-24 17:11:28 +02:00
parent 19337b4e1c
commit 1c7a430bb1

View file

@ -196,7 +196,7 @@ if ($aRap != null ) {
$amount=$array_jr[0]['jr_montant']; $amount=$array_jr[0]['jr_montant'];
switch (substr($array_jr[0]['jr_internal'],0,1)) { switch (substr($array_jr[0]['jr_internal'],0,1)) {
case 'A': case 'A':
$amount = $cn->get_value("select sum(qp_price+qp_vat-qp_vat_sided) from quant_purchase qp $amount = $cn->get_value("select sum(qp_price+qp_vat+qp_nd_tva+qp_nd_tva_recup-qp_vat_sided) from quant_purchase qp
where qp_internal=$1", where qp_internal=$1",
array($internal)); array($internal));
// add additional tax if any // add additional tax if any