__PACKAGE__->meta->unique_keys([ 'name' ]);
-__PACKAGE__->meta->relationships(
- ap => {
- class => 'SL::DB::PurchaseInvoice',
- column_map => { id => 'currency_id' },
- type => 'one to many',
- },
-
- ar => {
- class => 'SL::DB::Invoice',
- column_map => { id => 'currency_id' },
- type => 'one to many',
- },
-);
-
# __PACKAGE__->meta->initialize;
1;
class => 'SL::DB::Currency',
key_columns => { currency_id => 'id' },
},
+
+ language_obj => {
+ class => 'SL::DB::Language',
+ key_columns => { language_id => 'id' },
+ },
+
+ payment => {
+ class => 'SL::DB::PaymentTerm',
+ key_columns => { payment_id => 'id' },
+ },
);
# __PACKAGE__->meta->initialize;
key_columns => { customer_id => 'id' },
},
+ department => {
+ class => 'SL::DB::Department',
+ key_columns => { department_id => 'id' },
+ },
+
+ employee => {
+ class => 'SL::DB::Employee',
+ key_columns => { employee_id => 'id' },
+ },
+
globalproject => {
class => 'SL::DB::Project',
key_columns => { globalproject_id => 'id' },
},
+ language => {
+ class => 'SL::DB::Language',
+ key_columns => { language_id => 'id' },
+ },
+
+ salesman => {
+ class => 'SL::DB::Employee',
+ key_columns => { salesman_id => 'id' },
+ },
+
+ shipto => {
+ class => 'SL::DB::Shipto',
+ key_columns => { shipto_id => 'shipto_id' },
+ },
+
vendor => {
class => 'SL::DB::Vendor',
key_columns => { vendor_id => 'id' },
key_columns => { delivery_order_id => 'id' },
},
- parts => {
+ part => {
class => 'SL::DB::Part',
key_columns => { parts_id => 'id' },
},
+ price_factor_obj => {
+ class => 'SL::DB::PriceFactor',
+ key_columns => { price_factor_id => 'id' },
+ },
+
+ pricegroup => {
+ class => 'SL::DB::Pricegroup',
+ key_columns => { pricegroup_id => 'id' },
+ },
+
project => {
class => 'SL::DB::Project',
key_columns => { project_id => 'id' },
__PACKAGE__->meta->allow_inline_column_values(1);
-__PACKAGE__->meta->relationships(
- ap => {
- class => 'SL::DB::PurchaseInvoice',
- column_map => { id => 'department_id' },
- type => 'one to many',
- },
-
- ar => {
- class => 'SL::DB::Invoice',
- column_map => { id => 'department_id' },
- type => 'one to many',
- },
-);
-
# __PACKAGE__->meta->initialize;
1;
__PACKAGE__->meta->allow_inline_column_values(1);
+__PACKAGE__->meta->foreign_keys(
+ employee => {
+ class => 'SL::DB::Employee',
+ key_columns => { employee_id => 'id' },
+ },
+);
+
# __PACKAGE__->meta->initialize;
1;
__PACKAGE__->meta->allow_inline_column_values(1);
__PACKAGE__->meta->foreign_keys(
+ dunning_config => {
+ class => 'SL::DB::DunningConfig',
+ key_columns => { dunning_config_id => 'id' },
+ },
+
fee_interest_ar => {
class => 'SL::DB::Invoice',
key_columns => { fee_interest_ar_id => 'id' },
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
-__PACKAGE__->meta->relationships(
- ar => {
- class => 'SL::DB::Invoice',
- column_map => { id => 'dunning_config_id' },
- type => 'one to many',
- },
-
- dunning => {
- class => 'SL::DB::Dunning',
- column_map => { id => 'dunning_config_id' },
- type => 'one to many',
- },
-);
-
# __PACKAGE__->meta->initialize;
1;
__PACKAGE__->meta->allow_inline_column_values(1);
-__PACKAGE__->meta->relationships(
- ap => {
- class => 'SL::DB::PurchaseInvoice',
- column_map => { id => 'employee_id' },
- type => 'one to many',
- },
-
- ar => {
- class => 'SL::DB::Invoice',
- column_map => { id => 'employee_id' },
- type => 'one to many',
- },
-
- ar_objs => {
- class => 'SL::DB::Invoice',
- column_map => { id => 'salesman_id' },
- type => 'one to many',
- },
-
- drafts => {
- class => 'SL::DB::Draft',
- column_map => { id => 'employee_id' },
- type => 'one to many',
- },
-);
-
# __PACKAGE__->meta->initialize;
1;
class => 'SL::DB::Employee',
key_columns => { created_by => 'id' },
},
-);
-__PACKAGE__->meta->relationships(
- follow_up_links => {
- class => 'SL::DB::FollowUpLink',
- column_map => { id => 'follow_up_id' },
- type => 'one to many',
+ note => {
+ class => 'SL::DB::Note',
+ key_columns => { note_id => 'id' },
},
);
__PACKAGE__->meta->allow_inline_column_values(1);
+__PACKAGE__->meta->foreign_keys(
+ follow_up => {
+ class => 'SL::DB::FollowUp',
+ key_columns => { follow_up_id => 'id' },
+ },
+);
+
# __PACKAGE__->meta->initialize;
1;
},
);
-__PACKAGE__->meta->relationships(
- gl => {
- class => 'SL::DB::GLTransaction',
- column_map => { id => 'storno_id' },
- type => 'one to many',
- },
-);
-
# __PACKAGE__->meta->initialize;
1;
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
+__PACKAGE__->meta->foreign_keys(
+ language => {
+ class => 'SL::DB::Language',
+ key_columns => { language_id => 'id' },
+ },
+);
+
# __PACKAGE__->meta->initialize;
1;
key_columns => { cp_id => 'cp_id' },
},
+ currency => {
+ class => 'SL::DB::Currency',
+ key_columns => { currency_id => 'id' },
+ },
+
customer => {
class => 'SL::DB::Customer',
key_columns => { customer_id => 'id' },
},
+ department => {
+ class => 'SL::DB::Department',
+ key_columns => { department_id => 'id' },
+ },
+
+ dunning_config => {
+ class => 'SL::DB::DunningConfig',
+ key_columns => { dunning_config_id => 'id' },
+ },
+
+ employee => {
+ class => 'SL::DB::Employee',
+ key_columns => { employee_id => 'id' },
+ },
+
globalproject => {
class => 'SL::DB::Project',
key_columns => { globalproject_id => 'id' },
},
+ language => {
+ class => 'SL::DB::Language',
+ key_columns => { language_id => 'id' },
+ },
+
+ payment_terms => {
+ class => 'SL::DB::PaymentTerm',
+ key_columns => { payment_id => 'id' },
+ },
+
+ salesman => {
+ class => 'SL::DB::Employee',
+ key_columns => { salesman_id => 'id' },
+ },
+
+ shipto => {
+ class => 'SL::DB::Shipto',
+ key_columns => { shipto_id => 'shipto_id' },
+ },
+
storno_obj => {
class => 'SL::DB::Invoice',
key_columns => { storno_id => 'id' },
__PACKAGE__->meta->allow_inline_column_values(1);
__PACKAGE__->meta->foreign_keys(
- parts => {
+ part => {
class => 'SL::DB::Part',
key_columns => { parts_id => 'id' },
},
+ price_factor_obj => {
+ class => 'SL::DB::PriceFactor',
+ key_columns => { price_factor_id => 'id' },
+ },
+
+ pricegroup => {
+ class => 'SL::DB::Pricegroup',
+ key_columns => { pricegroup_id => 'id' },
+ },
+
project => {
class => 'SL::DB::Project',
key_columns => { project_id => 'id' },
__PACKAGE__->meta->allow_inline_column_values(1);
-__PACKAGE__->meta->relationships(
- ap => {
- class => 'SL::DB::PurchaseInvoice',
- column_map => { id => 'language_id' },
- type => 'one to many',
- },
-
- ar => {
- class => 'SL::DB::Invoice',
- column_map => { id => 'language_id' },
- type => 'one to many',
- },
-
- customer => {
- class => 'SL::DB::Customer',
- column_map => { id => 'language_id' },
- type => 'one to many',
- },
-
- generic_translations => {
- class => 'SL::DB::GenericTranslation',
- column_map => { id => 'language_id' },
- type => 'one to many',
- },
-);
-
# __PACKAGE__->meta->initialize;
1;
},
);
-__PACKAGE__->meta->relationships(
- follow_ups => {
- class => 'SL::DB::FollowUp',
- column_map => { id => 'note_id' },
- type => 'one to many',
- },
-);
-
# __PACKAGE__->meta->initialize;
1;
key_columns => { language_id => 'id' },
},
+ payment => {
+ class => 'SL::DB::PaymentTerm',
+ key_columns => { payment_id => 'id' },
+ },
+
salesman => {
class => 'SL::DB::Employee',
key_columns => { salesman_id => 'id' },
},
+ shipto => {
+ class => 'SL::DB::Shipto',
+ key_columns => { shipto_id => 'shipto_id' },
+ },
+
vendor => {
class => 'SL::DB::Vendor',
key_columns => { vendor_id => 'id' },
__PACKAGE__->meta->allow_inline_column_values(1);
__PACKAGE__->meta->foreign_keys(
- part => {
+ parts => {
class => 'SL::DB::Part',
key_columns => { parts_id => 'id' },
},
key_columns => { project_id => 'id' },
},
- order => {
+ trans => {
class => 'SL::DB::Order',
key_columns => { trans_id => 'id' },
},
key_columns => { buchungsgruppen_id => 'id' },
},
+ partsgroup => {
+ class => 'SL::DB::PartsGroup',
+ key_columns => { partsgroup_id => 'id' },
+ },
+
+ payment => {
+ class => 'SL::DB::PaymentTerm',
+ key_columns => { payment_id => 'id' },
+ },
+
+ price_factor => {
+ class => 'SL::DB::PriceFactor',
+ key_columns => { price_factor_id => 'id' },
+ },
+
unit_obj => {
class => 'SL::DB::Unit',
key_columns => { unit => 'name' },
__PACKAGE__->meta->allow_inline_column_values(1);
-__PACKAGE__->meta->relationships(
- parts => {
- class => 'SL::DB::Part',
- column_map => { id => 'partsgroup_id' },
- type => 'one to many',
- },
-);
-
# __PACKAGE__->meta->initialize;
1;
__PACKAGE__->meta->allow_inline_column_values(1);
-__PACKAGE__->meta->relationships(
- ap => {
- class => 'SL::DB::PurchaseInvoice',
- column_map => { id => 'payment_id' },
- type => 'one to many',
- },
-
- ar => {
- class => 'SL::DB::Invoice',
- column_map => { id => 'payment_id' },
- type => 'one to many',
- },
-
- customer => {
- class => 'SL::DB::Customer',
- column_map => { id => 'payment_id' },
- type => 'one to many',
- },
-
- oe => {
- class => 'SL::DB::Order',
- column_map => { id => 'payment_id' },
- type => 'one to many',
- },
-
- parts => {
- class => 'SL::DB::Part',
- column_map => { id => 'payment_id' },
- type => 'one to many',
- },
-);
-
# __PACKAGE__->meta->initialize;
1;
class => 'SL::DB::Invoice',
key_columns => { ar_id => 'id' },
},
+
+ config => {
+ class => 'SL::DB::PeriodicInvoicesConfig',
+ key_columns => { config_id => 'id' },
+ },
);
# __PACKAGE__->meta->initialize;
class => 'SL::DB::Order',
key_columns => { oe_id => 'id' },
},
-);
-__PACKAGE__->meta->relationships(
- ars => {
- map_class => 'SL::DB::PeriodicInvoice',
- map_from => 'config',
- map_to => 'ar',
- type => 'many to many',
+ printer => {
+ class => 'SL::DB::Printer',
+ key_columns => { printer_id => 'id' },
},
);
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
-__PACKAGE__->meta->relationships(
- invoice => {
- class => 'SL::DB::InvoiceItem',
- column_map => { id => 'price_factor_id' },
- type => 'one to many',
- },
-
- orderitems => {
- class => 'SL::DB::OrderItem',
- column_map => { id => 'price_factor_id' },
- type => 'one to many',
- },
-
- parts => {
- class => 'SL::DB::Part',
- column_map => { id => 'price_factor_id' },
- type => 'one to many',
- },
-);
-
# __PACKAGE__->meta->initialize;
1;
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
-__PACKAGE__->meta->relationships(
- delivery_order_items => {
- class => 'SL::DB::DeliveryOrderItem',
- column_map => { id => 'pricegroup_id' },
- type => 'one to many',
- },
-
- invoice => {
- class => 'SL::DB::InvoiceItem',
- column_map => { id => 'pricegroup_id' },
- type => 'one to many',
- },
-
- orderitems => {
- class => 'SL::DB::OrderItem',
- column_map => { id => 'pricegroup_id' },
- type => 'one to many',
- },
-);
-
# __PACKAGE__->meta->initialize;
1;
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
-__PACKAGE__->meta->relationships(
- periodic_invoices_configs => {
- class => 'SL::DB::PeriodicInvoicesConfig',
- column_map => { id => 'printer_id' },
- type => 'one to many',
- },
-);
-
# __PACKAGE__->meta->initialize;
1;
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' },
+ },
+
+ employee => {
+ class => 'SL::DB::Employee',
+ key_columns => { employee_id => 'id' },
+ },
+
globalproject => {
class => 'SL::DB::Project',
key_columns => { globalproject_id => 'id' },
},
+ language => {
+ class => 'SL::DB::Language',
+ key_columns => { language_id => 'id' },
+ },
+
+ payment_terms => {
+ class => 'SL::DB::PaymentTerm',
+ key_columns => { payment_id => 'id' },
+ },
+
storno_obj => {
class => 'SL::DB::PurchaseInvoice',
key_columns => { storno_id => 'id' },
__PACKAGE__->meta->allow_inline_column_values(1);
-__PACKAGE__->meta->relationships(
- ar => {
- class => 'SL::DB::Invoice',
- column_map => { shipto_id => 'shipto_id' },
- type => 'one to many',
- },
-
- delivery_orders => {
- class => 'SL::DB::DeliveryOrder',
- column_map => { shipto_id => 'shipto_id' },
- type => 'one to many',
- },
-
- oe => {
- class => 'SL::DB::Order',
- column_map => { shipto_id => 'shipto_id' },
- type => 'one to many',
- },
-);
-
# __PACKAGE__->meta->initialize;
1;
__PACKAGE__->meta->allow_inline_column_values(1);
-__PACKAGE__->meta->relationships(
- inventory => {
- class => 'SL::DB::Inventory',
- column_map => { id => 'trans_type_id' },
- type => 'one to many',
- },
-);
-
# __PACKAGE__->meta->initialize;
1;