From 4f7e0fa978ada8d8a1e49bfcdfcb232f2608764a Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Mon, 29 Jun 2015 13:08:48 +0200 Subject: [PATCH] =?utf8?q?Einheitliche=20Methode=20record=5Fnumber=20f?= =?utf8?q?=C3=BCr=20ar/ap/oe/do=20Objekte?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit entspricht jeweils invnumber/ordnumber/donumber --- SL/DB/DeliveryOrder.pm | 1 + SL/DB/Invoice.pm | 1 + SL/DB/Order.pm | 1 + 3 files changed, 3 insertions(+) diff --git a/SL/DB/DeliveryOrder.pm b/SL/DB/DeliveryOrder.pm index 7f12aae25..15ceb5ddb 100644 --- a/SL/DB/DeliveryOrder.pm +++ b/SL/DB/DeliveryOrder.pm @@ -51,6 +51,7 @@ sub _before_save_set_donumber { sub items { goto &orderitems; } sub add_items { goto &add_orderitems; } sub payment_terms { goto &payment; } +sub record_number { goto &donumber; } sub sales_order { my $self = shift; diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index 8bfc918e8..5456a376b 100644 --- a/SL/DB/Invoice.pm +++ b/SL/DB/Invoice.pm @@ -77,6 +77,7 @@ sub _before_save_set_invnumber { sub items { goto &invoiceitems; } sub add_items { goto &add_invoiceitems; } +sub record_number { goto &invnumber; }; sub is_sales { # For compatibility with Order, DeliveryOrder diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index f73e32ca0..fe0571fae 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -67,6 +67,7 @@ sub _before_save_set_ord_quo_number { sub items { goto &orderitems; } sub add_items { goto &add_orderitems; } +sub record_number { goto &number; } sub type { my $self = shift; -- 2.20.1