Revision 55291442
Von Jan Büren vor fast 2 Jahren hinzugefügt
SL/Controller/BankTransaction.pm | ||
---|---|---|
704 | 704 |
|| SL::DB::Exchangerate->new(currency_id => $currency_id, |
705 | 705 |
transdate => $bank_transaction->valutadate); |
706 | 706 |
$ex->update_attributes($buysell => $fx_rate); |
707 |
$bank_transaction->exchangerate(undef); # maybe user reassigned bank_transaction |
|
707 | 708 |
} elsif ($default_rate != $fx_rate) { # set record (banktransaction) exchangerate |
708 | 709 |
$bank_transaction->exchangerate($fx_rate); # custom rate, will be displayed in ap, ir, is |
709 | 710 |
} elsif ($default_rate == $fx_rate) { |
... | ... | |
862 | 863 |
|
863 | 864 |
# 5. finally reset this bank transaction |
864 | 865 |
$bank_transaction->invoice_amount(0); |
866 |
$bank_transaction->exchangerate(undef); |
|
865 | 867 |
$bank_transaction->cleared(0); |
866 | 868 |
$bank_transaction->save; |
867 | 869 |
# 6. and add a log entry in history_erp |
Auch abrufbar als: Unified diff
Bankbuchungswechselkurs auch wieder löschen, falls Bankverknüpfung aufgelöst wird