]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/MetaSetup/PurchaseInvoice.pm
RB-Druckvorlagensatz: abweichende Lieferadresse für Kunden- Lieferantenauftrag
[mfinanz.git] / SL / DB / MetaSetup / PurchaseInvoice.pm
index 5aa2785668d2af22838ba1740e9e4e1905170971..6de5abd2a4021cb7ec329394c95b5de009a5ef06 100644 (file)
@@ -9,7 +9,7 @@ use base qw(SL::DB::Object);
 __PACKAGE__->meta->table('ap');
 
 __PACKAGE__->meta->columns(
-  amount                  => { type => 'numeric', precision => 5, scale => 15 },
+  amount                  => { type => 'numeric', precision => 15, scale => 5 },
   cp_id                   => { type => 'integer' },
   currency_id             => { type => 'integer', not_null => 1 },
   datepaid                => { type => 'date' },
@@ -28,11 +28,11 @@ __PACKAGE__->meta->columns(
   itime                   => { type => 'timestamp', default => 'now()' },
   language_id             => { type => 'integer' },
   mtime                   => { type => 'timestamp' },
-  netamount               => { type => 'numeric', precision => 5, scale => 15 },
+  netamount               => { type => 'numeric', precision => 15, scale => 5 },
   notes                   => { type => 'text' },
   orddate                 => { type => 'date' },
   ordnumber               => { type => 'text' },
-  paid                    => { type => 'numeric', precision => 5, scale => 15 },
+  paid                    => { type => 'numeric', precision => 15, scale => 5 },
   payment_id              => { type => 'integer' },
   quodate                 => { type => 'date' },
   quonumber               => { type => 'text' },
@@ -97,6 +97,11 @@ __PACKAGE__->meta->foreign_keys(
     key_columns => { storno_id => 'id' },
   },
 
+  taxzone => {
+    class       => 'SL::DB::TaxZone',
+    key_columns => { taxzone_id => 'id' },
+  },
+
   vendor => {
     class       => 'SL::DB::Vendor',
     key_columns => { vendor_id => 'id' },