Wie bei EK-Rechnung. Zur Sicherheit ein eigenes
Form-Feld generiert, anstatt die select box nur zu disablen.
use SL::IS;
use SL::ReportGenerator;
use SL::DB::BankTransactionAccTrans;
+use SL::DB::Chart;
use SL::DB::Currency;
use SL::DB::Default;
use SL::DB::PurchaseInvoice;
$form->{'paidaccount_changeable_'. $i} = $changeable;
$form->{'labelpaid_project_id_'. $i} = $project_labels{$form->{'paid_project_id_'. $i}};
+ # accno and description as info text
+ $form->{'AP_paid_readonly_desc_' . $i} = $form->{'AP_paid_' . $i} ?
+ $form->{'AP_paid_' . $i} . " " . SL::DB::Manager::Chart->find_by(accno => $form->{'AP_paid_' . $i})->description
+ : '';
}
$form->{paid_missing} = $form->{invtotal_unformatted} - $form->{totalpaid};
</td>
[% END %]
- [% temp = "AP_paid_"_ i %]
+ [% temp = "AP_paid_"_ i %]
+ [% readonly = "AP_paid_readonly_desc_"_ i %]
<td align="center">
[% IF( changeable ) %]
[% L.select_tag(temp, ALL_CHARTS_AP_paid, value_title_sub = \AP_paid_value_title_sub, default = ($temp || accno_arap)) %]
[% ELSE %]
- [% $temp | html %]
+ [% $readonly | html %]
<input type="hidden" name="[% temp %]" value="[% $temp | html %]">
[% END %]
</td>