X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sql%2Fen_US-new.sql;h=9d25c8b8d81f9d8d300842bc3f198741d5c9f16b;hb=0e9e4cf4f01431531dfed299bb501955bb0818ed;hp=9e22d3cc2579799fb7b41e0d5c3c47057c59232e;hpb=89e8ca2be9235215ac2e2bf5e58d7eedd2dda84d;p=fa-stable.git diff --git a/sql/en_US-new.sql b/sql/en_US-new.sql index 9e22d3cc..9d25c8b8 100644 --- a/sql/en_US-new.sql +++ b/sql/en_US-new.sql @@ -863,23 +863,25 @@ INSERT INTO `0_locations` VALUES DROP TABLE IF EXISTS `0_payment_terms`; CREATE TABLE `0_payment_terms` ( - `terms_indicator` int(11) NOT NULL AUTO_INCREMENT, + `id` int(11) NOT NULL AUTO_INCREMENT, `terms` char(80) NOT NULL DEFAULT '', - `days_before_due` smallint(6) NOT NULL DEFAULT '0', - `day_in_following_month` smallint(6) NOT NULL DEFAULT '0', + `type` tinyint(1) NOT NULL DEFAULT '1' + `days` int(11) NOT NULL DEFAULT '0' + `early_discount` double NOT NULL DEFAULT '0' + `early_days` double NOT NULL DEFAULT '0', `inactive` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`terms_indicator`), + PRIMARY KEY (`id`), UNIQUE KEY `terms` (`terms`) ) ENGINE=InnoDB AUTO_INCREMENT=6 ; -- Data of table `0_payment_terms` -- INSERT INTO `0_payment_terms` VALUES -('1', 'Due 15th Of the Following Month', '0', '17', '0'), -('2', 'Due By End Of The Following Month', '0', '30', '0'), -('3', 'Payment due within 10 days', '10', '0', '0'), -('4', 'Cash Only', '0', '0', '0'), -('5', 'Prepaid', '-1', '0', '0'); +('1', 'Due 15th Of the Following Month', '4', '17', '0', '0', '0'), +('2', 'Due By End Of The Following Month', '4', '30', '0', '0', '0'), +('3', 'Payment due within 10 days', '3', '10', '0', '0', '0'), +('4', 'Cash Only', '2', '0', '0', '0', '0'), +('5', 'Prepaid', '1', '0', '0', '0', '0'); -- Structure of table `0_prices` --