Revision 9e30e4f6
Von Jan Büren vor fast 6 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
44 | 44 |
use SL::IS; |
45 | 45 |
use SL::ReportGenerator; |
46 | 46 |
use SL::DB::BankTransactionAccTrans; |
47 |
use SL::DB::Chart; |
|
47 | 48 |
use SL::DB::Currency; |
48 | 49 |
use SL::DB::Default; |
49 | 50 |
use SL::DB::PurchaseInvoice; |
... | ... | |
553 | 554 |
$form->{'paidaccount_changeable_'. $i} = $changeable; |
554 | 555 |
|
555 | 556 |
$form->{'labelpaid_project_id_'. $i} = $project_labels{$form->{'paid_project_id_'. $i}}; |
557 |
# accno and description as info text |
|
558 |
$form->{'AP_paid_readonly_desc_' . $i} = $form->{'AP_paid_' . $i} ? |
|
559 |
$form->{'AP_paid_' . $i} . " " . SL::DB::Manager::Chart->find_by(accno => $form->{'AP_paid_' . $i})->description |
|
560 |
: ''; |
|
556 | 561 |
} |
557 | 562 |
|
558 | 563 |
$form->{paid_missing} = $form->{invtotal_unformatted} - $form->{totalpaid}; |
templates/webpages/ap/form_header.html | ||
---|---|---|
331 | 331 |
</td> |
332 | 332 |
[% END %] |
333 | 333 |
|
334 |
[% temp = "AP_paid_"_ i %] |
|
334 |
[% temp = "AP_paid_"_ i %] |
|
335 |
[% readonly = "AP_paid_readonly_desc_"_ i %] |
|
335 | 336 |
<td align="center"> |
336 | 337 |
[% IF( changeable ) %] |
337 | 338 |
[% L.select_tag(temp, ALL_CHARTS_AP_paid, value_title_sub = \AP_paid_value_title_sub, default = ($temp || accno_arap)) %] |
338 | 339 |
[% ELSE %] |
339 |
[% $temp | html %]
|
|
340 |
[% $readonly | html %]
|
|
340 | 341 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
341 | 342 |
[% END %] |
342 | 343 |
</td> |
Auch abrufbar als: Unified diff
Kreditorenbeleg: Kontenbeschreibung für Zahlungskonten anzeigen
Wie bei EK-Rechnung. Zur Sicherheit ein eigenes
Form-Feld generiert, anstatt die select box nur zu disablen.