Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6948a871

Von Werner Hahn vor 15 Tagen hinzugefügt

  • ID 6948a871877bda3020709525174ec9c13b0606c5
  • Vorgänger 222efaf4

Debitorenbuchungen input eine ID gegeben, Zahlenformartierungen

behebt #734
Mit javascript jetzt die ID anstatt den Namen angesprochen, damit das
richtige Feld belegt wird

Unterschiede anzeigen:

templates/design40_webpages/ar/form_header.html
317 317
      </td>
318 318
      <td class="numeric">
319 319
        [% IF row.changeable %]
320
          <input name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]" size="11" type="text" data-validate="number" class="numeric">
320
          <input name="paid_[% loop.count %]" id="payment_paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]" size="11" type="text" data-validate="number" class="numeric">
321 321
        [% ELSE %]
322
          [% row.paid | html %]<input type="hidden" name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]"> [% defaultcurrency %]
322
          [% LxERP.format_amount(row.paid, 2) | html %]<input type="hidden" name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]"> [% defaultcurrency %]
323 323
        [% END %]
324 324
      </td>
325 325
      <td>
......
364 364
      <td></td>
365 365
      <td></td>
366 366
      <th class="right">[% 'Total' | $T8 %]</th>
367
      <td align="numeric">[% LxERP.format_amount(totalpaid, 2) | html %]  [% currency %] </td>
367
      <td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %]  [% currency %] </td>
368 368
      <td></td>
369 369
      [% IF show_exch %]
370 370
        <td align="numeric">[% LxERP.format_amount(defaultcurrency_totalpaid, 2) | html %] [% defaultcurrency %]</td>
......
398 398
</div><!-- ./tabwidget -->
399 399

  
400 400
<script type="text/javascript">
401
 $('#ar_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val("[% LxERP.format_amount(paid_missing, 2) %]") });
401
 $('#ar_set_to_paid_missing').click(function(){ $('input[id^="payment_paid_"]:last').val("[% LxERP.format_amount(paid_missing, 2) %]") });
402 402
</script>

Auch abrufbar als: Unified diff