Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3efb443e

Von Sven Schöling vor mehr als 6 Jahren hinzugefügt

  • ID 3efb443e966e61d1812be458f5a7aa6833dcc6c4
  • Vorgänger ccfd9aac
  • Nachfolger b2017499

kivi.Validator: explizites check_right_*_format auf Validator umgestellt

Unterschiede anzeigen:

bin/mozilla/ap.pl
437 437
  my $follow_up_vc         = $form->{vendor_id} ? SL::DB::Vendor->load_cached($form->{vendor_id})->name : '';
438 438
  my $follow_up_trans_info =  "$form->{invnumber} ($follow_up_vc)";
439 439

  
440
  $::request->layout->add_javascripts("autocomplete_chart.js", "show_vc_details.js", "show_history.js", "follow_up.js", "kivi.Draft.js", "kivi.GL.js", "kivi.RecordTemplate.js", "kivi.File.js", "kivi.AP.js", "kivi.CustomerVendor.js");
440
  $::request->layout->add_javascripts("autocomplete_chart.js", "show_vc_details.js", "show_history.js", "follow_up.js", "kivi.Draft.js", "kivi.GL.js", "kivi.RecordTemplate.js", "kivi.File.js", "kivi.AP.js", "kivi.CustomerVendor.js", "kivi.Validator.js");
441 441
  my $transdate = $::form->{transdate} ? DateTime->from_kivitendo($::form->{transdate}) : DateTime->today_local;
442 442
  my $first_taxchart;
443 443

  
bin/mozilla/ar.pl
393 393
  my $follow_up_vc         = $form->{customer_id} ? SL::DB::Customer->load_cached($form->{customer_id})->name : '';
394 394
  my $follow_up_trans_info =  "$form->{invnumber} ($follow_up_vc)";
395 395

  
396
  $::request->layout->add_javascripts("autocomplete_chart.js", "show_vc_details.js", "show_history.js", "follow_up.js", "kivi.Draft.js", "kivi.GL.js", "kivi.File.js", "kivi.RecordTemplate.js", "kivi.AR.js", "kivi.CustomerVendor.js");
396
  $::request->layout->add_javascripts("autocomplete_chart.js", "show_vc_details.js", "show_history.js", "follow_up.js", "kivi.Draft.js", "kivi.GL.js", "kivi.File.js", "kivi.RecordTemplate.js", "kivi.AR.js", "kivi.CustomerVendor.js", "kivi.Validator.js");
397 397

  
398 398
  my $transdate = $::form->{transdate} ? DateTime->from_kivitendo($::form->{transdate}) : DateTime->today_local;
399 399
  my $first_taxchart;
bin/mozilla/is.pl
482 482
  ), @custom_hiddens,
483 483
  map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts}];
484 484

  
485
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.Draft kivi.File kivi.SalesPurchase kivi.Part kivi.CustomerVendor ckeditor/ckeditor ckeditor/adapters/jquery kivi.io client_js));
485
  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.Draft kivi.File kivi.SalesPurchase kivi.Part kivi.CustomerVendor kivi.Validator ckeditor/ckeditor ckeditor/adapters/jquery kivi.io client_js));
486 486

  
487 487
  $TMPL_VAR{payment_terms_obj} = get_payment_terms_for_invoice();
488 488
  $form->{duedate}             = $TMPL_VAR{payment_terms_obj}->calc_date(reference_date => $form->{invdate}, due_date => $form->{duedate})->to_kivitendo if $TMPL_VAR{payment_terms_obj};
templates/webpages/ap/form_header.html
301 301
            [% temp = "paid_"_ i %]
302 302
            <td align="center">
303 303
              [% IF( changeable ) %]
304
                <input name="[% temp %]" size="11" value="[% $temp | html %]" onBlur="check_right_number_format(this);">
304
                <input name="[% temp %]" size="11" data-validate="number" class="numeric" value="[% $temp | html %]">
305 305
              [% ELSE %]
306 306
                [% $temp | html %]
307 307
                <input type="hidden" name="[% temp %]" value="[% $temp | html %]">
templates/webpages/ar/form_header.html
254 254
         </td>
255 255
         <td align=center>
256 256
  [%- IF row.changeable %]
257
          <input name="paid_[% loop.count %]" size=11 value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]" onBlur="check_right_number_format(this)">
257
          <input name="paid_[% loop.count %]" size=11 data-validate="number" class="numeric" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]">
258 258
  [%- ELSE %]
259 259
         [% row.paid | html %]<input type=hidden name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]">
260 260
  [%- END %]
templates/webpages/is/_payments.html
72 72
     </td>
73 73
     <td align="center">
74 74
     [% IF $changeable %]
75
       <input name="paid_[% i %]" size="11" value="[% LxERP.format_amount($paid, 2, 1) %]">
75
       <input name="paid_[% i %]" size="11" data-validate="number" class="numeric" value="[% LxERP.format_amount($paid, 2, 1) %]">
76 76
     [% ELSE %]
77 77
       <input type="hidden" name="paid_[% i %]" value="[% LxERP.format_amount($paid, 2, 1) %]">
78 78
       [% LxERP.format_amount($paid, 2, 1) %]
......
112 112
     </td>
113 113

  
114 114
    </tr>
115
  [% IF $changeable %]
116
    <tr style='display:none'>
117
     <td>
118
    <script type='text/javascript'>
119
     $('input[name="paid_[% i %]"]').blur(function(){ check_right_number_format(this) });
120
     $('#datepaid_[% i %]').change(function(){ check_right_date_format(this) });
121
    </script>
122
     </td>
123
    </tr>
124
  [% END %]
125

  
126 115
[% END # foreach %]
127 116

  
128 117
    <tr>

Auch abrufbar als: Unified diff