From: G. Richardson Date: Mon, 29 Jun 2015 11:08:48 +0000 (+0200) Subject: Einheitliche Methode record_number für ar/ap/oe/do Objekte X-Git-Tag: release-3.3.0beta~31^2~47 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4f7e0fa978ada8d8a1e49bfcdfcb232f2608764a;p=kivitendo-erp.git Einheitliche Methode record_number für ar/ap/oe/do Objekte entspricht jeweils invnumber/ordnumber/donumber --- 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;