don't allow empty dates in payables
authorIvan Kohler <ivan@freeside.biz>
Tue, 10 Jun 2014 03:19:51 +0000 (20:19 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 10 Jun 2014 03:19:51 +0000 (20:19 -0700)
FS/FS/Schema.pm

index fb02e6b..c579c2b 100644 (file)
@@ -6455,7 +6455,8 @@ sub tables_hashref {
       'columns' => [
         'vendbillnum',    'serial',     '',      '', '', '', 
         'vendnum',           'int',     '',      '', '', '', 
-        '_date',        @date_type,                  '', '', 
+        #'_date',        @date_type,                  '', '', 
+        '_date',     'int', '', '',                   '', '', 
         'charged',     @money_type,                  '', '', 
       ],
       'primary_key'  => 'vendbillnum',
@@ -6472,7 +6473,8 @@ sub tables_hashref {
       'columns' => [
         'vendpaynum',   'serial',    '',       '', '', '',
         'vendnum',         'int',    '',       '', '', '', 
-        '_date',     @date_type,                   '', '', 
+        #'_date',     @date_type,                   '', '', 
+        '_date',     'int', '', '',                   '', '', 
         'paid',      @money_type,                  '', '', 
       ],
       'primary_key'  => 'vendpaynum',