projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pflichtenhefte: Auflisten von Abschnitten
[kivitendo-erp.git]
/
SL
/
DB
/
PurchaseInvoice.pm
diff --git
a/SL/DB/PurchaseInvoice.pm
b/SL/DB/PurchaseInvoice.pm
index
01885e7
..
2457cde
100644
(file)
--- a/
SL/DB/PurchaseInvoice.pm
+++ b/
SL/DB/PurchaseInvoice.pm
@@
-23,6
+23,12
@@
__PACKAGE__->meta->add_relationship(
column_map => { id => 'ap_id' },
manager_args => { with_objects => [ 'sepa_export' ] }
},
column_map => { id => 'ap_id' },
manager_args => { with_objects => [ 'sepa_export' ] }
},
+ custom_shipto => {
+ type => 'one to one',
+ class => 'SL::DB::Shipto',
+ column_map => { id => 'trans_id' },
+ query_args => [ module => 'AP' ],
+ },
);
__PACKAGE__->meta->initialize;
);
__PACKAGE__->meta->initialize;
@@
-32,8
+38,7
@@
sub items { goto &invoiceitems; }
sub items_sorted {
my ($self) = @_;
sub items_sorted {
my ($self) = @_;
- my @sorted = sort {$a->id <=> $b->id } @{ $self->items };
- return wantarray ? @sorted : \@sorted;
+ return [ sort {$a->id <=> $b->id } @{ $self->items } ];
}
sub is_sales {
}
sub is_sales {