projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of https://github.com/kivitendo/kivitendo-erp
[kivitendo-erp.git]
/
SL
/
DB
/
PurchaseInvoice.pm
diff --git
a/SL/DB/PurchaseInvoice.pm
b/SL/DB/PurchaseInvoice.pm
index
f74ee19
..
61d9355
100644
(file)
--- a/
SL/DB/PurchaseInvoice.pm
+++ b/
SL/DB/PurchaseInvoice.pm
@@
-29,6
+29,12
@@
__PACKAGE__->meta->initialize;
sub items { goto &invoiceitems; }
+sub items_sorted {
+ my ($self) = @_;
+
+ return [ sort {$a->id <=> $b->id } @{ $self->items } ];
+}
+
sub is_sales {
# For compatibility with Order, DeliveryOrder
croak 'not an accessor' if @_ > 1;