projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b067e97
)
console - shortcut for purchase_invoice
author
G. Richardson
<information@kivitendo-premium.de>
Fri, 5 Dec 2014 07:42:25 +0000
(08:42 +0100)
committer
G. Richardson
<information@kivitendo-premium.de>
Thu, 11 Dec 2014 06:02:44 +0000
(07:02 +0100)
scripts/console
patch
|
blob
|
history
diff --git
a/scripts/console
b/scripts/console
index
f7b0a0e
..
01a6db9
100755
(executable)
--- 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(@_)