From b3dcf24ac58f609c0d8a80c1e0bc83f545964da7 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Mon, 29 Jun 2015 13:09:46 +0200 Subject: [PATCH] =?utf8?q?Methode=20displayable=5Ftype=20auch=20f=C3=BCr?= =?utf8?q?=20Lieferscheine?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/DeliveryOrder.pm | 10 ++++++++++ locale/de/all | 2 ++ 2 files changed, 12 insertions(+) diff --git a/SL/DB/DeliveryOrder.pm b/SL/DB/DeliveryOrder.pm index 94725a8d0..7f12aae25 100644 --- a/SL/DB/DeliveryOrder.pm +++ b/SL/DB/DeliveryOrder.pm @@ -72,6 +72,16 @@ sub type { return shift->customer_id ? 'sales_delivery_order' : 'purchase_delivery_order'; } +sub displayable_type { + my $type = shift->type; + + return $::locale->text('Sales Delivery Order') if $type eq 'sales_delivery_order'; + return $::locale->text('Purchase Delivery Order') if $type eq 'purchase_delivery_order'; + + die 'invalid type'; +} + + sub displayable_state { my ($self) = @_; diff --git a/locale/de/all b/locale/de/all index 5c34e7676..3545b324b 100755 --- a/locale/de/all +++ b/locale/de/all @@ -2047,6 +2047,7 @@ $self->{texts} = { 'Proposal' => 'Vorschlag', 'Proposals' => 'Vorschläge', 'Prozentual/Absolut' => 'Prozentual/Absolut', + 'Purchase Delivery Order' => 'Einkaufslieferschein', 'Purchase Delivery Orders' => 'Einkaufslieferscheine', 'Purchase Delivery Orders deleteable' => 'Einkaufslieferscheine löschbar', 'Purchase Invoice' => 'Einkaufsrechnung', @@ -2228,6 +2229,7 @@ $self->{texts} = { 'Saldo neu' => 'Saldo neu', 'Saldo per' => 'Saldo per', 'Sale Prices' => 'Verkaufspreise', + 'Sales Delivery Order' => 'Verkaufslieferschein', 'Sales Delivery Orders' => 'Verkaufslieferscheine', 'Sales Delivery Orders deleteable' => 'Verkaufslieferscheine löschbar', 'Sales Invoice' => 'Rechnung', -- 2.20.1