From 3bcd9c94d455e35473e2def86e67568b5c262d0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 5 Dec 2014 17:03:45 +0100 Subject: [PATCH] PriceSource: record objekte im Einkauf korrekt bauen --- SL/Controller/PriceSource.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/Controller/PriceSource.pm b/SL/Controller/PriceSource.pm index 6e33285de..ab74da015 100644 --- a/SL/Controller/PriceSource.pm +++ b/SL/Controller/PriceSource.pm @@ -72,7 +72,7 @@ sub _make_record_item { my $class = { sales_order => 'OrderItem', - purchase_oder => 'OrderItem', + purchase_order => 'OrderItem', sales_quotation => 'OrderItem', request_quotation => 'OrderItem', invoice => 'InvoiceItem', @@ -117,6 +117,8 @@ sub _make_record { purchase_oder => 'Order', sales_quotation => 'Order', request_quotation => 'Order', + invoice => 'Invoice', + purchase_invoice => 'PurchaseInvoice', purchase_delivery_order => 'DeliveryOrder', sales_delivery_order => 'DeliveryOrder', }->{$::form->{type}}; -- 2.20.1