X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep104.php;h=280f447a74cd39363df0faafb3aac089347d2b9f;hb=499e0e615d1a845c6c519754b3a213fdda0513ba;hp=e127c45996d7ad677c3bd7b0a1e753ddf97d0e37;hpb=abd2759fcc8de3cd492933e4a253808956bc52f9;p=fa-stable.git diff --git a/reporting/rep104.php b/reporting/rep104.php index e127c459..280f447a 100644 --- a/reporting/rep104.php +++ b/reporting/rep104.php @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- @@ -28,7 +28,6 @@ include_once($path_to_root . "/inventory/includes/db/items_category_db.inc"); //---------------------------------------------------------------------------------------------------- -// trial_inquiry_controls(); print_price_listing(); function fetch_items($category=0) @@ -69,14 +68,17 @@ function print_price_listing() { global $comp_path, $path_to_root, $pic_height, $pic_width; - include_once($path_to_root . "/reporting/includes/pdf_report.inc"); - $currency = $_POST['PARAM_0']; $category = $_POST['PARAM_1']; $salestype = $_POST['PARAM_2']; $pictures = $_POST['PARAM_3']; $showGP = $_POST['PARAM_4']; $comments = $_POST['PARAM_5']; + $destination = $_POST['PARAM_6']; + if ($destination) + include_once($path_to_root . "/reporting/includes/excel_report.inc"); + else + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $dec = user_price_dec(); @@ -119,7 +121,7 @@ function print_price_listing() else $user_comp = ""; - $rep = new FrontReport(_('Price Listing'), "PriceListing.pdf", user_pagesize()); + $rep = new FrontReport(_('Price Listing'), "PriceListing", user_pagesize()); $rep->Font(); $rep->Info($params, $cols, $headers, $aligns); @@ -145,7 +147,7 @@ function print_price_listing() $rep->TextCol(0, 1, $myrow['stock_id']); $rep->TextCol(1, 2, $myrow['name']); $price = get_price($myrow['stock_id'], $currency, $salestype); - $rep->TextCol(2, 3, number_format2($price, $dec)); + $rep->AmountCol(2, 3, $price, $dec); if ($showGP) { $price2 = get_price($myrow['stock_id'], $home_curr, $salestype); @@ -199,11 +201,11 @@ function print_price_listing() $rep->TextCol(0, 1, $myrow['kit_code']); $rep->TextCol(1, 2, $myrow['kit_name']); $price = get_kit_price($myrow['kit_code'], $currency, $salestype); - $rep->TextCol(2, 3, number_format2($price, $dec)); + $rep->AmountCol(2, 3, $price, $dec); $rep->NewLine(0, 1); } $rep->Line($rep->row - 4); - + $rep->NewLine(); $rep->End(); }