Revision c2cfaebb
Von Jan Büren vor etwa 2 Jahren hinzugefügt
SL/DB/PurchaseInvoice.pm | ||
---|---|---|
109 | 109 |
sub invoice_type { |
110 | 110 |
my ($self) = @_; |
111 | 111 |
|
112 |
return 'ap_transaction' if !$self->invoice; |
|
112 |
return 'purchase_credit_note' if $self->amount < 0; |
|
113 |
return 'ap_transaction' if !$self->invoice; |
|
113 | 114 |
return 'purchase_invoice'; |
114 | 115 |
} |
115 | 116 |
|
templates/webpages/bank_transactions/_payment_suggestion.html | ||
---|---|---|
21 | 21 |
[% UNLESS daily_exchangerate %][% LxERP.t8("new") %] [% END %][% LxERP.t8("default exchange rate") %]: [% P.input_tag("exchangerate_" _ bt_id _ "_" _ invoice.id , "$formatted_daily_exchangerate", style=style, disabled=0, size=4, class='numeric') %] |
22 | 22 |
[% P.hidden_tag("currency_id_" _ bt_id _ "_" _ invoice.id, invoice.currency.id) %] |
23 | 23 |
</br> |
24 |
[% UNLESS invoice.is_sales %]
|
|
24 |
[% IF invoice.invoice_type == 'ap_transaction' || invoice.invoice_type == 'purchase_invoice' || invoice.invoice_type == 'credit_note' %]
|
|
25 | 25 |
[% P.checkbox_tag("book_fx_bank_fees_" _ bt_id _ "_" _ invoice.id, value=1, checked="1") %] [% LxERP.t8("Bank Fee Booking") %] |
26 | 26 |
</br> |
27 | 27 |
[% END %] |
Auch abrufbar als: Unified diff
Zustand für negative Kreditorenbuchung oder EK-Rechnung als invoice_type hinzufügen
Entsprechend bei Wechselkursgebühren ausklammern