__PACKAGE__->meta->columns(
acc_trans_id => { type => 'bigint', not_null => 1, sequence => 'acc_trans_id_seq' },
- amount => { type => 'numeric', precision => 5, scale => 15 },
+ amount => { type => 'numeric', precision => 15, scale => 5 },
cb_transaction => { type => 'boolean', default => 'false', not_null => 1 },
chart_id => { type => 'integer', not_null => 1 },
chart_link => { type => 'text', not_null => 1 },
itime => { type => 'timestamp', default => 'now()' },
mtime => { type => 'timestamp' },
parts_id => { type => 'integer' },
- qty => { type => 'float', precision => 4 },
+ qty => { type => 'float', scale => 4 },
);
__PACKAGE__->meta->primary_key_columns([ 'assembly_id' ]);
__PACKAGE__->meta->columns(
customernumberinit => { type => 'text' },
description => { type => 'text' },
- discount => { type => 'float', precision => 4 },
+ discount => { type => 'float', scale => 4 },
id => { type => 'integer', not_null => 1, sequence => 'id' },
itime => { type => 'timestamp', default => 'now()' },
mtime => { type => 'timestamp' },
id => { type => 'integer', not_null => 1, sequence => 'custom_variables_id' },
itime => { type => 'timestamp', default => 'now()' },
mtime => { type => 'timestamp' },
- number_value => { type => 'numeric', precision => 5, scale => 25 },
+ number_value => { type => 'numeric', precision => 25, scale => 5 },
sub_module => { type => 'text', default => '', not_null => 1 },
text_value => { type => 'text' },
timestamp_value => { type => 'timestamp' },
city => { type => 'varchar', length => 75 },
contact => { type => 'text' },
country => { type => 'varchar', length => 75 },
- creditlimit => { type => 'numeric', default => '0', precision => 5, scale => 15 },
+ creditlimit => { type => 'numeric', default => '0', precision => 15, scale => 5 },
currency_id => { type => 'integer', not_null => 1 },
customernumber => { type => 'text' },
delivery_term_id => { type => 'integer' },
department_2 => { type => 'varchar', length => 75 },
depositor => { type => 'text' },
direct_debit => { type => 'boolean', default => 'false' },
- discount => { type => 'float', precision => 4 },
+ discount => { type => 'float', scale => 4 },
email => { type => 'text' },
fax => { type => 'varchar', length => 30 },
greeting => { type => 'text' },
__PACKAGE__->meta->table('delivery_order_items');
__PACKAGE__->meta->columns(
- base_qty => { type => 'float', precision => 4 },
+ base_qty => { type => 'float', scale => 4 },
cusordnumber => { type => 'text' },
delivery_order_id => { type => 'integer', not_null => 1 },
description => { type => 'text' },
- discount => { type => 'float', precision => 4 },
+ discount => { type => 'float', scale => 4 },
id => { type => 'integer', not_null => 1, sequence => 'delivery_order_items_id' },
itime => { type => 'timestamp', default => 'now()' },
- lastcost => { type => 'numeric', precision => 5, scale => 15 },
+ lastcost => { type => 'numeric', precision => 15, scale => 5 },
longdescription => { type => 'text' },
- marge_price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 },
+ marge_price_factor => { type => 'numeric', default => 1, precision => 15, scale => 5 },
mtime => { type => 'timestamp' },
ordnumber => { type => 'text' },
parts_id => { type => 'integer', not_null => 1 },
- price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 },
+ price_factor => { type => 'numeric', default => 1, precision => 15, scale => 5 },
price_factor_id => { type => 'integer' },
pricegroup_id => { type => 'integer' },
project_id => { type => 'integer' },
- qty => { type => 'numeric', precision => 5, scale => 25 },
+ qty => { type => 'numeric', precision => 25, scale => 5 },
reqdate => { type => 'date' },
- sellprice => { type => 'numeric', precision => 5, scale => 15 },
+ sellprice => { type => 'numeric', precision => 15, scale => 5 },
serialnumber => { type => 'text' },
transdate => { type => 'text' },
unit => { type => 'varchar', length => 20 },
id => { type => 'integer', not_null => 1, sequence => 'id' },
itime => { type => 'timestamp', default => 'now()' },
mtime => { type => 'timestamp' },
- qty => { type => 'numeric', not_null => 1, precision => 5, scale => 15 },
+ qty => { type => 'numeric', not_null => 1, precision => 15, scale => 5 },
unit => { type => 'varchar', length => 20, not_null => 1 },
warehouse_id => { type => 'integer', not_null => 1 },
);
dunning_config_id => { type => 'integer' },
dunning_id => { type => 'integer' },
dunning_level => { type => 'integer' },
- fee => { type => 'numeric', precision => 5, scale => 15 },
+ fee => { type => 'numeric', precision => 15, scale => 5 },
fee_interest_ar_id => { type => 'integer' },
id => { type => 'integer', not_null => 1, sequence => 'id' },
- interest => { type => 'numeric', precision => 5, scale => 15 },
+ interest => { type => 'numeric', precision => 15, scale => 5 },
itime => { type => 'timestamp', default => 'now()' },
mtime => { type => 'timestamp' },
trans_id => { type => 'integer' },
email_attachment => { type => 'boolean' },
email_body => { type => 'text' },
email_subject => { type => 'text' },
- fee => { type => 'numeric', precision => 5, scale => 15 },
+ fee => { type => 'numeric', precision => 15, scale => 5 },
id => { type => 'integer', not_null => 1, sequence => 'id' },
- interest_rate => { type => 'numeric', precision => 5, scale => 15 },
+ interest_rate => { type => 'numeric', precision => 15, scale => 5 },
payment_terms => { type => 'integer' },
template => { type => 'text' },
terms => { type => 'integer' },
__PACKAGE__->meta->table('exchangerate');
__PACKAGE__->meta->columns(
- buy => { type => 'numeric', precision => 5, scale => 15 },
+ buy => { type => 'numeric', precision => 15, scale => 5 },
currency_id => { type => 'integer', not_null => 1 },
id => { type => 'serial', not_null => 1 },
itime => { type => 'timestamp', default => 'now()' },
mtime => { type => 'timestamp' },
- sell => { type => 'numeric', precision => 5, scale => 15 },
+ sell => { type => 'numeric', precision => 15, scale => 5 },
transdate => { type => 'date' },
);
orderitems_id => { type => 'integer' },
parts_id => { type => 'integer', not_null => 1 },
project_id => { type => 'integer' },
- qty => { type => 'numeric', precision => 5, scale => 25 },
+ qty => { type => 'numeric', precision => 25, scale => 5 },
shippingdate => { type => 'date' },
trans_id => { type => 'integer', not_null => 1 },
trans_type_id => { type => 'integer', not_null => 1 },
__PACKAGE__->meta->table('ar');
__PACKAGE__->meta->columns(
- amount => { type => 'numeric', precision => 5, scale => 15 },
+ amount => { type => 'numeric', precision => 15, scale => 5 },
cp_id => { type => 'integer' },
currency_id => { type => 'integer', not_null => 1 },
cusordnumber => { type => 'text' },
invoice => { type => 'boolean', default => 'false' },
itime => { type => 'timestamp', default => 'now()' },
language_id => { type => 'integer' },
- marge_percent => { type => 'numeric', precision => 5, scale => 15 },
- marge_total => { type => 'numeric', precision => 5, scale => 15 },
+ marge_percent => { type => 'numeric', precision => 15, scale => 5 },
+ marge_total => { type => 'numeric', precision => 15, scale => 5 },
mtime => { type => 'timestamp' },
- netamount => { type => 'numeric', precision => 5, scale => 15 },
+ netamount => { type => 'numeric', precision => 15, scale => 5 },
notes => { type => 'text' },
orddate => { type => 'date' },
ordnumber => { type => 'text' },
- paid => { type => 'numeric', precision => 5, scale => 15 },
+ paid => { type => 'numeric', precision => 15, scale => 5 },
payment_id => { type => 'integer' },
quodate => { type => 'date' },
quonumber => { type => 'text' },
__PACKAGE__->meta->table('invoice');
__PACKAGE__->meta->columns(
- allocated => { type => 'float', precision => 4 },
+ allocated => { type => 'float', scale => 4 },
assemblyitem => { type => 'boolean', default => 'false' },
- base_qty => { type => 'float', precision => 4 },
+ base_qty => { type => 'float', scale => 4 },
cusordnumber => { type => 'text' },
deliverydate => { type => 'date' },
description => { type => 'text' },
- discount => { type => 'float', precision => 4 },
- fxsellprice => { type => 'numeric', precision => 5, scale => 15 },
+ discount => { type => 'float', scale => 4 },
+ fxsellprice => { type => 'numeric', precision => 15, scale => 5 },
id => { type => 'integer', not_null => 1, sequence => 'invoiceid' },
itime => { type => 'timestamp', default => 'now()' },
- lastcost => { type => 'numeric', precision => 5, scale => 15 },
+ lastcost => { type => 'numeric', precision => 15, scale => 5 },
longdescription => { type => 'text' },
- marge_percent => { type => 'numeric', precision => 5, scale => 15 },
- marge_price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 },
- marge_total => { type => 'numeric', precision => 5, scale => 15 },
+ marge_percent => { type => 'numeric', precision => 15, scale => 5 },
+ marge_price_factor => { type => 'numeric', default => 1, precision => 15, scale => 5 },
+ marge_total => { type => 'numeric', precision => 15, scale => 5 },
mtime => { type => 'timestamp' },
ordnumber => { type => 'text' },
parts_id => { type => 'integer' },
- price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 },
+ price_factor => { type => 'numeric', default => 1, precision => 15, scale => 5 },
price_factor_id => { type => 'integer' },
pricegroup_id => { type => 'integer' },
project_id => { type => 'integer' },
- qty => { type => 'float', precision => 4 },
- sellprice => { type => 'numeric', precision => 5, scale => 15 },
+ qty => { type => 'float', scale => 4 },
+ sellprice => { type => 'numeric', precision => 15, scale => 5 },
serialnumber => { type => 'text' },
subtotal => { type => 'boolean', default => 'false' },
trans_id => { type => 'integer' },
__PACKAGE__->meta->columns(
id => { type => 'serial', not_null => 1 },
itime => { type => 'timestamp', default => 'now()' },
- lastcost => { type => 'numeric', precision => 5, scale => 15 },
+ lastcost => { type => 'numeric', precision => 15, scale => 5 },
lastupdate => { type => 'date' },
make => { type => 'integer' },
model => { type => 'text' },
__PACKAGE__->meta->table('oe');
__PACKAGE__->meta->columns(
- amount => { type => 'numeric', precision => 5, scale => 15 },
+ amount => { type => 'numeric', precision => 15, scale => 5 },
closed => { type => 'boolean', default => 'false' },
cp_id => { type => 'integer' },
currency_id => { type => 'integer', not_null => 1 },
intnotes => { type => 'text' },
itime => { type => 'timestamp', default => 'now()' },
language_id => { type => 'integer' },
- marge_percent => { type => 'numeric', precision => 5, scale => 15 },
- marge_total => { type => 'numeric', precision => 5, scale => 15 },
+ marge_percent => { type => 'numeric', precision => 15, scale => 5 },
+ marge_total => { type => 'numeric', precision => 15, scale => 5 },
mtime => { type => 'timestamp' },
- netamount => { type => 'numeric', precision => 5, scale => 15 },
+ netamount => { type => 'numeric', precision => 15, scale => 5 },
notes => { type => 'text' },
ordnumber => { type => 'text', not_null => 1 },
payment_id => { type => 'integer' },
__PACKAGE__->meta->table('orderitems');
__PACKAGE__->meta->columns(
- base_qty => { type => 'float', precision => 4 },
+ base_qty => { type => 'float', scale => 4 },
cusordnumber => { type => 'text' },
description => { type => 'text' },
- discount => { type => 'float', precision => 4 },
+ discount => { type => 'float', scale => 4 },
id => { type => 'integer', not_null => 1, sequence => 'orderitemsid' },
itime => { type => 'timestamp', default => 'now()' },
- lastcost => { type => 'numeric', precision => 5, scale => 15 },
+ lastcost => { type => 'numeric', precision => 15, scale => 5 },
longdescription => { type => 'text' },
- marge_percent => { type => 'numeric', precision => 5, scale => 15 },
- marge_price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 },
- marge_total => { type => 'numeric', precision => 5, scale => 15 },
+ marge_percent => { type => 'numeric', precision => 15, scale => 5 },
+ marge_price_factor => { type => 'numeric', default => 1, precision => 15, scale => 5 },
+ marge_total => { type => 'numeric', precision => 15, scale => 5 },
mtime => { type => 'timestamp' },
ordnumber => { type => 'text' },
parts_id => { type => 'integer' },
- price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 },
+ price_factor => { type => 'numeric', default => 1, precision => 15, scale => 5 },
price_factor_id => { type => 'integer' },
pricegroup_id => { type => 'integer' },
project_id => { type => 'integer' },
- qty => { type => 'float', precision => 4 },
+ qty => { type => 'float', scale => 4 },
reqdate => { type => 'date' },
- sellprice => { type => 'numeric', precision => 5, scale => 15 },
+ sellprice => { type => 'numeric', precision => 15, scale => 5 },
serialnumber => { type => 'text' },
- ship => { type => 'float', precision => 4 },
+ ship => { type => 'float', scale => 4 },
subtotal => { type => 'boolean', default => 'false' },
trans_id => { type => 'integer' },
transdate => { type => 'text' },
ean => { type => 'text' },
expense_accno_id => { type => 'integer' },
formel => { type => 'text' },
- gv => { type => 'numeric', precision => 5, scale => 15 },
+ gv => { type => 'numeric', precision => 15, scale => 5 },
has_sernumber => { type => 'boolean', default => 'false' },
id => { type => 'integer', not_null => 1, sequence => 'id' },
image => { type => 'text' },
income_accno_id => { type => 'integer' },
inventory_accno_id => { type => 'integer' },
itime => { type => 'timestamp', default => 'now()' },
- lastcost => { type => 'numeric', precision => 5, scale => 15 },
- listprice => { type => 'numeric', precision => 5, scale => 15 },
+ lastcost => { type => 'numeric', precision => 15, scale => 5 },
+ listprice => { type => 'numeric', precision => 15, scale => 5 },
makemodel => { type => 'boolean', default => 'false' },
microfiche => { type => 'text' },
mtime => { type => 'timestamp' },
not_discountable => { type => 'boolean', default => 'false' },
notes => { type => 'text' },
obsolete => { type => 'boolean', default => 'false' },
- onhand => { type => 'numeric', default => '0', precision => 5, scale => 25 },
+ onhand => { type => 'numeric', default => '0', precision => 25, scale => 5 },
partnumber => { type => 'text', not_null => 1 },
partsgroup_id => { type => 'integer' },
payment_id => { type => 'integer' },
price_factor_id => { type => 'integer' },
priceupdate => { type => 'date', default => 'now' },
- rop => { type => 'float', precision => 4 },
- sellprice => { type => 'numeric', precision => 5, scale => 15 },
+ rop => { type => 'float', scale => 4 },
+ sellprice => { type => 'numeric', precision => 15, scale => 5 },
shop => { type => 'boolean', default => 'false' },
stockable => { type => 'boolean', default => 'false' },
unit => { type => 'varchar', length => 20, not_null => 1 },
ve => { type => 'integer' },
warehouse_id => { type => 'integer' },
- weight => { type => 'float', precision => 4 },
+ weight => { type => 'float', scale => 4 },
);
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
id => { type => 'integer', not_null => 1, sequence => 'id' },
itime => { type => 'timestamp', default => 'now()' },
mtime => { type => 'timestamp' },
- percent_skonto => { type => 'float', precision => 4 },
+ percent_skonto => { type => 'float', scale => 4 },
ranking => { type => 'integer' },
sortkey => { type => 'integer', not_null => 1 },
terms_netto => { type => 'integer' },
__PACKAGE__->meta->columns(
id => { type => 'serial', not_null => 1 },
parts_id => { type => 'integer' },
- price => { type => 'numeric', precision => 5, scale => 15 },
+ price => { type => 'numeric', precision => 15, scale => 5 },
pricegroup_id => { type => 'integer' },
);
__PACKAGE__->meta->columns(
description => { type => 'text' },
- factor => { type => 'numeric', precision => 5, scale => 15 },
+ factor => { type => 'numeric', precision => 15, scale => 5 },
id => { type => 'integer', not_null => 1, sequence => 'id' },
sortkey => { type => 'integer' },
);
__PACKAGE__->meta->table('ap');
__PACKAGE__->meta->columns(
- amount => { type => 'numeric', precision => 5, scale => 15 },
+ amount => { type => 'numeric', precision => 15, scale => 5 },
cp_id => { type => 'integer' },
currency_id => { type => 'integer', not_null => 1 },
datepaid => { type => 'date' },
itime => { type => 'timestamp', default => 'now()' },
language_id => { type => 'integer' },
mtime => { type => 'timestamp' },
- netamount => { type => 'numeric', precision => 5, scale => 15 },
+ netamount => { type => 'numeric', precision => 15, scale => 5 },
notes => { type => 'text' },
orddate => { type => 'date' },
ordnumber => { type => 'text' },
- paid => { type => 'numeric', precision => 5, scale => 15 },
+ paid => { type => 'numeric', precision => 15, scale => 5 },
payment_id => { type => 'integer' },
quodate => { type => 'date' },
quonumber => { type => 'text' },
__PACKAGE__->meta->table('sepa_export_items');
__PACKAGE__->meta->columns(
- amount => { type => 'numeric', precision => 5, scale => 25 },
+ amount => { type => 'numeric', precision => 25, scale => 5 },
ap_id => { type => 'integer' },
ar_id => { type => 'integer' },
chart_id => { type => 'integer', not_null => 1 },
id => { type => 'integer', not_null => 1, sequence => 'id' },
itime => { type => 'timestamp', default => 'now()' },
mtime => { type => 'timestamp' },
- rate => { type => 'numeric', default => '0', not_null => 1, precision => 5, scale => 15 },
+ rate => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
taxdescription => { type => 'text', not_null => 1 },
taxkey => { type => 'integer', not_null => 1 },
taxnumber => { type => 'text' },
__PACKAGE__->meta->columns(
base_unit => { type => 'varchar', length => 20 },
- factor => { type => 'numeric', precision => 5, scale => 20 },
+ factor => { type => 'numeric', precision => 20, scale => 5 },
id => { type => 'serial', not_null => 1 },
name => { type => 'varchar', length => 20, not_null => 1 },
sortkey => { type => 'integer', not_null => 1 },
city => { type => 'varchar', length => 75 },
contact => { type => 'varchar', length => 75 },
country => { type => 'varchar', length => 75 },
- creditlimit => { type => 'numeric', precision => 5, scale => 15 },
+ creditlimit => { type => 'numeric', precision => 15, scale => 5 },
currency_id => { type => 'integer', not_null => 1 },
delivery_term_id => { type => 'integer' },
department_1 => { type => 'varchar', length => 75 },
department_2 => { type => 'varchar', length => 75 },
depositor => { type => 'text' },
direct_debit => { type => 'boolean', default => 'false' },
- discount => { type => 'float', precision => 4 },
+ discount => { type => 'float', scale => 4 },
email => { type => 'text' },
fax => { type => 'varchar', length => 30 },
greeting => { type => 'text' },