Updated alter2.4.php for 'Auto Increase of Document References'.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 16 Apr 2018 13:32:38 +0000 (15:32 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 16 Apr 2018 13:32:38 +0000 (15:32 +0200)
sql/alter2.4.php

index 32e1eb372a93f60969b8c550404431bc4f6c3935..e6e8b619d8024b8c26b8949d356d149d5abbfdd8 100644 (file)
@@ -77,6 +77,9 @@ class fa2_4 extends fa_patch {
                if (get_company_pref('barcodes_on_stock') === null) { // available from 2.4.3, during updates
                        set_company_pref('barcodes_on_stock', 'setup.company', 'tinyint', 1, '0');
                }
+               if (get_company_pref('ref_no_auto_increase') === null) { // available from 2.4.4, during updates
+                       set_company_pref('ref_no_auto_increase', 'setup.company', 'tinyint', 1, '0');
+               }
                if (get_company_pref('shortname_name_in_list') === null) { // available from 2.4.2, during updates
                        set_company_pref('shortname_name_in_list', 'setup.company', 'tinyint', 1, '0');
                }
@@ -118,7 +121,7 @@ class fa2_4 extends fa_patch {
                                'default_quote_valid_days',     'no_zero_lines_amount', 'show_po_item_codes', 'accounts_alpha',
                                'loc_notification', 'print_invoice_no', 'allow_negative_prices', 'print_item_images_on_quote',
                                'bcc_email', 'alternative_tax_include_on_docs', 'suppress_tax_rates', 'company_logo_report',
-                               'barcodes_on_stock')");
+                               'barcodes_on_stock', 'ref_no_auto_increase')");
        }
 
        function update_workorders()