X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Freports_classes.inc;h=56148d70e8607a537daa3ca1a3f4285ad9d4f0fd;hb=5a3cbfe6d2df1c8c32edcab8bf93e8a8432a15fc;hp=b7cccecc4590417a48ef8029972d3078187825c1;hpb=772bf0b1831da4239fd643c3608a57f9e59d345c;p=fa-stable.git diff --git a/reporting/includes/reports_classes.inc b/reporting/includes/reports_classes.inc index b7cccecc..56148d70 100644 --- a/reporting/includes/reports_classes.inc +++ b/reporting/includes/reports_classes.inc @@ -18,6 +18,7 @@ define('RC_MANUFACTURE', 3); define('RC_DIMENSIONS', 4); define('RC_BANKING', 5); define('RC_GL', 6); +define('RC_FIXEDASSETS', 7); class BoxReports { @@ -25,7 +26,7 @@ class BoxReports var $ar_reports; var $ctrl_handlers = array(); - function ReportClasses() + function __construct() { $this->ar_classes = array(); } @@ -219,7 +220,7 @@ class BoxReports $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; @@ -264,7 +265,7 @@ class BoxReports case 'TEXTBOX': $value = (isset($_POST[$name]) ? $_POST[$name] : ""); - return ""; + return ""; case 'ACCOUNTS': // not used return gl_account_types_list($name, null, _("No Account Group Filter"), true); @@ -298,7 +299,6 @@ class BoxReports case 'CUSTOMERS_NO_FILTER': case 'CUSTOMERS': - $sql = "SELECT debtor_no, name FROM ".TB_PREF."debtors_master"; if ($type == 'CUSTOMERS_NO_FILTER') return customer_list($name, null, _("No Customer Filter")); else @@ -306,7 +306,6 @@ class BoxReports case 'SUPPLIERS_NO_FILTER': case 'SUPPLIERS': - $sql = "SELECT supplier_id, supp_name FROM ".TB_PREF."suppliers"; if ($type == 'SUPPLIERS_NO_FILTER') return supplier_list($name, null, _("No Supplier Filter")); else @@ -409,22 +408,28 @@ class BoxReports case 'WORKORDER': $sql = "SELECT wo.id, concat(wo.id, '-', item.description) as IName FROM ".TB_PREF."stock_master item," - .TB_PREF."workorders wo + .TB_PREF."workorders wo + LEFT JOIN ".TB_PREF."voided v ON wo.id=v.id and v.type=".ST_WORKORDER." WHERE item.stock_id=wo.stock_id ORDER BY wo.id DESC"; return combo_input($name, '', $sql, 'id', 'IName',array('order'=>false)); case 'LOCATIONS': return locations_list($name, null, _("No Location Filter")); + case 'FLOCATIONS': + return locations_list($name, null, _("No Location Filter"), false, true); case 'CATEGORIES': return stock_categories_list($name, null, _("No Category Filter")); - + case 'FCATEGORIES': + return stock_categories_list($name, null, _("No Category Filter"), false, true); + case 'FCLASS': + return fixed_asset_classes_list($name, null, _("No Class Filter"), false); case 'SALESTYPES': return sales_types_list($name); case 'AREAS': - return sales_areas_list($name); + return sales_areas_list($name, null, _("No Areas Filter")); case 'SALESMEN': return sales_persons_list($name, null, _("No Sales Folk Filter")); @@ -456,7 +461,7 @@ class Report var $ar_params; var $controls; - function Report($id, $name, $ar_params = null) + function __construct($id, $name, $ar_params = null) { $this->id = $id; $this->name = $name;