X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fview%2Fview_credit.php;h=f800c3a730ecaad9475ba87cbf4cabf411c5faf1;hb=40db4214ac1a17dadc1aead2134f14744ffcc2fe;hp=f220fca140512116bcd29f3f7af4c1d8fe935855;hpb=99730b8d6deb7e81d2f1ebeb2ce7066d27729485;p=fa-stable.git diff --git a/sales/view/view_credit.php b/sales/view/view_credit.php index f220fca1..f800c3a7 100644 --- a/sales/view/view_credit.php +++ b/sales/view/view_credit.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 1; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); @@ -87,10 +96,10 @@ if (db_num_rows($result) > 0) while ($myrow2 = db_fetch($result)) { - + if ($myrow2["quantity"] == 0) continue; alt_table_row_color($k); - $value = round(((1 - $myrow2["discount_percent"]) * $myrow2["unit_price"] * $myrow2["quantity"]), + $value = round2(((1 - $myrow2["discount_percent"]) * $myrow2["unit_price"] * $myrow2["quantity"]), user_price_dec()); $sub_total += $value; @@ -128,7 +137,7 @@ if ($sub_total != 0) "nowrap align=right width=15%"); label_row(_("Shipping"), $display_freight, "colspan=6 align=right", "nowrap align=right"); -$tax_items = get_customer_trans_tax_details(11, $trans_id); +$tax_items = get_trans_tax_details(11, $trans_id); display_customer_trans_tax_details($tax_items, 6); label_row("" . _("TOTAL CREDIT") . "