From: Joe Hunt Date: Mon, 23 Apr 2007 23:21:45 +0000 (+0000) Subject: small change X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=68390038ee841d3bbb1a62d83821d92132706e2c;p=textcart.git small change --- diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 58027b2..dcd04c4 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -242,7 +242,7 @@ function date_cells($label, $name, $init=null, $inc_days=0, $inc_months=0, $inc_ { if (!$init) { - if ($inc_days == 1001) + if ($inc_years == 1001) $_POST[$name] = null; else $_POST[$name] = date(user_date_display(), Mktime(0,0,0,date("m") + $inc_months,date("d") + $inc_days,date("Y") + $inc_years)); diff --git a/sql/en_US-demo.sql b/sql/en_US-demo.sql index 278f6b6..527912b 100644 --- a/sql/en_US-demo.sql +++ b/sql/en_US-demo.sql @@ -197,6 +197,7 @@ INSERT INTO `0_cust_branch` VALUES (1, 1, 'Main', '', 1, 1, '', '', 'Lucky Luke INSERT INTO `0_cust_branch` VALUES (2, 1, 'Branch 2', '', 1, 1, '', '', '', '', 'DEF', 3, '3000', '3000', '1500', '3200', 1, 0, 'Another Road'); INSERT INTO `0_cust_branch` VALUES (3, 2, 'Main', '', 1, 1, '', '', 'Money Makers Ltd.', '', 'DEF', 3, '3000', '3000', '1500', '3200', 1, 0, ''); INSERT INTO `0_cust_branch` VALUES (4, 2, 'Main', '', 1, 1, '', '', 'Money Makers Ltd.', '', 'DEF', 3, '3000', '3000', '1500', '3200', 1, 0, 'UK,UK'); +INSERT INTO `0_cust_branch` VALUES (5, 3, 'Main', '', 1, 1, '', '', 'Junk Beer ApS', '', 'DEF', 3, '3000', '3000', '1500', '3200', 1, 0, ''); -- -- Data in table `debtor_trans`