X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/91bd08d8315e733c3390088f3187b4c5b1fb9a52..7635f647ec7dcdef51684b21601ee0930ea2bc5b:/SL/DB/MetaSetup/PurchaseInvoice.pm diff --git a/SL/DB/MetaSetup/PurchaseInvoice.pm b/SL/DB/MetaSetup/PurchaseInvoice.pm index 636a5d823..e484fb933 100644 --- a/SL/DB/MetaSetup/PurchaseInvoice.pm +++ b/SL/DB/MetaSetup/PurchaseInvoice.pm @@ -23,7 +23,6 @@ __PACKAGE__->meta->setup( duedate => { type => 'date' }, invoice => { type => 'boolean', default => 'false' }, ordnumber => { type => 'text' }, - curr => { type => 'text' }, notes => { type => 'text' }, employee_id => { type => 'integer' }, quonumber => { type => 'text' }, @@ -43,6 +42,9 @@ __PACKAGE__->meta->setup( globalproject_id => { type => 'integer' }, transaction_description => { type => 'text' }, storno_id => { type => 'integer' }, + direct_debit => { type => 'boolean', default => 'false' }, + deliverydate => { type => 'date' }, + currency_id => { type => 'integer', not_null => 1 }, ], primary_key_columns => [ 'id' ], @@ -55,6 +57,11 @@ __PACKAGE__->meta->setup( key_columns => { cp_id => 'cp_id' }, }, + currency => { + class => 'SL::DB::Currency', + key_columns => { currency_id => 'id' }, + }, + department => { class => 'SL::DB::Department', key_columns => { department_id => 'id' }, @@ -75,7 +82,7 @@ __PACKAGE__->meta->setup( key_columns => { language_id => 'id' }, }, - payment => { + payment_terms => { class => 'SL::DB::PaymentTerm', key_columns => { payment_id => 'id' }, },