Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3a91708f

Von Cem Aydin vor 11 Monaten hinzugefügt

  • ID 3a91708fdcc77d5276a81909424c1e2482ef6889
  • Vorgänger 1f9ea2a9
  • Nachfolger 001ca02a

Design4.0: Debitorenbuchung Project picker verwenden

- JavaScript für Project picker hinzugefügt

Unterschiede anzeigen:

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

  
437
  $::request->layout->add_javascripts("autocomplete_chart.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");
437
  $::request->layout->add_javascripts("autocomplete_chart.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", "autocomplete_project.js");
438 438
  # get the correct date for tax
439 439
  my $transdate    = $::form->{transdate}    ? DateTime->from_kivitendo($::form->{transdate})    : DateTime->today_local;
440 440
  my $deliverydate = $::form->{deliverydate} ? DateTime->from_kivitendo($::form->{deliverydate}) : undef;
templates/design40_webpages/ar/form_header.html
200 200
      </tr>
201 201
      <tr>
202 202
        <th>[% 'Project Number' | $T8 %]</th>
203
        <td>[% L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = 1, onChange = "document.getElementById('update_button').click();") %]</td>
203
        <td>[% P.project.picker('globalproject_id', globalproject_id, onchange="document.getElementById('update_button').click();") %]</td>
204 204
      </tr>
205 205
    </tbody>
206 206
  </table>
......
229 229
      <td class="numeric">[% L.input_tag('amount_' _ loop.count, LxERP.format_amount(row.amount, 2), class='wi-small numeric') %]</td>
230 230
      <td class="numeric">[% L.hidden_tag('tax_' _ loop.count, LxERP.format_tax(row.tax, 2)) %][% LxERP.format_amount(row.tax, 2) | html %]</td>
231 231
      <td>[% row.taxchart %]</td>
232
      <td>[% L.select_tag('project_id_' _ loop.count, ALL_PROJECTS, title_key='projectnumber', default=row.project_id, with_empty=1, class="wi-small") %]</td>
232
      <td>[% P.project.picker("project_id_"_ loop.count, row.project_id) %]</td>
233 233
    </tr>
234 234
    [% END %]
235 235
  </tbody>
......
319 319
      </td>
320 320
      <td>
321 321
        [% IF row.changeable %]
322
          [% L.select_tag('paid_project_id_' _ loop.count, ALL_PROJECTS, title_key='projectnumber', default=row.paid_project_id, with_empty=1, class='wi-small') %]
322
          [% P.project.picker("paid_project_id_"_ loop.count, row.paid_project_id) %]
323 323
        [% ELSE %]
324 324
          [% project_labels.${row.paid_project_id} | html %]
325 325
          <input type="hidden" name="paid_project_id_[% loop.count %]" value="[% row.paid_project_id %]">

Auch abrufbar als: Unified diff