projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fremdschlüssel für Tabellen oe, delivery_orders, parts, translation
[kivitendo-erp.git]
/
SL
/
DB
/
InvoiceItem.pm
diff --git
a/SL/DB/InvoiceItem.pm
b/SL/DB/InvoiceItem.pm
index
1407c33
..
016f945
100644
(file)
--- a/
SL/DB/InvoiceItem.pm
+++ b/
SL/DB/InvoiceItem.pm
@@
-3,18
+3,15
@@
package SL::DB::InvoiceItem;
use strict;
use SL::DB::MetaSetup::InvoiceItem;
use strict;
use SL::DB::MetaSetup::InvoiceItem;
+use SL::DB::Helper::CustomVariables (
+ sub_module => 'invoice',
+ cvars_alias => 1,
+ overloads => {
+ parts_id => 'SL::DB::Part',
+ },
+);
__PACKAGE__->meta->add_relationship(
__PACKAGE__->meta->add_relationship(
- part => {
- type => 'one to one',
- class => 'SL::DB::Part',
- column_map => { parts_id => 'id' },
- },
- price_factor_obj => {
- type => 'one to one',
- class => 'SL::DB::PriceFactor',
- column_map => { price_factor_id => 'id' },
- },
unit_obj => {
type => 'one to one',
class => 'SL::DB::Unit',
unit_obj => {
type => 'one to one',
class => 'SL::DB::Unit',
@@
-27,4
+24,9
@@
__PACKAGE__->meta->make_manager_class;
__PACKAGE__->meta->initialize;
__PACKAGE__->meta->initialize;
+sub part {
+ # canonial alias for parts.
+ goto &parts;
+}
+
1;
1;