projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OrderController Sortierung berichtigt. Sort::Naturally hat auch nicht
[kivitendo-erp.git]
/
SL
/
DB
/
Invoice.pm
diff --git
a/SL/DB/Invoice.pm
b/SL/DB/Invoice.pm
index
44b81df
..
d6ec6c8
100644
(file)
--- a/
SL/DB/Invoice.pm
+++ b/
SL/DB/Invoice.pm
@@
-60,6
+60,12
@@
__PACKAGE__->meta->add_relationship(
sort_by => 'acc_trans_id ASC',
},
},
sort_by => 'acc_trans_id ASC',
},
},
+ dunnings => {
+ type => 'one to many',
+ class => 'SL::DB::Dunning',
+ column_map => { id => 'trans_id' },
+ manager_args => { with_objects => [ 'dunnings' ] }
+ },
);
__PACKAGE__->meta->initialize;
);
__PACKAGE__->meta->initialize;
@@
-578,8
+584,8
@@
sub link {
my ($self) = @_;
my $html;
my ($self) = @_;
my $html;
- $html =
SL::Presenter->get->sales_invoice($self,
display => 'inline') if $self->invoice;
- $html =
SL::Presenter->get->ar_transaction($self,
display => 'inline') if !$self->invoice;
+ $html =
$self->presenter->sales_invoice(
display => 'inline') if $self->invoice;
+ $html =
$self->presenter->ar_transaction(
display => 'inline') if !$self->invoice;
return $html;
}
return $html;
}
@@
-714,7
+720,7
@@
See L<SL::DB::Object::basic_info>.
=item C<closed>
Returns 1 or 0, depending on whether the invoice is closed or not. Currently
=item C<closed>
Returns 1 or 0, depending on whether the invoice is closed or not. Currently
-invoices that are overpaid also count as closed.
+invoices that are overpaid also count as closed
and credit notes in general
.
=item C<recalculate_amounts %params>
=item C<recalculate_amounts %params>