X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fview%2Fview_invoice.php;h=c15753b6c2678c80396e32f6cde34d788ba28a0f;hb=e364d7f526ead371805d80e0ce66ac90a090dbee;hp=b6da97d4373497a03fede71d1e11a848eefc1891;hpb=0ad7b92c6cf2e4e65ca0fa94ba31f30f7b292ba8;p=fa-stable.git diff --git a/sales/view/view_invoice.php b/sales/view/view_invoice.php index b6da97d4..c15753b6 100644 --- a/sales/view/view_invoice.php +++ b/sales/view/view_invoice.php @@ -111,7 +111,8 @@ if (db_num_rows($result) > 0) if($myrow2["quantity"]==0) continue; alt_table_row_color($k); - $value = ((1 - $myrow2["discount_percent"]) * $myrow2["unit_price"] * $myrow2["quantity"]); + $value = round(((1 - $myrow2["discount_percent"]) * $myrow2["unit_price"] * $myrow2["quantity"]), + user_price_dec()); $sub_total += $value; if ($myrow2["discount_percent"] == 0) @@ -120,7 +121,7 @@ if (db_num_rows($result) > 0) } else { - $display_discount = percent_format2($myrow2["discount_percent"]*100) . "%"; + $display_discount = percent_format($myrow2["discount_percent"]*100) . "%"; } label_cell($myrow2["stock_id"]);