[0004212] Work Order Entry: fixed error when voided WO refence is reused.
[fa-stable.git] / applications / customers.php
index eab888c05127d202064fba4f5df50c2b7ae3f472..e7453d86bc0418d49f46d40210c56502fbc63814 100644 (file)
@@ -11,9 +11,9 @@
 ***********************************************************************/
 class customers_app extends application 
 {
-       function customers_app() 
+       function __construct() 
        {
-               $this->application("orders", _($this->help_context = "&Sales"));
+               parent::__construct("orders", _($this->help_context = "&Sales"));
        
                $this->add_module(_("Transactions"));
                $this->add_lapp_function(0, _("Sales &Quotation Entry"),
@@ -39,6 +39,8 @@ class customers_app extends application
                $this->add_rapp_function(0, "","");
                $this->add_rapp_function(0, _("Customer &Payments"),
                        "sales/customer_payments.php?", 'SA_SALESPAYMNT', MENU_TRANSACTION);
+               $this->add_lapp_function(0, _("Invoice &Prepaid Orders"),
+                       "sales/inquiry/sales_orders_view.php?PrepaidOrders=Yes", 'SA_SALESINVOICE', MENU_TRANSACTION);
                $this->add_rapp_function(0, _("Customer &Credit Notes"),
                        "sales/credit_note_entry.php?NewCredit=Yes", 'SA_SALESCREDIT', MENU_TRANSACTION);
                $this->add_rapp_function(0, _("&Allocate Customer Payments or Credit Notes"),
@@ -51,7 +53,6 @@ class customers_app extends application
                        "sales/inquiry/sales_orders_view.php?type=30", 'SA_SALESTRANSVIEW', MENU_INQUIRY);
                $this->add_lapp_function(1, _("Customer Transaction &Inquiry"),
                        "sales/inquiry/customer_inquiry.php?", 'SA_SALESTRANSVIEW', MENU_INQUIRY);
-               $this->add_lapp_function(1, "","");
                $this->add_lapp_function(1, _("Customer Allocation &Inquiry"),
                        "sales/inquiry/customer_allocation_inquiry.php?", 'SA_SALESALLOC', MENU_INQUIRY);
 
@@ -81,4 +82,3 @@ class customers_app extends application
 }
 
 
-?>
\ No newline at end of file