console - shortcut for purchase_invoice
authorG. Richardson <information@kivitendo-premium.de>
Fri, 5 Dec 2014 07:42:25 +0000 (08:42 +0100)
committerG. Richardson <information@kivitendo-premium.de>
Thu, 11 Dec 2014 06:02:44 +0000 (07:02 +0100)
scripts/console

index f7b0a0e..01a6db9 100755 (executable)
@@ -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(@_)