Merge branch 'master' into rb-wiederkehrende-rechnungen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 13 Jan 2011 10:37:58 +0000 (11:37 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 13 Jan 2011 10:37:58 +0000 (11:37 +0100)
SL/DB/MetaSetup/Customer.pm
SL/DB/MetaSetup/Default.pm
SL/DB/MetaSetup/DeliveryOrder.pm
SL/DB/MetaSetup/Invoice.pm
SL/DB/MetaSetup/MakeModel.pm
SL/DB/MetaSetup/Order.pm
SL/DB/MetaSetup/PurchaseInvoice.pm
SL/DB/MetaSetup/SepaExport.pm
SL/DB/MetaSetup/SepaExportItem.pm
SL/DB/MetaSetup/Shipto.pm
SL/Form.pm

index 93f63b7..00bdb25 100644 (file)
@@ -11,14 +11,14 @@ __PACKAGE__->meta->setup(
 
   columns => [
     id             => { type => 'integer', not_null => 1, sequence => 'id' },
-    name           => { type => 'varchar', length => 75, not_null => 1 },
+    name           => { type => 'text', not_null => 1 },
     department_1   => { type => 'varchar', length => 75 },
     department_2   => { type => 'varchar', length => 75 },
     street         => { type => 'varchar', length => 75 },
     zipcode        => { type => 'varchar', length => 10 },
     city           => { type => 'varchar', length => 75 },
     country        => { type => 'varchar', length => 75 },
-    contact        => { type => 'varchar', length => 75 },
+    contact        => { type => 'text' },
     phone          => { type => 'varchar', length => 30 },
     fax            => { type => 'varchar', length => 30 },
     homepage       => { type => 'text' },
@@ -33,8 +33,8 @@ __PACKAGE__->meta->setup(
     bcc            => { type => 'text' },
     business_id    => { type => 'integer' },
     taxnumber      => { type => 'text' },
-    account_number => { type => 'varchar', length => 15 },
-    bank_code      => { type => 'varchar', length => 10 },
+    account_number => { type => 'text' },
+    bank_code      => { type => 'text' },
     bank           => { type => 'text' },
     language       => { type => 'varchar', length => 5 },
     datevexport    => { type => 'integer' },
@@ -50,10 +50,10 @@ __PACKAGE__->meta->setup(
     payment_id     => { type => 'integer' },
     taxzone_id     => { type => 'integer', default => '0', not_null => 1 },
     greeting       => { type => 'text' },
-    ustid          => { type => 'varchar', length => 14 },
-    direct_debit   => { type => 'boolean', default => 'false' },
+    ustid          => { type => 'text' },
     iban           => { type => 'varchar', length => 100 },
     bic            => { type => 'varchar', length => 100 },
+    direct_debit   => { type => 'boolean', default => 'false' },
   ],
 
   primary_key_columns => [ 'id' ],
index 4eb5e66..f213eda 100644 (file)
@@ -17,7 +17,6 @@ __PACKAGE__->meta->setup(
     fxloss_accno_id            => { type => 'integer' },
     invnumber                  => { type => 'text' },
     sonumber                   => { type => 'text' },
-    yearend                    => { type => 'varchar', length => 5 },
     weightunit                 => { type => 'varchar', length => 5 },
     businessnumber             => { type => 'text' },
     version                    => { type => 'varchar', length => 8 },
@@ -42,6 +41,7 @@ __PACKAGE__->meta->setup(
     dunning_ar                 => { type => 'integer' },
     pdonumber                  => { type => 'text' },
     sdonumber                  => { type => 'text' },
+    ar_paid_accno_id           => { type => 'integer' },
     id                         => { type => 'serial', not_null => 1 },
   ],
 
index 806c963..6659654 100644 (file)
@@ -36,7 +36,6 @@ __PACKAGE__->meta->setup(
     is_sales                => { type => 'boolean' },
     itime                   => { type => 'timestamp', default => 'now()' },
     mtime                   => { type => 'timestamp' },
-    notes_bottom            => { type => 'text' },
     taxzone_id              => { type => 'integer' },
     taxincluded             => { type => 'boolean' },
     terms                   => { type => 'integer' },
index 6269da9..be3466d 100644 (file)
@@ -54,7 +54,6 @@ __PACKAGE__->meta->setup(
     storno_id               => { type => 'integer' },
     marge_total             => { type => 'numeric', precision => 5, scale => 15 },
     marge_percent           => { type => 'numeric', precision => 5, scale => 15 },
-    notes_bottom            => { type => 'text' },
     donumber                => { type => 'text' },
   ],
 
index cc0ae7f..c6499a5 100644 (file)
@@ -10,12 +10,15 @@ __PACKAGE__->meta->setup(
   table   => 'makemodel',
 
   columns => [
-    parts_id => { type => 'integer' },
-    model    => { type => 'text' },
-    itime    => { type => 'timestamp', default => 'now()' },
-    mtime    => { type => 'timestamp' },
-    make     => { type => 'integer' },
-    id       => { type => 'serial', not_null => 1 },
+    parts_id   => { type => 'integer' },
+    model      => { type => 'text' },
+    itime      => { type => 'timestamp', default => 'now()' },
+    mtime      => { type => 'timestamp' },
+    lastcost   => { type => 'numeric', precision => 5, scale => 15 },
+    lastupdate => { type => 'date' },
+    sortorder  => { type => 'integer' },
+    make       => { type => 'integer' },
+    id         => { type => 'serial', not_null => 1 },
   ],
 
   primary_key_columns => [ 'id' ],
index 914918d..e616aa3 100644 (file)
@@ -46,8 +46,6 @@ __PACKAGE__->meta->setup(
     transaction_description => { type => 'text' },
     marge_total             => { type => 'numeric', precision => 5, scale => 15 },
     marge_percent           => { type => 'numeric', precision => 5, scale => 15 },
-    notes_bottom            => { type => 'text' },
-    project_manager_id      => { type => 'integer' },
   ],
 
   primary_key_columns => [ 'id' ],
@@ -65,11 +63,6 @@ __PACKAGE__->meta->setup(
       key_columns => { globalproject_id => 'id' },
     },
 
-    project_manager => {
-      class       => 'SL::DB::Employee',
-      key_columns => { project_manager_id => 'id' },
-    },
-
     salesman => {
       class       => 'SL::DB::Employee',
       key_columns => { salesman_id => 'id' },
index 0ea9d10..448b2a6 100644 (file)
@@ -43,7 +43,6 @@ __PACKAGE__->meta->setup(
     globalproject_id        => { type => 'integer' },
     transaction_description => { type => 'text' },
     storno_id               => { type => 'integer' },
-    notes_bottom            => { type => 'text' },
   ],
 
   primary_key_columns => [ 'id' ],
index 943121a..da09817 100644 (file)
@@ -15,6 +15,7 @@ __PACKAGE__->meta->setup(
     executed    => { type => 'boolean', default => 'false' },
     closed      => { type => 'boolean', default => 'false' },
     itime       => { type => 'timestamp', default => 'now()' },
+    vc          => { type => 'varchar', length => 10 },
   ],
 
   primary_key_columns => [ 'id' ],
index b9899c2..cd2152b 100644 (file)
@@ -12,7 +12,7 @@ __PACKAGE__->meta->setup(
   columns => [
     id                       => { type => 'integer', not_null => 1, sequence => 'id' },
     sepa_export_id           => { type => 'integer', not_null => 1 },
-    ap_id                    => { type => 'integer', not_null => 1 },
+    ap_id                    => { type => 'integer' },
     chart_id                 => { type => 'integer', not_null => 1 },
     amount                   => { type => 'numeric', precision => 5, scale => 25 },
     reference                => { type => 'varchar', length => 35 },
@@ -21,9 +21,10 @@ __PACKAGE__->meta->setup(
     execution_date           => { type => 'date' },
     our_iban                 => { type => 'varchar', length => 100 },
     our_bic                  => { type => 'varchar', length => 100 },
-    vendor_iban              => { type => 'varchar', length => 100 },
-    vendor_bic               => { type => 'varchar', length => 100 },
+    vc_iban                  => { type => 'varchar', length => 100 },
+    vc_bic                   => { type => 'varchar', length => 100 },
     end_to_end_id            => { type => 'varchar', length => 35 },
+    ar_id                    => { type => 'integer' },
   ],
 
   primary_key_columns => [ 'id' ],
@@ -34,6 +35,11 @@ __PACKAGE__->meta->setup(
       key_columns => { ap_id => 'id' },
     },
 
+    ar => {
+      class       => 'SL::DB::Invoice',
+      key_columns => { ar_id => 'id' },
+    },
+
     chart => {
       class       => 'SL::DB::Chart',
       key_columns => { chart_id => 'id' },
index 0943c04..cde5a32 100644 (file)
@@ -26,6 +26,7 @@ __PACKAGE__->meta->setup(
     mtime              => { type => 'timestamp' },
     module             => { type => 'text' },
     shipto_id          => { type => 'integer', not_null => 1, sequence => 'id' },
+    shiptocp_gender    => { type => 'text' },
   ],
 
   primary_key_columns => [ 'shipto_id' ],
index 2dcd31f..e1646e6 100644 (file)
@@ -680,7 +680,6 @@ EOT
   print <<EOT;
   <link rel="stylesheet" href="css/jquery.autocomplete.css" type="text/css" />
   <meta name="robots" content="noindex,nofollow" />
-  <script type="text/javascript" src="js/highlight_input.js"></script>
   <link rel="stylesheet" type="text/css" href="css/tabcontent.css" />
   <script type="text/javascript" src="js/tabcontent.js">