Revision b8b112a3
Von Sven Schöling vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Default.pm | ||
---|---|---|
6 | 6 |
|
7 | 7 |
use base qw(SL::DB::Object); |
8 | 8 |
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'defaults', |
|
9 |
__PACKAGE__->meta->table('defaults'); |
|
11 | 10 |
|
12 |
columns => [
|
|
13 |
inventory_accno_id => { type => 'integer' },
|
|
14 |
income_accno_id => { type => 'integer' },
|
|
15 |
expense_accno_id => { type => 'integer' },
|
|
16 |
fxgain_accno_id => { type => 'integer' },
|
|
17 |
fxloss_accno_id => { type => 'integer' },
|
|
18 |
invnumber => { type => 'text' },
|
|
19 |
sonumber => { type => 'text' },
|
|
20 |
weightunit => { type => 'varchar', length => 5 },
|
|
21 |
businessnumber => { type => 'text' },
|
|
22 |
version => { type => 'varchar', length => 8 },
|
|
23 |
closedto => { type => 'date' },
|
|
24 |
revtrans => { type => 'boolean', default => 'false' },
|
|
25 |
ponumber => { type => 'text' },
|
|
26 |
sqnumber => { type => 'text' },
|
|
27 |
rfqnumber => { type => 'text' },
|
|
28 |
customernumber => { type => 'text' },
|
|
29 |
vendornumber => { type => 'text' },
|
|
30 |
audittrail => { type => 'boolean', default => 'false' },
|
|
31 |
articlenumber => { type => 'text' },
|
|
32 |
servicenumber => { type => 'text' },
|
|
33 |
coa => { type => 'text' },
|
|
34 |
itime => { type => 'timestamp', default => 'now()' },
|
|
35 |
mtime => { type => 'timestamp' },
|
|
36 |
rmanumber => { type => 'text' },
|
|
37 |
cnnumber => { type => 'text' },
|
|
38 |
dunning_ar_amount_fee => { type => 'integer' },
|
|
39 |
dunning_ar_amount_interest => { type => 'integer' },
|
|
40 |
dunning_ar => { type => 'integer' },
|
|
41 |
pdonumber => { type => 'text' },
|
|
42 |
sdonumber => { type => 'text' },
|
|
43 |
ar_paid_accno_id => { type => 'integer' },
|
|
44 |
id => { type => 'serial', not_null => 1 },
|
|
45 |
language_id => { type => 'integer' },
|
|
46 |
accounting_method => { type => 'text' },
|
|
47 |
inventory_system => { type => 'text' },
|
|
48 |
profit_determination => { type => 'text' },
|
|
49 |
datev_check_on_sales_invoice => { type => 'boolean', default => 'true' },
|
|
50 |
datev_check_on_purchase_invoice => { type => 'boolean', default => 'true' },
|
|
51 |
datev_check_on_ar_transaction => { type => 'boolean', default => 'true' },
|
|
52 |
datev_check_on_ap_transaction => { type => 'boolean', default => 'true' },
|
|
53 |
datev_check_on_gl_transaction => { type => 'boolean', default => 'true' },
|
|
54 |
payments_changeable => { type => 'integer', default => '0', not_null => 1 },
|
|
55 |
is_changeable => { type => 'integer', default => 2, not_null => 1 },
|
|
56 |
ir_changeable => { type => 'integer', default => 2, not_null => 1 },
|
|
57 |
ar_changeable => { type => 'integer', default => 2, not_null => 1 },
|
|
58 |
ap_changeable => { type => 'integer', default => 2, not_null => 1 },
|
|
59 |
gl_changeable => { type => 'integer', default => 2, not_null => 1 },
|
|
60 |
show_bestbefore => { type => 'boolean', default => 'false' },
|
|
61 |
sales_order_show_delete => { type => 'boolean', default => 'true' },
|
|
62 |
purchase_order_show_delete => { type => 'boolean', default => 'true' },
|
|
63 |
sales_delivery_order_show_delete => { type => 'boolean', default => 'true' },
|
|
64 |
purchase_delivery_order_show_delete => { type => 'boolean', default => 'true' },
|
|
65 |
is_show_mark_as_paid => { type => 'boolean', default => 'true' },
|
|
66 |
ir_show_mark_as_paid => { type => 'boolean', default => 'true' },
|
|
67 |
ar_show_mark_as_paid => { type => 'boolean', default => 'true' },
|
|
68 |
ap_show_mark_as_paid => { type => 'boolean', default => 'true' },
|
|
69 |
max_future_booking_interval => { type => 'integer', default => 360 },
|
|
70 |
assemblynumber => { type => 'text' },
|
|
71 |
warehouse_id => { type => 'integer' },
|
|
72 |
bin_id => { type => 'integer' },
|
|
73 |
company => { type => 'text' },
|
|
74 |
address => { type => 'text' },
|
|
75 |
taxnumber => { type => 'text' },
|
|
76 |
co_ustid => { type => 'text' },
|
|
77 |
duns => { type => 'text' },
|
|
78 |
sepa_creditor_id => { type => 'text' },
|
|
79 |
templates => { type => 'text' },
|
|
80 |
show_weight => { type => 'boolean', default => 'false', not_null => 1 },
|
|
81 |
transfer_default => { type => 'boolean', default => 'true' },
|
|
82 |
transfer_default_use_master_default_bin => { type => 'boolean', default => 'false' },
|
|
83 |
transfer_default_ignore_onhand => { type => 'boolean', default => 'false' },
|
|
84 |
warehouse_id_ignore_onhand => { type => 'integer' },
|
|
85 |
bin_id_ignore_onhand => { type => 'integer' },
|
|
86 |
currency_id => { type => 'integer', not_null => 1 },
|
|
87 |
],
|
|
11 |
__PACKAGE__->meta->columns(
|
|
12 |
inventory_accno_id => { type => 'integer' }, |
|
13 |
income_accno_id => { type => 'integer' }, |
|
14 |
expense_accno_id => { type => 'integer' }, |
|
15 |
fxgain_accno_id => { type => 'integer' }, |
|
16 |
fxloss_accno_id => { type => 'integer' }, |
|
17 |
invnumber => { type => 'text' }, |
|
18 |
sonumber => { type => 'text' }, |
|
19 |
weightunit => { type => 'varchar', length => 5 }, |
|
20 |
businessnumber => { type => 'text' }, |
|
21 |
version => { type => 'varchar', length => 8 }, |
|
22 |
closedto => { type => 'date' }, |
|
23 |
revtrans => { type => 'boolean', default => 'false' }, |
|
24 |
ponumber => { type => 'text' }, |
|
25 |
sqnumber => { type => 'text' }, |
|
26 |
rfqnumber => { type => 'text' }, |
|
27 |
customernumber => { type => 'text' }, |
|
28 |
vendornumber => { type => 'text' }, |
|
29 |
audittrail => { type => 'boolean', default => 'false' }, |
|
30 |
articlenumber => { type => 'text' }, |
|
31 |
servicenumber => { type => 'text' }, |
|
32 |
coa => { type => 'text' }, |
|
33 |
itime => { type => 'timestamp', default => 'now()' }, |
|
34 |
mtime => { type => 'timestamp' }, |
|
35 |
rmanumber => { type => 'text' }, |
|
36 |
cnnumber => { type => 'text' }, |
|
37 |
dunning_ar_amount_fee => { type => 'integer' }, |
|
38 |
dunning_ar_amount_interest => { type => 'integer' }, |
|
39 |
dunning_ar => { type => 'integer' }, |
|
40 |
pdonumber => { type => 'text' }, |
|
41 |
sdonumber => { type => 'text' }, |
|
42 |
id => { type => 'serial', not_null => 1 },
|
|
43 |
ar_paid_accno_id => { type => 'integer' },
|
|
44 |
language_id => { type => 'integer' }, |
|
45 |
accounting_method => { type => 'text' }, |
|
46 |
inventory_system => { type => 'text' }, |
|
47 |
profit_determination => { type => 'text' }, |
|
48 |
datev_check_on_sales_invoice => { type => 'boolean', default => 'true' }, |
|
49 |
datev_check_on_purchase_invoice => { type => 'boolean', default => 'true' }, |
|
50 |
datev_check_on_ar_transaction => { type => 'boolean', default => 'true' }, |
|
51 |
datev_check_on_ap_transaction => { type => 'boolean', default => 'true' }, |
|
52 |
datev_check_on_gl_transaction => { type => 'boolean', default => 'true' }, |
|
53 |
payments_changeable => { type => 'integer', default => '0', not_null => 1 }, |
|
54 |
is_changeable => { type => 'integer', default => 2, not_null => 1 }, |
|
55 |
ir_changeable => { type => 'integer', default => 2, not_null => 1 }, |
|
56 |
ar_changeable => { type => 'integer', default => 2, not_null => 1 }, |
|
57 |
ap_changeable => { type => 'integer', default => 2, not_null => 1 }, |
|
58 |
gl_changeable => { type => 'integer', default => 2, not_null => 1 }, |
|
59 |
show_bestbefore => { type => 'boolean', default => 'false' }, |
|
60 |
sales_order_show_delete => { type => 'boolean', default => 'true' }, |
|
61 |
purchase_order_show_delete => { type => 'boolean', default => 'true' }, |
|
62 |
sales_delivery_order_show_delete => { type => 'boolean', default => 'true' }, |
|
63 |
purchase_delivery_order_show_delete => { type => 'boolean', default => 'true' }, |
|
64 |
is_show_mark_as_paid => { type => 'boolean', default => 'true' }, |
|
65 |
ir_show_mark_as_paid => { type => 'boolean', default => 'true' }, |
|
66 |
ar_show_mark_as_paid => { type => 'boolean', default => 'true' }, |
|
67 |
ap_show_mark_as_paid => { type => 'boolean', default => 'true' }, |
|
68 |
assemblynumber => { type => 'text' },
|
|
69 |
currency_id => { type => 'integer', not_null => 1 },
|
|
70 |
warehouse_id => { type => 'integer' }, |
|
71 |
bin_id => { type => 'integer' }, |
|
72 |
show_weight => { type => 'boolean', default => 'false', not_null => 1 },
|
|
73 |
transfer_default => { type => 'boolean', default => 'true' },
|
|
74 |
transfer_default_use_master_default_bin => { type => 'boolean', default => 'false' },
|
|
75 |
transfer_default_ignore_onhand => { type => 'boolean', default => 'false' },
|
|
76 |
warehouse_id_ignore_onhand => { type => 'integer' },
|
|
77 |
bin_id_ignore_onhand => { type => 'integer' },
|
|
78 |
company => { type => 'text' },
|
|
79 |
address => { type => 'text' },
|
|
80 |
taxnumber => { type => 'text' },
|
|
81 |
co_ustid => { type => 'text' },
|
|
82 |
duns => { type => 'text' },
|
|
83 |
sepa_creditor_id => { type => 'text' },
|
|
84 |
templates => { type => 'text' },
|
|
85 |
max_future_booking_interval => { type => 'integer', default => 360 },
|
|
86 |
);
|
|
88 | 87 |
|
89 |
primary_key_columns => [ 'id' ],
|
|
88 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
|
|
90 | 89 |
|
91 |
allow_inline_column_values => 1,
|
|
90 |
__PACKAGE__->meta->allow_inline_column_values(1);
|
|
92 | 91 |
|
93 |
foreign_keys => [
|
|
94 |
bin => {
|
|
95 |
class => 'SL::DB::Bin',
|
|
96 |
key_columns => { bin_id => 'id' },
|
|
97 |
},
|
|
92 |
__PACKAGE__->meta->foreign_keys(
|
|
93 |
bin => { |
|
94 |
class => 'SL::DB::Bin', |
|
95 |
key_columns => { bin_id => 'id' }, |
|
96 |
}, |
|
98 | 97 |
|
99 |
bin_obj => {
|
|
100 |
class => 'SL::DB::Bin',
|
|
101 |
key_columns => { bin_id_ignore_onhand => 'id' },
|
|
102 |
},
|
|
98 |
bin_obj => { |
|
99 |
class => 'SL::DB::Bin', |
|
100 |
key_columns => { bin_id_ignore_onhand => 'id' }, |
|
101 |
}, |
|
103 | 102 |
|
104 |
currency => {
|
|
105 |
class => 'SL::DB::Currency',
|
|
106 |
key_columns => { currency_id => 'id' },
|
|
107 |
},
|
|
103 |
currency => { |
|
104 |
class => 'SL::DB::Currency', |
|
105 |
key_columns => { currency_id => 'id' }, |
|
106 |
}, |
|
108 | 107 |
|
109 |
warehouse => {
|
|
110 |
class => 'SL::DB::Warehouse',
|
|
111 |
key_columns => { warehouse_id => 'id' },
|
|
112 |
},
|
|
108 |
warehouse => { |
|
109 |
class => 'SL::DB::Warehouse', |
|
110 |
key_columns => { warehouse_id => 'id' }, |
|
111 |
}, |
|
113 | 112 |
|
114 |
warehouse_obj => { |
|
115 |
class => 'SL::DB::Warehouse', |
|
116 |
key_columns => { warehouse_id_ignore_onhand => 'id' }, |
|
117 |
}, |
|
118 |
], |
|
113 |
warehouse_obj => { |
|
114 |
class => 'SL::DB::Warehouse', |
|
115 |
key_columns => { warehouse_id_ignore_onhand => 'id' }, |
|
116 |
}, |
|
119 | 117 |
); |
120 | 118 |
|
119 |
# __PACKAGE__->meta->initialize; |
|
120 |
|
|
121 | 121 |
1; |
122 | 122 |
; |
Auch abrufbar als: Unified diff
MetaSetup neu generiert