X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FPurchaseInvoice.pm;h=b3cb0297061fe97cd943223724a2e8a7be924498;hb=223e6d0cf51b9847fd164b76c5a7fb77219f1855;hp=d2d60043e7e1697a78d0f9889bf3f4d6466f7088;hpb=fb03d191f53516cbf1022e755665556e7f1acb82;p=kivitendo-erp.git 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' },