Revision 4fd22b56
Von Sven Schöling vor etwa 14 Jahren hinzugefügt
SL/DB/BankAccount.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::BankAccount; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::BankAccount; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/Buchungsgruppe.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::Buchungsgruppe; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::Buchungsgruppe; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/Contact.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::Contact; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::Contact; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/CustomVariable.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::CustomVariable; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::CustomVariable; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/CustomVariableConfig.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::CustomVariableConfig; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::CustomVariableConfig; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/CustomVariableValidity.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::CustomVariableValidity; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::CustomVariableValidity; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/Draft.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::Draft; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::Draft; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/Dunning.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::Dunning; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::Dunning; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/DunningConfig.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::DunningConfig; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::DunningConfig; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/Employee.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::Employee; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::Employee; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/FollowUp.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::FollowUp; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::FollowUp; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/FollowUpLink.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::FollowUpLink; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::FollowUpLink; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/GenericTranslation.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::GenericTranslation; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::GenericTranslation; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/Helpers/ALL.pm | ||
---|---|---|
3 | 3 |
use strict; |
4 | 4 |
|
5 | 5 |
use SL::DB::Assembly; |
6 |
use SL::DB::BankAccount; |
|
6 | 7 |
use SL::DB::Bin; |
8 |
use SL::DB::Buchungsgruppe; |
|
7 | 9 |
use SL::DB::Business; |
8 | 10 |
use SL::DB::Chart; |
11 |
use SL::DB::Contact; |
|
12 |
use SL::DB::CustomVariable; |
|
13 |
use SL::DB::CustomVariableConfig; |
|
14 |
use SL::DB::CustomVariableValidity; |
|
9 | 15 |
use SL::DB::Customer; |
10 | 16 |
use SL::DB::DeliveryOrder; |
11 | 17 |
use SL::DB::DeliveryOrderItem; |
12 | 18 |
use SL::DB::DeliveryOrderItemsStock; |
19 |
use SL::DB::Draft; |
|
20 |
use SL::DB::Dunning; |
|
21 |
use SL::DB::DunningConfig; |
|
22 |
use SL::DB::Employee; |
|
23 |
use SL::DB::FollowUp; |
|
24 |
use SL::DB::FollowUpLink; |
|
13 | 25 |
use SL::DB::GLTransaction; |
26 |
use SL::DB::GenericTranslation; |
|
27 |
use SL::DB::History; |
|
14 | 28 |
use SL::DB::Invoice; |
15 | 29 |
use SL::DB::InvoiceItem; |
30 |
use SL::DB::Language; |
|
31 |
use SL::DB::Licemse; |
|
32 |
use SL::DB::Note; |
|
16 | 33 |
use SL::DB::Order; |
17 | 34 |
use SL::DB::OrderItem; |
18 | 35 |
use SL::DB::Part; |
36 |
use SL::DB::PaymentTerm; |
|
19 | 37 |
use SL::DB::PriceFactor; |
38 |
use SL::DB::Pricegroup; |
|
20 | 39 |
use SL::DB::Printer; |
21 | 40 |
use SL::DB::Project; |
22 | 41 |
use SL::DB::PurchaseInvoice; |
42 |
use SL::DB::RMA; |
|
43 |
use SL::DB::SepaExport; |
|
44 |
use SL::DB::SepaExportItem; |
|
23 | 45 |
use SL::DB::Shipto; |
46 |
use SL::DB::Tax; |
|
47 |
use SL::DB::Taxkey; |
|
24 | 48 |
use SL::DB::TransferType; |
25 | 49 |
use SL::DB::Unit; |
26 | 50 |
use SL::DB::Vendor; |
27 | 51 |
use SL::DB::Warehouse; |
28 | 52 |
|
53 |
|
|
54 |
|
|
29 | 55 |
1; |
30 | 56 |
|
31 | 57 |
__END__ |
SL/DB/Helpers/Mappings.pm | ||
---|---|---|
2 | 2 |
|
3 | 3 |
use strict; |
4 | 4 |
|
5 |
# threse will not be managed as Rose::DB models, because they are not normalized
|
|
5 |
# these will not be managed as Rose::DB models, because they are not normalized |
|
6 | 6 |
# significant changes are needed to get them done. |
7 | 7 |
my @lxoffice_blacklist_permanent = qw( |
8 | 8 |
acc_trans audittrail customertax datev defaults department dpt_trans |
... | ... | |
14 | 14 |
# these are not managed _yet_, but will hopefully at some point. |
15 | 15 |
# if you are confident that one of these works, remove it here. |
16 | 16 |
my @lxoffice_blacklist_temp = qw( |
17 |
bank_accounts buchungsgruppen contacts custom_variable_configs |
|
18 |
custom_variables custom_variables_validity drafts dunning dunning_config |
|
19 |
employee follow_up_links follow_ups generic_translations history_erp language |
|
20 |
license notes payment_terms pricegroup rma schema_info sepa_export |
|
21 |
sepa_export_items tax taxkeys |
|
17 |
schema_info |
|
22 | 18 |
); |
23 | 19 |
|
24 | 20 |
my @lxoffice_blacklist = (@lxoffice_blacklist_permanent, @lxoffice_blacklist_temp); |
... | ... | |
29 | 25 |
my %lxoffice_package_names = ( |
30 | 26 |
ar => 'invoice', |
31 | 27 |
ap => 'purchase_invoice', |
28 |
bank_accounts => 'bank_account', |
|
29 |
buchungsgruppen => 'buchungsgruppe', |
|
30 |
contacts => 'contact', |
|
31 |
custom_variable_configs => 'custom_variable_config', |
|
32 |
custom_variables => 'custom_variable', |
|
33 |
custom_variables_validity => 'custom_variable_validity', |
|
32 | 34 |
delivery_orders => 'delivery_order', |
33 | 35 |
delivery_order_items => 'delivery_order_item', |
36 |
drafts => 'draft', |
|
37 |
dunning => 'dunning', |
|
38 |
dunning_config => 'dunning_config', |
|
39 |
employee => 'employee', |
|
40 |
follow_up_links => 'follow_up_link', |
|
41 |
follow_ups => 'follow_up', |
|
42 |
generic_translations => 'generic_translation', |
|
34 | 43 |
gl => 'GLTransaction', |
44 |
history_erp => 'history', |
|
35 | 45 |
invoice => 'invoice_item', |
46 |
language => 'language', |
|
47 |
license => 'licemse', |
|
48 |
notes => 'note', |
|
36 | 49 |
orderitems => 'order_item', |
37 | 50 |
oe => 'order', |
38 | 51 |
parts => 'part', |
52 |
payment_terms => 'payment_term', |
|
39 | 53 |
price_factors => 'price_factor', |
54 |
pricegroup => 'pricegroup', |
|
40 | 55 |
printers => 'Printer', |
56 |
rma => 'RMA', |
|
57 |
sepa_export => 'sepa_export', |
|
58 |
sepa_export_items => 'sepa_export_item', |
|
59 |
tax => 'tax', |
|
60 |
taxkeys => 'taxkey', |
|
41 | 61 |
units => 'unit', |
42 | 62 |
); |
43 | 63 |
|
SL/DB/History.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::History; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::History; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/Language.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::Language; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::Language; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/Licemse.pm | ||
---|---|---|
1 |
# This file has been auto-generated only because it didn't exist. |
|
2 |
# Feel free to modify it at will; it will not be overwritten automatically. |
|
3 |
|
|
4 |
package SL::DB::Licemse; |
|
5 |
|
|
6 |
use strict; |
|
7 |
|
|
8 |
use SL::DB::MetaSetup::Licemse; |
|
9 |
|
|
10 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
11 |
__PACKAGE__->meta->make_manager_class; |
|
12 |
|
|
13 |
1; |
SL/DB/MetaSetup/BankAccount.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::BankAccount; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'bank_accounts', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
account_number => { type => 'varchar', length => 100 }, |
|
15 |
bank_code => { type => 'varchar', length => 100 }, |
|
16 |
iban => { type => 'varchar', length => 100 }, |
|
17 |
bic => { type => 'varchar', length => 100 }, |
|
18 |
bank => { type => 'text' }, |
|
19 |
chart_id => { type => 'integer', not_null => 1 }, |
|
20 |
], |
|
21 |
|
|
22 |
primary_key_columns => [ 'id' ], |
|
23 |
|
|
24 |
foreign_keys => [ |
|
25 |
chart => { |
|
26 |
class => 'SL::DB::Chart', |
|
27 |
key_columns => { chart_id => 'id' }, |
|
28 |
}, |
|
29 |
], |
|
30 |
); |
|
31 |
|
|
32 |
1; |
|
33 |
; |
SL/DB/MetaSetup/Buchungsgruppe.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::Buchungsgruppe; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'buchungsgruppen', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
description => { type => 'text' }, |
|
15 |
inventory_accno_id => { type => 'integer' }, |
|
16 |
income_accno_id_0 => { type => 'integer' }, |
|
17 |
expense_accno_id_0 => { type => 'integer' }, |
|
18 |
income_accno_id_1 => { type => 'integer' }, |
|
19 |
expense_accno_id_1 => { type => 'integer' }, |
|
20 |
income_accno_id_2 => { type => 'integer' }, |
|
21 |
expense_accno_id_2 => { type => 'integer' }, |
|
22 |
income_accno_id_3 => { type => 'integer' }, |
|
23 |
expense_accno_id_3 => { type => 'integer' }, |
|
24 |
sortkey => { type => 'integer', not_null => 1 }, |
|
25 |
], |
|
26 |
|
|
27 |
primary_key_columns => [ 'id' ], |
|
28 |
); |
|
29 |
|
|
30 |
1; |
|
31 |
; |
SL/DB/MetaSetup/Contact.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::Contact; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'contacts', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
cp_id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
cp_cv_id => { type => 'integer' }, |
|
15 |
cp_title => { type => 'varchar', length => 75 }, |
|
16 |
cp_givenname => { type => 'varchar', length => 75 }, |
|
17 |
cp_name => { type => 'varchar', length => 75 }, |
|
18 |
cp_email => { type => 'text' }, |
|
19 |
cp_phone1 => { type => 'varchar', length => 75 }, |
|
20 |
cp_phone2 => { type => 'varchar', length => 75 }, |
|
21 |
itime => { type => 'timestamp', default => 'now()' }, |
|
22 |
mtime => { type => 'timestamp' }, |
|
23 |
cp_fax => { type => 'text' }, |
|
24 |
cp_mobile1 => { type => 'text' }, |
|
25 |
cp_mobile2 => { type => 'text' }, |
|
26 |
cp_satphone => { type => 'text' }, |
|
27 |
cp_satfax => { type => 'text' }, |
|
28 |
cp_project => { type => 'text' }, |
|
29 |
cp_privatphone => { type => 'text' }, |
|
30 |
cp_privatemail => { type => 'text' }, |
|
31 |
cp_birthday => { type => 'text' }, |
|
32 |
cp_abteilung => { type => 'text' }, |
|
33 |
cp_gender => { type => 'character', length => 1 }, |
|
34 |
], |
|
35 |
|
|
36 |
primary_key_columns => [ 'cp_id' ], |
|
37 |
|
|
38 |
allow_inline_column_values => 1, |
|
39 |
); |
|
40 |
|
|
41 |
1; |
|
42 |
; |
SL/DB/MetaSetup/CustomVariable.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::CustomVariable; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'custom_variables', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'custom_variables_id' }, |
|
14 |
config_id => { type => 'integer', not_null => 1 }, |
|
15 |
trans_id => { type => 'integer', not_null => 1 }, |
|
16 |
bool_value => { type => 'boolean' }, |
|
17 |
timestamp_value => { type => 'timestamp' }, |
|
18 |
text_value => { type => 'text' }, |
|
19 |
number_value => { type => 'numeric', precision => 5, scale => 25 }, |
|
20 |
itime => { type => 'timestamp', default => 'now()' }, |
|
21 |
mtime => { type => 'timestamp' }, |
|
22 |
sub_module => { type => 'text' }, |
|
23 |
], |
|
24 |
|
|
25 |
primary_key_columns => [ 'id' ], |
|
26 |
|
|
27 |
allow_inline_column_values => 1, |
|
28 |
|
|
29 |
foreign_keys => [ |
|
30 |
config => { |
|
31 |
class => 'SL::DB::CustomVariableConfig', |
|
32 |
key_columns => { config_id => 'id' }, |
|
33 |
}, |
|
34 |
], |
|
35 |
); |
|
36 |
|
|
37 |
1; |
|
38 |
; |
SL/DB/MetaSetup/CustomVariableConfig.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::CustomVariableConfig; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'custom_variable_configs', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'custom_variable_configs_id' }, |
|
14 |
name => { type => 'text' }, |
|
15 |
description => { type => 'text' }, |
|
16 |
type => { type => 'varchar', length => 20 }, |
|
17 |
module => { type => 'varchar', length => 20 }, |
|
18 |
default_value => { type => 'text' }, |
|
19 |
options => { type => 'text' }, |
|
20 |
searchable => { type => 'boolean' }, |
|
21 |
includeable => { type => 'boolean' }, |
|
22 |
included_by_default => { type => 'boolean' }, |
|
23 |
sortkey => { type => 'integer' }, |
|
24 |
itime => { type => 'timestamp', default => 'now()' }, |
|
25 |
mtime => { type => 'timestamp' }, |
|
26 |
flags => { type => 'text' }, |
|
27 |
], |
|
28 |
|
|
29 |
primary_key_columns => [ 'id' ], |
|
30 |
|
|
31 |
allow_inline_column_values => 1, |
|
32 |
); |
|
33 |
|
|
34 |
1; |
|
35 |
; |
SL/DB/MetaSetup/CustomVariableValidity.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::CustomVariableValidity; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'custom_variables_validity', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
config_id => { type => 'integer', not_null => 1 }, |
|
15 |
trans_id => { type => 'integer', not_null => 1 }, |
|
16 |
itime => { type => 'timestamp', default => 'now()' }, |
|
17 |
], |
|
18 |
|
|
19 |
primary_key_columns => [ 'id' ], |
|
20 |
|
|
21 |
allow_inline_column_values => 1, |
|
22 |
|
|
23 |
foreign_keys => [ |
|
24 |
config => { |
|
25 |
class => 'SL::DB::CustomVariableConfig', |
|
26 |
key_columns => { config_id => 'id' }, |
|
27 |
}, |
|
28 |
], |
|
29 |
); |
|
30 |
|
|
31 |
1; |
|
32 |
; |
SL/DB/MetaSetup/DeliveryOrder.pm | ||
---|---|---|
48 | 48 |
allow_inline_column_values => 1, |
49 | 49 |
|
50 | 50 |
foreign_keys => [ |
51 |
contact => { |
|
52 |
class => 'SL::DB::Contact', |
|
53 |
key_columns => { cp_id => 'cp_id' }, |
|
54 |
}, |
|
55 |
|
|
51 | 56 |
customer => { |
52 | 57 |
class => 'SL::DB::Customer', |
53 | 58 |
key_columns => { customer_id => 'id' }, |
54 | 59 |
}, |
55 | 60 |
|
61 |
employee => { |
|
62 |
class => 'SL::DB::Employee', |
|
63 |
key_columns => { employee_id => 'id' }, |
|
64 |
}, |
|
65 |
|
|
56 | 66 |
globalproject => { |
57 | 67 |
class => 'SL::DB::Project', |
58 | 68 |
key_columns => { globalproject_id => 'id' }, |
59 | 69 |
}, |
60 | 70 |
|
71 |
language => { |
|
72 |
class => 'SL::DB::Language', |
|
73 |
key_columns => { language_id => 'id' }, |
|
74 |
}, |
|
75 |
|
|
76 |
salesman => { |
|
77 |
class => 'SL::DB::Employee', |
|
78 |
key_columns => { salesman_id => 'id' }, |
|
79 |
}, |
|
80 |
|
|
61 | 81 |
vendor => { |
62 | 82 |
class => 'SL::DB::Vendor', |
63 | 83 |
key_columns => { vendor_id => 'id' }, |
SL/DB/MetaSetup/Draft.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::Draft; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'drafts', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'varchar', length => 50, not_null => 1 }, |
|
14 |
module => { type => 'varchar', length => 50, not_null => 1 }, |
|
15 |
submodule => { type => 'varchar', length => 50, not_null => 1 }, |
|
16 |
description => { type => 'text' }, |
|
17 |
itime => { type => 'timestamp', default => 'now()' }, |
|
18 |
form => { type => 'text' }, |
|
19 |
employee_id => { type => 'integer' }, |
|
20 |
], |
|
21 |
|
|
22 |
primary_key_columns => [ 'id' ], |
|
23 |
|
|
24 |
allow_inline_column_values => 1, |
|
25 |
|
|
26 |
foreign_keys => [ |
|
27 |
employee => { |
|
28 |
class => 'SL::DB::Employee', |
|
29 |
key_columns => { employee_id => 'id' }, |
|
30 |
}, |
|
31 |
], |
|
32 |
); |
|
33 |
|
|
34 |
1; |
|
35 |
; |
SL/DB/MetaSetup/Dunning.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::Dunning; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'dunning', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
trans_id => { type => 'integer' }, |
|
15 |
dunning_id => { type => 'integer' }, |
|
16 |
dunning_level => { type => 'integer' }, |
|
17 |
transdate => { type => 'date' }, |
|
18 |
duedate => { type => 'date' }, |
|
19 |
fee => { type => 'numeric', precision => 5, scale => 15 }, |
|
20 |
interest => { type => 'numeric', precision => 5, scale => 15 }, |
|
21 |
dunning_config_id => { type => 'integer' }, |
|
22 |
itime => { type => 'timestamp', default => 'now()' }, |
|
23 |
mtime => { type => 'timestamp' }, |
|
24 |
fee_interest_ar_id => { type => 'integer' }, |
|
25 |
], |
|
26 |
|
|
27 |
primary_key_columns => [ 'id' ], |
|
28 |
|
|
29 |
allow_inline_column_values => 1, |
|
30 |
|
|
31 |
foreign_keys => [ |
|
32 |
dunning_config => { |
|
33 |
class => 'SL::DB::DunningConfig', |
|
34 |
key_columns => { dunning_config_id => 'id' }, |
|
35 |
}, |
|
36 |
|
|
37 |
fee_interest_ar => { |
|
38 |
class => 'SL::DB::Invoice', |
|
39 |
key_columns => { fee_interest_ar_id => 'id' }, |
|
40 |
}, |
|
41 |
], |
|
42 |
); |
|
43 |
|
|
44 |
1; |
|
45 |
; |
SL/DB/MetaSetup/DunningConfig.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::DunningConfig; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'dunning_config', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
dunning_level => { type => 'integer' }, |
|
15 |
dunning_description => { type => 'text' }, |
|
16 |
active => { type => 'boolean' }, |
|
17 |
auto => { type => 'boolean' }, |
|
18 |
email => { type => 'boolean' }, |
|
19 |
terms => { type => 'integer' }, |
|
20 |
payment_terms => { type => 'integer' }, |
|
21 |
fee => { type => 'numeric', precision => 5, scale => 15 }, |
|
22 |
interest_rate => { type => 'numeric', precision => 5, scale => 15 }, |
|
23 |
email_body => { type => 'text' }, |
|
24 |
email_subject => { type => 'text' }, |
|
25 |
email_attachment => { type => 'boolean' }, |
|
26 |
template => { type => 'text' }, |
|
27 |
create_invoices_for_fees => { type => 'boolean', default => 'true' }, |
|
28 |
], |
|
29 |
|
|
30 |
primary_key_columns => [ 'id' ], |
|
31 |
); |
|
32 |
|
|
33 |
1; |
|
34 |
; |
SL/DB/MetaSetup/Employee.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::Employee; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'employee', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
login => { type => 'text' }, |
|
15 |
startdate => { type => 'date', default => 'now' }, |
|
16 |
enddate => { type => 'date' }, |
|
17 |
notes => { type => 'text' }, |
|
18 |
role => { type => 'text' }, |
|
19 |
sales => { type => 'boolean', default => 'true' }, |
|
20 |
itime => { type => 'timestamp', default => 'now()' }, |
|
21 |
mtime => { type => 'timestamp' }, |
|
22 |
name => { type => 'text' }, |
|
23 |
addr1 => { type => 'text' }, |
|
24 |
addr2 => { type => 'text' }, |
|
25 |
addr3 => { type => 'text' }, |
|
26 |
addr4 => { type => 'text' }, |
|
27 |
homephone => { type => 'text' }, |
|
28 |
workphone => { type => 'text' }, |
|
29 |
], |
|
30 |
|
|
31 |
primary_key_columns => [ 'id' ], |
|
32 |
|
|
33 |
unique_key => [ 'login' ], |
|
34 |
|
|
35 |
allow_inline_column_values => 1, |
|
36 |
); |
|
37 |
|
|
38 |
1; |
|
39 |
; |
SL/DB/MetaSetup/FollowUp.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::FollowUp; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'follow_ups', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'follow_up_id' }, |
|
14 |
follow_up_date => { type => 'date', not_null => 1 }, |
|
15 |
created_for_user => { type => 'integer', not_null => 1 }, |
|
16 |
done => { type => 'boolean', default => 'false' }, |
|
17 |
note_id => { type => 'integer', not_null => 1 }, |
|
18 |
created_by => { type => 'integer', not_null => 1 }, |
|
19 |
itime => { type => 'timestamp', default => 'now()' }, |
|
20 |
mtime => { type => 'timestamp' }, |
|
21 |
], |
|
22 |
|
|
23 |
primary_key_columns => [ 'id' ], |
|
24 |
|
|
25 |
allow_inline_column_values => 1, |
|
26 |
|
|
27 |
foreign_keys => [ |
|
28 |
employee => { |
|
29 |
class => 'SL::DB::Employee', |
|
30 |
key_columns => { created_for_user => 'id' }, |
|
31 |
}, |
|
32 |
|
|
33 |
employee_obj => { |
|
34 |
class => 'SL::DB::Employee', |
|
35 |
key_columns => { created_by => 'id' }, |
|
36 |
}, |
|
37 |
|
|
38 |
note => { |
|
39 |
class => 'SL::DB::Note', |
|
40 |
key_columns => { note_id => 'id' }, |
|
41 |
}, |
|
42 |
], |
|
43 |
); |
|
44 |
|
|
45 |
1; |
|
46 |
; |
SL/DB/MetaSetup/FollowUpLink.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::FollowUpLink; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'follow_up_links', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'follow_up_link_id' }, |
|
14 |
follow_up_id => { type => 'integer', not_null => 1 }, |
|
15 |
trans_id => { type => 'integer', not_null => 1 }, |
|
16 |
trans_type => { type => 'text', not_null => 1 }, |
|
17 |
trans_info => { type => 'text' }, |
|
18 |
itime => { type => 'timestamp', default => 'now()' }, |
|
19 |
mtime => { type => 'timestamp' }, |
|
20 |
], |
|
21 |
|
|
22 |
primary_key_columns => [ 'id' ], |
|
23 |
|
|
24 |
allow_inline_column_values => 1, |
|
25 |
|
|
26 |
foreign_keys => [ |
|
27 |
follow_up => { |
|
28 |
class => 'SL::DB::FollowUp', |
|
29 |
key_columns => { follow_up_id => 'id' }, |
|
30 |
}, |
|
31 |
], |
|
32 |
); |
|
33 |
|
|
34 |
1; |
|
35 |
; |
SL/DB/MetaSetup/GenericTranslation.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::GenericTranslation; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'generic_translations', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'serial', not_null => 1 }, |
|
14 |
language_id => { type => 'integer' }, |
|
15 |
translation_type => { type => 'varchar', length => 100, not_null => 1 }, |
|
16 |
translation_id => { type => 'integer' }, |
|
17 |
translation => { type => 'text' }, |
|
18 |
], |
|
19 |
|
|
20 |
primary_key_columns => [ 'id' ], |
|
21 |
|
|
22 |
foreign_keys => [ |
|
23 |
language => { |
|
24 |
class => 'SL::DB::Language', |
|
25 |
key_columns => { language_id => 'id' }, |
|
26 |
}, |
|
27 |
], |
|
28 |
); |
|
29 |
|
|
30 |
1; |
|
31 |
; |
SL/DB/MetaSetup/History.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::History; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'history_erp', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
trans_id => { type => 'integer' }, |
|
15 |
employee_id => { type => 'integer' }, |
|
16 |
addition => { type => 'text' }, |
|
17 |
what_done => { type => 'text' }, |
|
18 |
itime => { type => 'timestamp', default => 'now()' }, |
|
19 |
snumbers => { type => 'text' }, |
|
20 |
], |
|
21 |
|
|
22 |
primary_key_columns => [ 'id' ], |
|
23 |
|
|
24 |
allow_inline_column_values => 1, |
|
25 |
|
|
26 |
foreign_keys => [ |
|
27 |
employee => { |
|
28 |
class => 'SL::DB::Employee', |
|
29 |
key_columns => { employee_id => 'id' }, |
|
30 |
}, |
|
31 |
], |
|
32 |
); |
|
33 |
|
|
34 |
1; |
|
35 |
; |
SL/DB/MetaSetup/Invoice.pm | ||
---|---|---|
68 | 68 |
key_columns => { customer_id => 'id' }, |
69 | 69 |
}, |
70 | 70 |
|
71 |
dunning_config => { |
|
72 |
class => 'SL::DB::DunningConfig', |
|
73 |
key_columns => { dunning_config_id => 'id' }, |
|
74 |
}, |
|
75 |
|
|
71 | 76 |
globalproject => { |
72 | 77 |
class => 'SL::DB::Project', |
73 | 78 |
key_columns => { globalproject_id => 'id' }, |
74 | 79 |
}, |
75 | 80 |
|
81 |
salesman => { |
|
82 |
class => 'SL::DB::Employee', |
|
83 |
key_columns => { salesman_id => 'id' }, |
|
84 |
}, |
|
85 |
|
|
76 | 86 |
storno_obj => { |
77 | 87 |
class => 'SL::DB::Invoice', |
78 | 88 |
key_columns => { storno_id => 'id' }, |
SL/DB/MetaSetup/Language.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::Language; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'language', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
description => { type => 'text' }, |
|
15 |
template_code => { type => 'text' }, |
|
16 |
article_code => { type => 'text' }, |
|
17 |
itime => { type => 'timestamp', default => 'now()' }, |
|
18 |
mtime => { type => 'timestamp' }, |
|
19 |
output_numberformat => { type => 'text' }, |
|
20 |
output_dateformat => { type => 'text' }, |
|
21 |
output_longdates => { type => 'boolean' }, |
|
22 |
], |
|
23 |
|
|
24 |
primary_key_columns => [ 'id' ], |
|
25 |
|
|
26 |
allow_inline_column_values => 1, |
|
27 |
); |
|
28 |
|
|
29 |
1; |
|
30 |
; |
SL/DB/MetaSetup/Licemse.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::Licemse; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'license', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
parts_id => { type => 'integer' }, |
|
15 |
customer_id => { type => 'integer' }, |
|
16 |
comment => { type => 'text' }, |
|
17 |
validuntil => { type => 'date' }, |
|
18 |
issuedate => { type => 'date', default => 'now' }, |
|
19 |
quantity => { type => 'integer' }, |
|
20 |
licensenumber => { type => 'text' }, |
|
21 |
], |
|
22 |
|
|
23 |
primary_key_columns => [ 'id' ], |
|
24 |
); |
|
25 |
|
|
26 |
1; |
|
27 |
; |
SL/DB/MetaSetup/Note.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::Note; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'notes', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'note_id' }, |
|
14 |
subject => { type => 'text' }, |
|
15 |
body => { type => 'text' }, |
|
16 |
created_by => { type => 'integer', not_null => 1 }, |
|
17 |
trans_id => { type => 'integer' }, |
|
18 |
trans_module => { type => 'varchar', length => 10 }, |
|
19 |
itime => { type => 'timestamp', default => 'now()' }, |
|
20 |
mtime => { type => 'timestamp' }, |
|
21 |
], |
|
22 |
|
|
23 |
primary_key_columns => [ 'id' ], |
|
24 |
|
|
25 |
allow_inline_column_values => 1, |
|
26 |
|
|
27 |
foreign_keys => [ |
|
28 |
employee => { |
|
29 |
class => 'SL::DB::Employee', |
|
30 |
key_columns => { created_by => 'id' }, |
|
31 |
}, |
|
32 |
], |
|
33 |
); |
|
34 |
|
|
35 |
1; |
|
36 |
; |
SL/DB/MetaSetup/Order.pm | ||
---|---|---|
55 | 55 |
allow_inline_column_values => 1, |
56 | 56 |
|
57 | 57 |
foreign_keys => [ |
58 |
employee => { |
|
59 |
class => 'SL::DB::Employee', |
|
60 |
key_columns => { employee_id => 'id' }, |
|
61 |
}, |
|
62 |
|
|
58 | 63 |
globalproject => { |
59 | 64 |
class => 'SL::DB::Project', |
60 | 65 |
key_columns => { globalproject_id => 'id' }, |
61 | 66 |
}, |
67 |
|
|
68 |
project_manager => { |
|
69 |
class => 'SL::DB::Employee', |
|
70 |
key_columns => { project_manager_id => 'id' }, |
|
71 |
}, |
|
72 |
|
|
73 |
salesman => { |
|
74 |
class => 'SL::DB::Employee', |
|
75 |
key_columns => { salesman_id => 'id' }, |
|
76 |
}, |
|
62 | 77 |
], |
63 | 78 |
); |
64 | 79 |
|
SL/DB/MetaSetup/Part.pm | ||
---|---|---|
53 | 53 |
primary_key_columns => [ 'id' ], |
54 | 54 |
|
55 | 55 |
allow_inline_column_values => 1, |
56 |
|
|
57 |
foreign_keys => [ |
|
58 |
buchungsgruppen => { |
|
59 |
class => 'SL::DB::Buchungsgruppe', |
|
60 |
key_columns => { buchungsgruppen_id => 'id' }, |
|
61 |
}, |
|
62 |
], |
|
56 | 63 |
); |
57 | 64 |
|
58 | 65 |
1; |
SL/DB/MetaSetup/PaymentTerm.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::PaymentTerm; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'payment_terms', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
description => { type => 'text' }, |
|
15 |
description_long => { type => 'text' }, |
|
16 |
terms_netto => { type => 'integer' }, |
|
17 |
terms_skonto => { type => 'integer' }, |
|
18 |
percent_skonto => { type => 'float', precision => 4 }, |
|
19 |
itime => { type => 'timestamp', default => 'now()' }, |
|
20 |
mtime => { type => 'timestamp' }, |
|
21 |
ranking => { type => 'integer' }, |
|
22 |
sortkey => { type => 'integer', not_null => 1 }, |
|
23 |
], |
|
24 |
|
|
25 |
primary_key_columns => [ 'id' ], |
|
26 |
|
|
27 |
allow_inline_column_values => 1, |
|
28 |
); |
|
29 |
|
|
30 |
1; |
|
31 |
; |
SL/DB/MetaSetup/Pricegroup.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::Pricegroup; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'pricegroup', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
pricegroup => { type => 'text', not_null => 1 }, |
|
15 |
], |
|
16 |
|
|
17 |
primary_key_columns => [ 'id' ], |
|
18 |
); |
|
19 |
|
|
20 |
1; |
|
21 |
; |
SL/DB/MetaSetup/RMA.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::RMA; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'rma', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
rmanumber => { type => 'text', not_null => 1 }, |
|
15 |
transdate => { type => 'date', default => 'now' }, |
|
16 |
vendor_id => { type => 'integer' }, |
|
17 |
customer_id => { type => 'integer' }, |
|
18 |
amount => { type => 'numeric', precision => 5, scale => 15 }, |
|
19 |
netamount => { type => 'numeric', precision => 5, scale => 15 }, |
|
20 |
reqdate => { type => 'date' }, |
|
21 |
taxincluded => { type => 'boolean' }, |
|
22 |
shippingpoint => { type => 'text' }, |
|
23 |
notes => { type => 'text' }, |
|
24 |
curr => { type => 'character', length => 3 }, |
|
25 |
employee_id => { type => 'integer' }, |
|
26 |
closed => { type => 'boolean', default => 'false' }, |
|
27 |
quotation => { type => 'boolean', default => 'false' }, |
|
28 |
quonumber => { type => 'text' }, |
|
29 |
cusrmanumber => { type => 'text' }, |
|
30 |
intnotes => { type => 'text' }, |
|
31 |
delivery_customer_id => { type => 'integer' }, |
|
32 |
delivery_vendor_id => { type => 'integer' }, |
|
33 |
language_id => { type => 'integer' }, |
|
34 |
payment_id => { type => 'integer' }, |
|
35 |
department_id => { type => 'integer', default => '0' }, |
|
36 |
itime => { type => 'timestamp', default => 'now()' }, |
|
37 |
mtime => { type => 'timestamp' }, |
|
38 |
shipvia => { type => 'text' }, |
|
39 |
cp_id => { type => 'integer' }, |
|
40 |
], |
|
41 |
|
|
42 |
primary_key_columns => [ 'id' ], |
|
43 |
|
|
44 |
allow_inline_column_values => 1, |
|
45 |
); |
|
46 |
|
|
47 |
1; |
|
48 |
; |
SL/DB/MetaSetup/SepaExport.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::SepaExport; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'sepa_export', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'serial', not_null => 1 }, |
|
14 |
employee_id => { type => 'integer', not_null => 1 }, |
|
15 |
executed => { type => 'boolean', default => 'false' }, |
|
16 |
closed => { type => 'boolean', default => 'false' }, |
|
17 |
itime => { type => 'timestamp', default => 'now()' }, |
|
18 |
], |
|
19 |
|
|
20 |
primary_key_columns => [ 'id' ], |
|
21 |
|
|
22 |
allow_inline_column_values => 1, |
|
23 |
|
|
24 |
foreign_keys => [ |
|
25 |
employee => { |
|
26 |
class => 'SL::DB::Employee', |
|
27 |
key_columns => { employee_id => 'id' }, |
|
28 |
}, |
|
29 |
], |
|
30 |
); |
|
31 |
|
|
32 |
1; |
|
33 |
; |
SL/DB/MetaSetup/SepaExportItem.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::SepaExportItem; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'sepa_export_items', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
sepa_export_id => { type => 'integer', not_null => 1 }, |
|
15 |
ap_id => { type => 'integer', not_null => 1 }, |
|
16 |
chart_id => { type => 'integer', not_null => 1 }, |
|
17 |
amount => { type => 'numeric', precision => 5, scale => 25 }, |
|
18 |
reference => { type => 'varchar', length => 35 }, |
|
19 |
requested_execution_date => { type => 'date' }, |
|
20 |
executed => { type => 'boolean', default => 'false' }, |
|
21 |
execution_date => { type => 'date' }, |
|
22 |
our_iban => { type => 'varchar', length => 100 }, |
|
23 |
our_bic => { type => 'varchar', length => 100 }, |
|
24 |
vendor_iban => { type => 'varchar', length => 100 }, |
|
25 |
vendor_bic => { type => 'varchar', length => 100 }, |
|
26 |
end_to_end_id => { type => 'varchar', length => 35 }, |
|
27 |
], |
|
28 |
|
|
29 |
primary_key_columns => [ 'id' ], |
|
30 |
|
|
31 |
foreign_keys => [ |
|
32 |
ap => { |
|
33 |
class => 'SL::DB::PurchaseInvoice', |
|
34 |
key_columns => { ap_id => 'id' }, |
|
35 |
}, |
|
36 |
|
|
37 |
chart => { |
|
38 |
class => 'SL::DB::Chart', |
|
39 |
key_columns => { chart_id => 'id' }, |
|
40 |
}, |
|
41 |
|
|
42 |
sepa_export => { |
|
43 |
class => 'SL::DB::SepaExport', |
|
44 |
key_columns => { sepa_export_id => 'id' }, |
|
45 |
}, |
|
46 |
], |
|
47 |
); |
|
48 |
|
|
49 |
1; |
|
50 |
; |
SL/DB/MetaSetup/Tax.pm | ||
---|---|---|
1 |
# This file has been auto-generated. Do not modify it; it will be overwritten |
|
2 |
# by rose_auto_create_model.pl automatically. |
|
3 |
package SL::DB::Tax; |
|
4 |
|
|
5 |
use strict; |
|
6 |
|
|
7 |
use base qw(SL::DB::Object); |
|
8 |
|
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'tax', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
chart_id => { type => 'integer' }, |
|
14 |
rate => { type => 'numeric', precision => 5, scale => 15 }, |
|
15 |
taxnumber => { type => 'text' }, |
|
16 |
taxkey => { type => 'integer' }, |
|
17 |
taxdescription => { type => 'text' }, |
|
18 |
itime => { type => 'timestamp', default => 'now()' }, |
|
19 |
mtime => { type => 'timestamp' }, |
|
20 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
21 |
], |
|
22 |
|
|
23 |
primary_key_columns => [ 'id' ], |
|
24 |
|
|
25 |
allow_inline_column_values => 1, |
Auch abrufbar als: Unified diff
DBO Update - alle normalen Models hinzugefügt.