From: G. Richardson Date: Fri, 5 Dec 2014 07:42:25 +0000 (+0100) Subject: console - shortcut for purchase_invoice X-Git-Tag: release-3.2.0beta~193 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3f556b7844422ede1f0e49951009caf534420a6b;p=kivitendo-erp.git console - shortcut for purchase_invoice --- diff --git a/scripts/console b/scripts/console index f7b0a0e89..01a6db982 100755 --- a/scripts/console +++ b/scripts/console @@ -162,6 +162,7 @@ Spezielle Kommandos: part - shortcuts auf die jeweilige SL::DB::{...}::find_by customer, vendor, order, invoice, + purchase_invoice, chart EOL @@ -227,6 +228,11 @@ sub invoice { SL::DB::Manager::Invoice->find_by(@_) } +sub purchase_invoice { + require SL::DB::PurchaseInvoice; + SL::DB::Manager::PurchaseInvoice->find_by(@_) +} + sub customer { require SL::DB::Customer; SL::DB::Manager::Customer->find_by(@_)