X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fview%2Fview_supp_credit.php;h=79e6e5b9b9d7ddf3bc80d22857559f4c02ce4a23;hb=c99c4da3f3a009e48b536dc1cc5268d566dfc6cb;hp=60fa7f41b52b334e2b95b66fea9b7ec2c1042e3f;hpb=80dd97a37f674cc3691fa04af4c29607067566b2;p=fa-stable.git diff --git a/purchasing/view/view_supp_credit.php b/purchasing/view/view_supp_credit.php index 60fa7f41..79e6e5b9 100644 --- a/purchasing/view/view_supp_credit.php +++ b/purchasing/view/view_supp_credit.php @@ -34,7 +34,7 @@ elseif (isset($_POST["trans_no"])) $supp_trans = new supp_trans(); $supp_trans->is_invoice = false; -read_supp_invoice($trans_no, 21, $supp_trans); +read_supp_invoice($trans_no, ST_SUPPCREDIT, $supp_trans); display_heading(_("SUPPLIER CREDIT NOTE") . " # " . $trans_no); echo "
"; @@ -49,7 +49,7 @@ label_cells(_("Invoice Date"), $supp_trans->tran_date, "class='tableheader2'"); label_cells(_("Due Date"), $supp_trans->due_date, "class='tableheader2'"); label_cells(_("Currency"), get_supplier_currency($supp_trans->supplier_id), "class='tableheader2'"); end_row(); -comments_display_row(21, $trans_no); +comments_display_row(ST_SUPPCREDIT, $trans_no); end_table(1); $total_gl = display_gl_items($supp_trans, 3); @@ -60,7 +60,7 @@ $display_sub_tot = number_format2($total_gl+$total_grn,user_price_dec()); start_table("$table_style width=95%"); label_row(_("Sub Total"), $display_sub_tot, "align=right", "nowrap align=right width=17%"); -$tax_items = get_trans_tax_details(21, $trans_no); +$tax_items = get_trans_tax_details(ST_SUPPCREDIT, $trans_no); display_supp_trans_tax_details($tax_items, 1); $display_total = number_format2(-($supp_trans->ov_amount + $supp_trans->ov_gst),user_price_dec()); @@ -68,11 +68,11 @@ label_row(_("TOTAL CREDIT NOTE"), $display_total, "colspan=1 align=right", "nowr end_table(1); -$voided = is_voided_display(21, $trans_no, _("This credit note has been voided.")); +$voided = is_voided_display(ST_SUPPCREDIT, $trans_no, _("This credit note has been voided.")); if (!$voided) { - display_allocations_from(PT_SUPPLIER, $supp_trans->supplier_id, 21, $trans_no, -($supp_trans->ov_amount + $supp_trans->ov_gst)); + display_allocations_from(PT_SUPPLIER, $supp_trans->supplier_id, ST_SUPPCREDIT, $trans_no, -($supp_trans->ov_amount + $supp_trans->ov_gst)); } end_page(true);