From: Moritz Bunkus Date: Wed, 12 Jan 2011 14:53:34 +0000 (+0100) Subject: Sub-Aliase 'items' auf 'orderitems' bzw. 'invoiceitems' zur späteren Verwendung eines... X-Git-Tag: release-2.6.3~61^2~7^2~1^2~2^2~80 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4ac74078e265ea321464c4cbd446a55c373c936a;p=kivitendo-erp.git Sub-Aliase 'items' auf 'orderitems' bzw. 'invoiceitems' zur späteren Verwendung eines Mixins Conflicts: SL/DB/DeliveryOrder.pm SL/DB/PurchaseInvoice.pm --- diff --git a/SL/DB/DeliveryOrder.pm b/SL/DB/DeliveryOrder.pm index b5bdcb413..15d849aab 100644 --- a/SL/DB/DeliveryOrder.pm +++ b/SL/DB/DeliveryOrder.pm @@ -19,6 +19,8 @@ __PACKAGE__->meta->initialize; # methods +sub items { goto &orderitems; } + sub sales_order { my $self = shift; my %params = @_; diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index 993920c01..cb366727e 100644 --- a/SL/DB/Invoice.pm +++ b/SL/DB/Invoice.pm @@ -25,6 +25,8 @@ __PACKAGE__->meta->initialize; # methods +sub items { goto &invoiceitems; } + # it is assumed, that ordnumbers are unique here. sub first_order_by_ordnumber { my $self = shift; diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index 8d321661d..864da21ef 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -34,6 +34,8 @@ __PACKAGE__->meta->initialize; # methods +sub items { goto &orderitems; } + sub type { my $self = shift; diff --git a/SL/DB/PurchaseInvoice.pm b/SL/DB/PurchaseInvoice.pm index a06a3b639..b73066e20 100644 --- a/SL/DB/PurchaseInvoice.pm +++ b/SL/DB/PurchaseInvoice.pm @@ -14,4 +14,6 @@ __PACKAGE__->meta->add_relationship(invoiceitems => { type => 'one to ma __PACKAGE__->meta->initialize; +sub items { goto &invoiceitems; } + 1;