X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDB%2FMetaSetup%2FOrder.pm;fp=SL%2FDB%2FMetaSetup%2FOrder.pm;h=5dda642548388011f5868aca6c0f45f18fb3c500;hb=b293ff8ad52fc76ba0c44783e3982418114d6b08;hp=6e707ae6589183fad308958902fddf0fb69daaa2;hpb=d4925a8b60f04674885e30d9316dc0263f8b9a84;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Order.pm b/SL/DB/MetaSetup/Order.pm index 6e707ae65..5dda64254 100644 --- a/SL/DB/MetaSetup/Order.pm +++ b/SL/DB/MetaSetup/Order.pm @@ -10,6 +10,7 @@ __PACKAGE__->meta->table('oe'); __PACKAGE__->meta->columns( amount => { type => 'numeric', precision => 15, scale => 5 }, + billing_address_id => { type => 'integer' }, closed => { type => 'boolean', default => 'false' }, cp_id => { type => 'integer' }, currency_id => { type => 'integer', not_null => 1 }, @@ -57,6 +58,11 @@ __PACKAGE__->meta->primary_key_columns([ 'id' ]); __PACKAGE__->meta->allow_inline_column_values(1); __PACKAGE__->meta->foreign_keys( + billing_address => { + class => 'SL::DB::AdditionalBillingAddress', + key_columns => { billing_address_id => 'id' }, + }, + contact => { class => 'SL::DB::Contact', key_columns => { cp_id => 'cp_id' },