X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fview%2Fview_invoice.php;h=410629a030cf2b62f7b9b55aca6eaa1fd37426f4;hb=0da4935c1fb5b588bfd7ead31f05069c9566eb8d;hp=f34116df7564842d7ffa3a26113ce6da9f51a698;hpb=818719f38b8327cdca616d58b13913dbd174d96a;p=fa-stable.git diff --git a/sales/view/view_invoice.php b/sales/view/view_invoice.php index f34116df..410629a0 100644 --- a/sales/view/view_invoice.php +++ b/sales/view/view_invoice.php @@ -1,16 +1,16 @@ . + See the License here . ***********************************************************************/ -$page_security = 1; -$path_to_root="../.."; +$page_security = 'SA_SALESTRANSVIEW'; +$path_to_root = "../.."; include_once($path_to_root . "/includes/session.inc"); include_once($path_to_root . "/sales/includes/sales_ui.inc"); @@ -38,7 +38,7 @@ $myrow = get_customer_trans($trans_id, 10); $branch = get_branch($myrow["branch_code"]); -$sales_order = get_sales_order_header($myrow["order_"]); +$sales_order = get_sales_order_header($myrow["order_"], 30); display_heading(sprintf(_("SALES INVOICE #%d"),$trans_id)); @@ -157,7 +157,7 @@ label_row(_("Sub-total"), $display_sub_tot, "colspan=6 align=right", "nowrap align=right width=15%"); label_row(_("Shipping"), $display_freight, "colspan=6 align=right", "nowrap align=right"); -$tax_items = get_customer_trans_tax_details(10, $trans_id); +$tax_items = get_trans_tax_details(10, $trans_id); display_customer_trans_tax_details($tax_items, 6); $display_total = price_format($myrow["ov_freight"]+$myrow["ov_gst"]+$myrow["ov_amount"]+$myrow["ov_freight_tax"]);