|
Lines 59-64
sub cashups {
Link Here
|
| 59 |
|
59 |
|
| 60 |
my $local_conditions = { code => 'CASHUP' }; |
60 |
my $local_conditions = { code => 'CASHUP' }; |
| 61 |
$conditions //= {}; |
61 |
$conditions //= {}; |
|
|
62 |
|
| 63 |
# Voided payments (status VOID) and the VOID debit adjustment should not be bankable |
| 64 |
my $exclude_void = { |
| 65 |
status => [ { '!=' => 'VOID' }, undef ], |
| 66 |
debit_type_code => [ { '!=' => 'VOID' }, undef ], |
| 67 |
}; |
| 68 |
|
| 69 |
$local_conditions = { %{$local_conditions}, %{$exclude_void} }; |
| 70 |
|
| 62 |
my $merged_conditions = { %{$conditions}, %{$local_conditions} }; |
71 |
my $merged_conditions = { %{$conditions}, %{$local_conditions} }; |
| 63 |
|
72 |
|
| 64 |
my $rs = $self->_result->search_related( |
73 |
my $rs = $self->_result->search_related( |
| 65 |
- |
|
|