projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Inventory Helper: Allocation ausgelagert in eigene Datei
[kivitendo-erp.git]
/
SL
/
DB
/
MetaSetup
/
Buchungsgruppe.pm
diff --git
a/SL/DB/MetaSetup/Buchungsgruppe.pm
b/SL/DB/MetaSetup/Buchungsgruppe.pm
index
bda9c78
..
e89cb4b
100644
(file)
--- a/
SL/DB/MetaSetup/Buchungsgruppe.pm
+++ b/
SL/DB/MetaSetup/Buchungsgruppe.pm
@@
-4,26
+4,25
@@
package SL::DB::Buchungsgruppe;
use strict;
use strict;
-use
base
qw(SL::DB::Object);
+use
parent
qw(SL::DB::Object);
__PACKAGE__->meta->table('buchungsgruppen');
__PACKAGE__->meta->columns(
description => { type => 'text' },
__PACKAGE__->meta->table('buchungsgruppen');
__PACKAGE__->meta->columns(
description => { type => 'text' },
- expense_accno_id_0 => { type => 'integer' },
- expense_accno_id_1 => { type => 'integer' },
- expense_accno_id_2 => { type => 'integer' },
- expense_accno_id_3 => { type => 'integer' },
id => { type => 'integer', not_null => 1, sequence => 'id' },
id => { type => 'integer', not_null => 1, sequence => 'id' },
- income_accno_id_0 => { type => 'integer' },
- income_accno_id_1 => { type => 'integer' },
- income_accno_id_2 => { type => 'integer' },
- income_accno_id_3 => { type => 'integer' },
- inventory_accno_id => { type => 'integer' },
+ inventory_accno_id => { type => 'integer', not_null => 1 },
sortkey => { type => 'integer', not_null => 1 },
);
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
sortkey => { type => 'integer', not_null => 1 },
);
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
+__PACKAGE__->meta->foreign_keys(
+ inventory_accno => {
+ class => 'SL::DB::Chart',
+ key_columns => { inventory_accno_id => 'id' },
+ },
+);
+
1;
;
1;
;