X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Freports_classes.inc;h=fdb8a17561e50956ca7e81c38f3cf5e773b0898b;hb=e6d9f3706a42003ac003820c0532db20d5d50ff8;hp=92e5a9eb70b34f7292689a5c56e939f4d737bf93;hpb=565a41e2d7fd4b4a32848e4829c11dbbcb5881d1;p=fa-stable.git diff --git a/reporting/includes/reports_classes.inc b/reporting/includes/reports_classes.inc index 92e5a9eb..fdb8a175 100644 --- a/reporting/includes/reports_classes.inc +++ b/reporting/includes/reports_classes.inc @@ -165,7 +165,7 @@ class BoxReports function get_ctrl($name, $type) { global $path_to_root, $use_date_picker, $pdf_debug, $print_invoice_no, - $def_print_destination, $type_shortcuts; + $def_print_destination, $def_print_orientation, $type_shortcuts; $st = ''; switch ($type) @@ -212,8 +212,12 @@ class BoxReports $date = $_POST[$name]; $st = ""; if ($use_date_picker) + { + $calc_image = (file_exists("$path_to_root/themes/".user_theme()."/images/cal.gif")) ? + "$path_to_root/themes/".user_theme()."/images/cal.gif" : "$path_to_root/themes/default/images/cal.gif"; $st .= "" - . " "._(\n"; + . " "._(\n"; + } return $st; break; @@ -230,6 +234,13 @@ class BoxReports $def = 1; return array_selector($name, $def, $sel); + case 'ORIENTATION': + $sel = array(_("Portrait"), _("Landscape")); + $def = 0; + if (isset($def_print_orientation) && $def_print_orientation == 1) + $def = 1; + return array_selector($name, $def, $sel); + case 'COMPARE': $sel = array(_("Accumulated"), _("Period Y-1"), _("Budget")); return array_selector($name, null, $sel); @@ -369,6 +380,9 @@ class BoxReports case 'ITEMS': return stock_manufactured_items_list($name); + case 'ITEMS_P': + return stock_purchasable_items_list($name, null, true); + case 'WORKORDER': $sql = "SELECT ".TB_PREF."workorders.id, concat(".TB_PREF."workorders.id, '-', ".TB_PREF."stock_master.description) as IName