Recurrent Invoices: fixed buggy call to non existing function and payment terms type... unstable github/unstable
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 22 Aug 2019 21:52:32 +0000 (23:52 +0200)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 22 Aug 2019 21:58:30 +0000 (23:58 +0200)
sales/includes/sales_db.inc
sql/en_US-demo.sql

index dc3b9bf473a181fca5dc28e996ea011350eb6def..3fda4392dad06e416709f490b3dd8a8a3f64b697 100644 (file)
@@ -421,7 +421,6 @@ function create_recurrent_invoices($id, $from, $to, $date, $memo)
                1.3-31.3 -  1.4
                In example above, when end is set to 1.4 will generate additional invoice on 1.5 !
        */
-       log_user();
 
        $myrow = get_recurrent_invoice($id);
 
index f9932181276f87f346ab6b670fa5a90891dfdfc9..03aff5703f9597b9abd443853fe18a1c652e8114 100644 (file)
@@ -1476,7 +1476,7 @@ INSERT INTO `0_sales_orders` VALUES
 ('3', '30', '0', '0', '1', '1', '001/2018', '', NULL, '2018-05-07', '1', 'post-std', 'N/A', NULL, NULL, 'Donald Easter LLC', '0', 'DEF', '2018-05-08', '4', '300', '0', '0'),
 ('4', '30', '0', '0', '2', '2', '002/2018', '', NULL, '2018-05-07', '1', 'post-std', 'N/A', NULL, NULL, 'MoneyMaker Ltd.', '0', 'DEF', '2018-05-08', '1', '267.14', '0', '0'),
 ('5', '30', '1', '0', '2', '2', 'auto', '', NULL, '2018-05-07', '1', 'post-std', 'N/A', NULL, NULL, 'MoneyMaker Ltd.', '0', 'DEF', '2018-06-17', '1', '267.14', '0', '0'),
-('6', '30', '0', '1', '1', '1', '003/2018', '', NULL, '2018-05-07', '1', 'post-std', 'N/A', NULL, NULL, 'Donald Easter LLC', '0', 'DEF', '2018-05-08', '4', '450', '0', '0'),
+('6', '30', '0', '1', '1', '1', '003/2018', '', NULL, '2018-05-07', '1', 'post-std', 'N/A', NULL, NULL, 'Donald Easter LLC', '0', 'DEF', '2018-05-08', '3', '450', '0', '0'),
 ('7', '30', '1', '0', '1', '1', 'auto', '', 'Recurrent Invoice covers period 04/01/2018 - 04/07/2018.', '2018-05-07', '1', 'post-std', 'N/A', NULL, NULL, 'Donald Easter LLC', '0', 'DEF', '2018-05-07', '4', '0', '0', '0'),
 ('8', '30', '1', '0', '1', '1', 'auto', '', NULL, '2019-01-21', '1', 'post-std', 'N/A', NULL, NULL, 'Donald Easter LLC', '0', 'DEF', '2019-01-21', '4', '1250', '0', '0');