From: Moritz Bunkus Date: Tue, 1 Apr 2014 11:15:45 +0000 (+0200) Subject: Pflichtenhefte: Meta-Setups nach RDBO-Update neu gebaut X-Git-Tag: release-3.2.0beta~467^2~14 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7e0130b0bd535dfceba01fe3f4eb6a552ab464a7;p=kivitendo-erp.git Pflichtenhefte: Meta-Setups nach RDBO-Update neu gebaut --- diff --git a/SL/DB/MetaSetup/Customer.pm b/SL/DB/MetaSetup/Customer.pm index 1537bf6c3..ea5e3281b 100644 --- a/SL/DB/MetaSetup/Customer.pm +++ b/SL/DB/MetaSetup/Customer.pm @@ -33,7 +33,7 @@ __PACKAGE__->meta->columns( fax => { type => 'varchar', length => 30 }, greeting => { type => 'text' }, homepage => { type => 'text' }, - hourly_rate => { type => 'numeric', precision => 2, scale => 8 }, + hourly_rate => { type => 'numeric', precision => 8, scale => 2 }, iban => { type => 'varchar', length => 100 }, id => { type => 'integer', not_null => 1, sequence => 'id' }, itime => { type => 'timestamp', default => 'now()' }, diff --git a/SL/DB/MetaSetup/Default.pm b/SL/DB/MetaSetup/Default.pm index 942810c34..5242ccea7 100644 --- a/SL/DB/MetaSetup/Default.pm +++ b/SL/DB/MetaSetup/Default.pm @@ -28,7 +28,7 @@ __PACKAGE__->meta->columns( coa => { type => 'text' }, company => { type => 'text' }, currency_id => { type => 'integer', not_null => 1 }, - customer_hourly_rate => { type => 'numeric', precision => 2, scale => 8 }, + customer_hourly_rate => { type => 'numeric', precision => 8, scale => 2 }, customernumber => { type => 'text' }, datev_check_on_ap_transaction => { type => 'boolean', default => 'true' }, datev_check_on_ar_transaction => { type => 'boolean', default => 'true' }, diff --git a/SL/DB/MetaSetup/Project.pm b/SL/DB/MetaSetup/Project.pm index 9351a24b7..255cc93d8 100644 --- a/SL/DB/MetaSetup/Project.pm +++ b/SL/DB/MetaSetup/Project.pm @@ -11,7 +11,7 @@ __PACKAGE__->meta->table('project'); __PACKAGE__->meta->columns( active => { type => 'boolean', default => 'true' }, billable_customer_id => { type => 'integer' }, - budget_cost => { type => 'numeric', default => '0', not_null => 1, precision => 5, scale => 15 }, + budget_cost => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 }, budget_minutes => { type => 'integer', default => '0', not_null => 1 }, customer_id => { type => 'integer' }, description => { type => 'text' }, @@ -19,7 +19,7 @@ __PACKAGE__->meta->columns( id => { type => 'integer', not_null => 1, sequence => 'id' }, itime => { type => 'timestamp', default => 'now()' }, mtime => { type => 'timestamp' }, - order_value => { type => 'numeric', default => '0', not_null => 1, precision => 5, scale => 15 }, + order_value => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 }, project_status_id => { type => 'integer', not_null => 1 }, project_type_id => { type => 'integer', not_null => 1 }, projectnumber => { type => 'text' }, diff --git a/SL/DB/MetaSetup/ProjectParticipant.pm b/SL/DB/MetaSetup/ProjectParticipant.pm index 92dbd1a14..9058aa5d9 100644 --- a/SL/DB/MetaSetup/ProjectParticipant.pm +++ b/SL/DB/MetaSetup/ProjectParticipant.pm @@ -9,7 +9,7 @@ use base qw(SL::DB::Object); __PACKAGE__->meta->table('project_participants'); __PACKAGE__->meta->columns( - cost_per_hour => { type => 'numeric', precision => 5, scale => 15 }, + cost_per_hour => { type => 'numeric', precision => 15, scale => 5 }, employee_id => { type => 'integer', not_null => 1 }, id => { type => 'serial', not_null => 1 }, itime => { type => 'timestamp', default => 'now()' }, diff --git a/SL/DB/MetaSetup/ProjectPhase.pm b/SL/DB/MetaSetup/ProjectPhase.pm index a5fd71849..20df67630 100644 --- a/SL/DB/MetaSetup/ProjectPhase.pm +++ b/SL/DB/MetaSetup/ProjectPhase.pm @@ -9,11 +9,11 @@ use base qw(SL::DB::Object); __PACKAGE__->meta->table('project_phases'); __PACKAGE__->meta->columns( - budget_cost => { type => 'numeric', default => '0', not_null => 1, precision => 5, scale => 15 }, + budget_cost => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 }, budget_minutes => { type => 'integer', default => '0', not_null => 1 }, description => { type => 'text', not_null => 1 }, end_date => { type => 'date' }, - general_cost_per_hour => { type => 'numeric', default => '0', not_null => 1, precision => 5, scale => 15 }, + general_cost_per_hour => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 }, general_minutes => { type => 'integer', default => '0', not_null => 1 }, id => { type => 'serial', not_null => 1 }, itime => { type => 'timestamp', default => 'now()' }, diff --git a/SL/DB/MetaSetup/ProjectPhaseParticipant.pm b/SL/DB/MetaSetup/ProjectPhaseParticipant.pm index 837898032..73c0f04b9 100644 --- a/SL/DB/MetaSetup/ProjectPhaseParticipant.pm +++ b/SL/DB/MetaSetup/ProjectPhaseParticipant.pm @@ -9,7 +9,7 @@ use base qw(SL::DB::Object); __PACKAGE__->meta->table('project_phase_participants'); __PACKAGE__->meta->columns( - cost_per_hour => { type => 'numeric', precision => 5, scale => 15 }, + cost_per_hour => { type => 'numeric', precision => 15, scale => 5 }, employee_id => { type => 'integer', not_null => 1 }, id => { type => 'serial', not_null => 1 }, itime => { type => 'timestamp', default => 'now()' }, diff --git a/SL/DB/MetaSetup/ProjectStatus.pm b/SL/DB/MetaSetup/ProjectStatus.pm index 4162812f3..e7f4a4ca0 100644 --- a/SL/DB/MetaSetup/ProjectStatus.pm +++ b/SL/DB/MetaSetup/ProjectStatus.pm @@ -10,7 +10,7 @@ __PACKAGE__->meta->table('project_statuses'); __PACKAGE__->meta->columns( description => { type => 'text', not_null => 1 }, - id => { type => 'serial', not_null => 1 }, + id => { type => 'integer', not_null => 1, sequence => 'project_status_id_seq' }, itime => { type => 'timestamp', default => 'now()' }, mtime => { type => 'timestamp' }, name => { type => 'text', not_null => 1 }, diff --git a/SL/DB/MetaSetup/RequirementSpec.pm b/SL/DB/MetaSetup/RequirementSpec.pm index c13400c23..448816a88 100644 --- a/SL/DB/MetaSetup/RequirementSpec.pm +++ b/SL/DB/MetaSetup/RequirementSpec.pm @@ -10,7 +10,7 @@ __PACKAGE__->meta->table('requirement_specs'); __PACKAGE__->meta->columns( customer_id => { type => 'integer' }, - hourly_rate => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 8 }, + hourly_rate => { type => 'numeric', default => '0', not_null => 1, precision => 8, scale => 2 }, id => { type => 'serial', not_null => 1 }, is_template => { type => 'boolean', default => 'false' }, itime => { type => 'timestamp', default => 'now()' }, @@ -20,7 +20,7 @@ __PACKAGE__->meta->columns( previous_section_number => { type => 'integer', not_null => 1 }, project_id => { type => 'integer' }, status_id => { type => 'integer' }, - time_estimation => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 12 }, + time_estimation => { type => 'numeric', default => '0', not_null => 1, precision => 12, scale => 2 }, title => { type => 'text', not_null => 1 }, type_id => { type => 'integer' }, working_copy_id => { type => 'integer' }, diff --git a/SL/DB/MetaSetup/RequirementSpecItem.pm b/SL/DB/MetaSetup/RequirementSpecItem.pm index 63e4eecda..79c1ca0b2 100644 --- a/SL/DB/MetaSetup/RequirementSpecItem.pm +++ b/SL/DB/MetaSetup/RequirementSpecItem.pm @@ -24,7 +24,7 @@ __PACKAGE__->meta->columns( position => { type => 'integer', not_null => 1 }, requirement_spec_id => { type => 'integer', not_null => 1 }, risk_id => { type => 'integer' }, - time_estimation => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 12 }, + time_estimation => { type => 'numeric', default => '0', not_null => 1, precision => 12, scale => 2 }, title => { type => 'text' }, );