From: Sven Schöling Date: Tue, 13 Sep 2011 15:06:44 +0000 (+0200) Subject: tabelle invoice <-> InvoiceItem. X-Git-Tag: release-2.7.0beta1~306 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1b65e282f1ef2e45b0c7aa8027b8d9ec8a7c2816;p=kivitendo-erp.git tabelle invoice <-> InvoiceItem. --- diff --git a/SL/DB/DeliveryOrderItem.pm b/SL/DB/DeliveryOrderItem.pm index fbab5ef05..e832ddb7c 100644 --- a/SL/DB/DeliveryOrderItem.pm +++ b/SL/DB/DeliveryOrderItem.pm @@ -4,7 +4,7 @@ use strict; use SL::DB::MetaSetup::DeliveryOrderItem; use SL::DB::Helper::CustomVariables ( - sub_module => 'orderitems', + sub_module => 'delivery_order_item', cvars_alias => 1, overloads => { parts_id => 'SL::DB::Part', diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index 0b7caa49d..91ee14c85 100644 --- a/SL/DB/Invoice.pm +++ b/SL/DB/Invoice.pm @@ -15,13 +15,6 @@ use SL::DB::Helper::LinkedRecords; use SL::DB::Helper::PriceTaxCalculator; use SL::DB::Helper::PriceUpdater; use SL::DB::Helper::TransNumberGenerator; -use SL::DB::Helper::CustomVariables ( - sub_module => 'orderitems', - cvars_alias => 1, - overloads => { - parts_id => 'SL::DB::Part', - }, -); use SL::DB::AccTransaction; use SL::DB::Chart; use SL::DB::Employee; diff --git a/SL/DB/InvoiceItem.pm b/SL/DB/InvoiceItem.pm index 1407c3334..44c121e94 100644 --- 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 SL::DB::Helper::CustomVariables ( + sub_module => 'invoice', + cvars_alias => 1, + overloads => { + parts_id => 'SL::DB::Part', + }, +); __PACKAGE__->meta->add_relationship( part => {