Revision 3cf0aca6
Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt
SL/DB/MetaSetup/DeliveryOrder.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('delivery_orders'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
billing_address_id => { type => 'integer' }, |
|
13 |
closed => { type => 'boolean', default => 'false' }, |
|
14 |
cp_id => { type => 'integer' }, |
|
15 |
currency_id => { type => 'integer', not_null => 1 }, |
|
16 |
cusordnumber => { type => 'text' }, |
|
17 |
customer_id => { type => 'integer' }, |
|
18 |
delivered => { type => 'boolean', default => 'false' }, |
|
19 |
delivery_term_id => { type => 'integer' }, |
|
20 |
department_id => { type => 'integer' }, |
|
21 |
donumber => { type => 'text', not_null => 1 }, |
|
22 |
employee_id => { type => 'integer' }, |
|
23 |
globalproject_id => { type => 'integer' }, |
|
24 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
25 |
intnotes => { type => 'text' }, |
|
26 |
itime => { type => 'timestamp', default => 'now()' }, |
|
27 |
language_id => { type => 'integer' }, |
|
28 |
mtime => { type => 'timestamp' }, |
|
29 |
notes => { type => 'text' }, |
|
30 |
ordnumber => { type => 'text' }, |
|
31 |
oreqnumber => { type => 'text' }, |
|
32 |
payment_id => { type => 'integer' }, |
|
33 |
record_type => { type => 'enum', check_in => [ 'sales_delivery_order', 'purchase_delivery_order', 'supplier_delivery_order', 'rma_delivery_order' ], db_type => 'delivery_order_types', not_null => 1 }, |
|
34 |
reqdate => { type => 'date' }, |
|
35 |
salesman_id => { type => 'integer' }, |
|
36 |
shippingpoint => { type => 'text' }, |
|
37 |
shipto_id => { type => 'integer' }, |
|
38 |
shipvia => { type => 'text' }, |
|
39 |
tax_point => { type => 'date' }, |
|
40 |
taxincluded => { type => 'boolean' }, |
|
41 |
taxzone_id => { type => 'integer', not_null => 1 }, |
|
42 |
transaction_description => { type => 'text' }, |
|
43 |
transdate => { type => 'date', default => 'now()' }, |
|
44 |
vendor_id => { type => 'integer' }, |
|
12 |
billing_address_id => { type => 'integer' }, |
|
13 |
closed => { type => 'boolean', default => 'false' }, |
|
14 |
cp_id => { type => 'integer' }, |
|
15 |
currency_id => { type => 'integer', not_null => 1 }, |
|
16 |
cusordnumber => { type => 'text' }, |
|
17 |
customer_id => { type => 'integer' }, |
|
18 |
delivered => { type => 'boolean', default => 'false' }, |
|
19 |
delivery_term_id => { type => 'integer' }, |
|
20 |
department_id => { type => 'integer' }, |
|
21 |
donumber => { type => 'text', not_null => 1 }, |
|
22 |
employee_id => { type => 'integer' }, |
|
23 |
globalproject_id => { type => 'integer' }, |
|
24 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
25 |
intnotes => { type => 'text' }, |
|
26 |
itime => { type => 'timestamp', default => 'now()' }, |
|
27 |
language_id => { type => 'integer' }, |
|
28 |
mtime => { type => 'timestamp' }, |
|
29 |
notes => { type => 'text' }, |
|
30 |
ordnumber => { type => 'text' }, |
|
31 |
oreqnumber => { type => 'text' }, |
|
32 |
payment_id => { type => 'integer' }, |
|
33 |
record_type => { type => 'enum', check_in => [ 'sales_delivery_order', 'purchase_delivery_order', 'supplier_delivery_order', 'rma_delivery_order' ], db_type => 'delivery_order_types', not_null => 1 }, |
|
34 |
reqdate => { type => 'date' }, |
|
35 |
salesman_id => { type => 'integer' }, |
|
36 |
shippingpoint => { type => 'text' }, |
|
37 |
shipto_id => { type => 'integer' }, |
|
38 |
shipvia => { type => 'text' }, |
|
39 |
tax_point => { type => 'date' }, |
|
40 |
taxincluded => { type => 'boolean' }, |
|
41 |
taxzone_id => { type => 'integer', not_null => 1 }, |
|
42 |
transaction_description => { type => 'text' }, |
|
43 |
transdate => { type => 'date', default => 'now()' }, |
|
44 |
vendor_confirmation_number => { type => 'text' }, |
|
45 |
vendor_id => { type => 'integer' }, |
|
45 | 46 |
); |
46 | 47 |
|
47 | 48 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
SL/DB/MetaSetup/Order.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('oe'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
amount => { type => 'numeric', precision => 15, scale => 5 }, |
|
13 |
billing_address_id => { type => 'integer' }, |
|
14 |
closed => { type => 'boolean', default => 'false' }, |
|
15 |
cp_id => { type => 'integer' }, |
|
16 |
currency_id => { type => 'integer', not_null => 1 }, |
|
17 |
cusordnumber => { type => 'text' }, |
|
18 |
customer_id => { type => 'integer' }, |
|
19 |
delivered => { type => 'boolean', default => 'false' }, |
|
20 |
delivery_customer_id => { type => 'integer' }, |
|
21 |
delivery_term_id => { type => 'integer' }, |
|
22 |
delivery_vendor_id => { type => 'integer' }, |
|
23 |
department_id => { type => 'integer' }, |
|
24 |
employee_id => { type => 'integer' }, |
|
25 |
exchangerate => { type => 'numeric', precision => 15, scale => 5 }, |
|
26 |
expected_billing_date => { type => 'date' }, |
|
27 |
globalproject_id => { type => 'integer' }, |
|
28 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
29 |
intnotes => { type => 'text' }, |
|
30 |
itime => { type => 'timestamp', default => 'now()' }, |
|
31 |
language_id => { type => 'integer' }, |
|
32 |
marge_percent => { type => 'numeric', precision => 15, scale => 5 }, |
|
33 |
marge_total => { type => 'numeric', precision => 15, scale => 5 }, |
|
34 |
mtime => { type => 'timestamp' }, |
|
35 |
netamount => { type => 'numeric', precision => 15, scale => 5 }, |
|
36 |
notes => { type => 'text' }, |
|
37 |
order_probability => { type => 'integer', default => '0', not_null => 1 }, |
|
38 |
order_status_id => { type => 'integer' }, |
|
39 |
ordnumber => { type => 'text', not_null => 1 }, |
|
40 |
payment_id => { type => 'integer' }, |
|
41 |
proforma => { type => 'boolean', default => 'false' }, |
|
42 |
quonumber => { type => 'text' }, |
|
43 |
record_type => { type => 'enum', check_in => [ 'request_quotation', 'sales_quotation', 'purchase_quotation_intake', 'purchase_order', 'sales_order_intake', 'sales_order', 'purchase_order_confirmation' ], db_type => 'order_types', not_null => 1 }, |
|
44 |
reqdate => { type => 'date' }, |
|
45 |
salesman_id => { type => 'integer' }, |
|
46 |
shippingpoint => { type => 'text' }, |
|
47 |
shipto_id => { type => 'integer' }, |
|
48 |
shipvia => { type => 'text' }, |
|
49 |
tax_point => { type => 'date' }, |
|
50 |
taxincluded => { type => 'boolean' }, |
|
51 |
taxzone_id => { type => 'integer', not_null => 1 }, |
|
52 |
transaction_description => { type => 'text' }, |
|
53 |
transdate => { type => 'date', default => 'now' }, |
|
54 |
vendor_id => { type => 'integer' }, |
|
12 |
amount => { type => 'numeric', precision => 15, scale => 5 }, |
|
13 |
billing_address_id => { type => 'integer' }, |
|
14 |
closed => { type => 'boolean', default => 'false' }, |
|
15 |
cp_id => { type => 'integer' }, |
|
16 |
currency_id => { type => 'integer', not_null => 1 }, |
|
17 |
cusordnumber => { type => 'text' }, |
|
18 |
customer_id => { type => 'integer' }, |
|
19 |
delivered => { type => 'boolean', default => 'false' }, |
|
20 |
delivery_customer_id => { type => 'integer' }, |
|
21 |
delivery_term_id => { type => 'integer' }, |
|
22 |
delivery_vendor_id => { type => 'integer' }, |
|
23 |
department_id => { type => 'integer' }, |
|
24 |
employee_id => { type => 'integer' }, |
|
25 |
exchangerate => { type => 'numeric', precision => 15, scale => 5 }, |
|
26 |
expected_billing_date => { type => 'date' }, |
|
27 |
globalproject_id => { type => 'integer' }, |
|
28 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
29 |
intnotes => { type => 'text' }, |
|
30 |
itime => { type => 'timestamp', default => 'now()' }, |
|
31 |
language_id => { type => 'integer' }, |
|
32 |
marge_percent => { type => 'numeric', precision => 15, scale => 5 }, |
|
33 |
marge_total => { type => 'numeric', precision => 15, scale => 5 }, |
|
34 |
mtime => { type => 'timestamp' }, |
|
35 |
netamount => { type => 'numeric', precision => 15, scale => 5 }, |
|
36 |
notes => { type => 'text' }, |
|
37 |
order_probability => { type => 'integer', default => '0', not_null => 1 }, |
|
38 |
order_status_id => { type => 'integer' }, |
|
39 |
ordnumber => { type => 'text', not_null => 1 }, |
|
40 |
payment_id => { type => 'integer' }, |
|
41 |
proforma => { type => 'boolean', default => 'false' }, |
|
42 |
quonumber => { type => 'text' }, |
|
43 |
record_type => { type => 'enum', check_in => [ 'request_quotation', 'sales_quotation', 'purchase_quotation_intake', 'purchase_order', 'sales_order_intake', 'sales_order', 'purchase_order_confirmation' ], db_type => 'order_types', not_null => 1 }, |
|
44 |
reqdate => { type => 'date' }, |
|
45 |
salesman_id => { type => 'integer' }, |
|
46 |
shippingpoint => { type => 'text' }, |
|
47 |
shipto_id => { type => 'integer' }, |
|
48 |
shipvia => { type => 'text' }, |
|
49 |
tax_point => { type => 'date' }, |
|
50 |
taxincluded => { type => 'boolean' }, |
|
51 |
taxzone_id => { type => 'integer', not_null => 1 }, |
|
52 |
transaction_description => { type => 'text' }, |
|
53 |
transdate => { type => 'date', default => 'now' }, |
|
54 |
vendor_confirmation_number => { type => 'text' }, |
|
55 |
vendor_id => { type => 'integer' }, |
|
55 | 56 |
); |
56 | 57 |
|
57 | 58 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
sql/Pg-upgrade2/oe_delivery_orders_add_vendor_confirmation_number.sql | ||
---|---|---|
1 |
-- @tag: oe_delivery_orders_add_vendor_confirmation_number |
|
2 |
-- @description: Auftragsbestätigungs-Nummer des Lieferanten für Aufträge und Lieferscheine |
|
3 |
-- @depends: release_3_8_0 |
|
4 |
|
|
5 |
ALTER TABLE oe ADD COLUMN vendor_confirmation_number TEXT; |
|
6 |
ALTER TABLE delivery_orders ADD COLUMN vendor_confirmation_number TEXT; |
Auch abrufbar als: Unified diff
Lieferantenauftragsbestätigung: Bestätigungsnummer des Lieferanten (DB+Rose) …
… bei Aufträgen (oe) und Lieferscheinen