projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CSV-Kunden-/Lieferantenimport: Verwendung von TransNumber zur Erzeugung von Nummern
[kivitendo-erp.git]
/
SL
/
DB
/
InvoiceItem.pm
diff --git
a/SL/DB/InvoiceItem.pm
b/SL/DB/InvoiceItem.pm
index
04b28a1
..
44c121e
100644
(file)
--- a/
SL/DB/InvoiceItem.pm
+++ b/
SL/DB/InvoiceItem.pm
@@
-3,6
+3,13
@@
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(
part => {
__PACKAGE__->meta->add_relationship(
part => {
@@
-15,6
+22,11
@@
__PACKAGE__->meta->add_relationship(
class => 'SL::DB::PriceFactor',
column_map => { price_factor_id => 'id' },
},
class => 'SL::DB::PriceFactor',
column_map => { price_factor_id => 'id' },
},
+ unit_obj => {
+ type => 'one to one',
+ class => 'SL::DB::Unit',
+ column_map => { unit => 'name' },
+ },
);
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
);
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.