From 1b65e282f1ef2e45b0c7aa8027b8d9ec8a7c2816 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 13 Sep 2011 17:06:44 +0200 Subject: [PATCH] tabelle invoice <-> InvoiceItem. --- SL/DB/DeliveryOrderItem.pm | 2 +- SL/DB/Invoice.pm | 7 ------- SL/DB/InvoiceItem.pm | 7 +++++++ 3 files changed, 8 insertions(+), 8 deletions(-) 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 => { -- 2.20.1