From: Sven Schöling Date: Mon, 1 Nov 2010 10:56:14 +0000 (+0100) Subject: Inventory: alias parts -> part X-Git-Tag: release-2.7.0beta1~192 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=719696e44520cdb0c39844a93672bfef7faa0b6c;p=kivitendo-erp.git Inventory: alias parts -> part Rose legt den parts accessor automatisch an, weil die Datenbankspalte parts_id heisst, part ist aber sinnvoller. --- diff --git a/SL/DB/Inventory.pm b/SL/DB/Inventory.pm index 98d505d70..42238dd15 100644 --- a/SL/DB/Inventory.pm +++ b/SL/DB/Inventory.pm @@ -10,4 +10,9 @@ use SL::DB::MetaSetup::Inventory; # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; +# part accessor is badly named +sub part { + goto &parts; +} + 1;