X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/e42233910a57d39f3ccef150db1212f7ecb7fb30..ba802064109d19f3488e5555ec04491681e37b51:/SL/DB/MetaSetup/PurchaseInvoice.pm diff --git a/SL/DB/MetaSetup/PurchaseInvoice.pm b/SL/DB/MetaSetup/PurchaseInvoice.pm index d2d60043e..b3cb02970 100644 --- a/SL/DB/MetaSetup/PurchaseInvoice.pm +++ b/SL/DB/MetaSetup/PurchaseInvoice.pm @@ -40,7 +40,7 @@ __PACKAGE__->meta->columns( storno => { type => 'boolean', default => 'false' }, storno_id => { type => 'integer' }, taxincluded => { type => 'boolean', default => 'false' }, - taxzone_id => { type => 'integer' }, + taxzone_id => { type => 'integer', not_null => 1 }, transaction_description => { type => 'text' }, transdate => { type => 'date', default => 'now' }, type => { 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' },