Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ba85807b

Von Moritz Bunkus vor mehr als 9 Jahren hinzugefügt

  • ID ba85807b7ac6ce83d2ffab069e19fe709a2ce3be
  • Vorgänger d6beac43
  • Nachfolger 267cb279

Einkaufsrechnungen: In Kopf anzeigen, in welchen SEPA-Exporten der Beleg enthalten ist

Unterschiede anzeigen:

SL/DB/PurchaseInvoice.pm
28 28
    column_map      => { id => 'ap_id' },
29 29
    manager_args    => { with_objects => [ 'sepa_export' ] }
30 30
  },
31
  sepa_exports      => {
32
    type            => 'many to many',
33
    map_class       => 'SL::DB::SepaExportItem',
34
    map_from        => 'ap',
35
    map_to          => 'sepa_export',
36
  },
31 37
  custom_shipto     => {
32 38
    type            => 'one to one',
33 39
    class           => 'SL::DB::Shipto',
bin/mozilla/ir.pl
36 36
use SL::IS;
37 37
use SL::PE;
38 38
use SL::DB::Default;
39
use SL::DB::PurchaseInvoice;
39 40
use List::Util qw(max sum);
40 41
use List::UtilsBy qw(sort_by);
41 42

  
......
259 260
  my %TMPL_VAR = ();
260 261
  my @custom_hiddens;
261 262

  
263
  $TMPL_VAR{invoice_obj} = SL::DB::PurchaseInvoice->new(id => $form->{id})->load if $form->{id};
262 264
  $form->{employee_id} = $form->{old_employee_id} if $form->{old_employee_id};
263 265
  $form->{salesman_id} = $form->{old_salesman_id} if $form->{old_salesman_id};
264 266

  
templates/webpages/ir/form_header.html
80 80
            <span class="plus[% IF is_credit_remaining_negativ %]0[% ELSE %]1[% END %]">[% LxERP.format_amount(creditremaining,0 ,'0') %]</span>
81 81
          </td>
82 82
        </tr>
83
[%- IF invoice_obj.sepa_exports.as_list.size %]
84
        <tr>
85
          <th align="right">[% LxERP.t8("SEPA exports") %]</th>
86
          <td>
87
           [% FOREACH export = invoice_obj.sepa_exports.as_list %]
88
            <a href="sepa.pl?action=bank_transfer_edit&vc=vendor&id=[% HTML.url(export.id) %]">[% HTML.escape(export.id) %]</a>
89
            [% UNLESS loop.last %], [% END %]
90
           [% END %]
91
          </td>
92
        </tr>
93
[%- END %]
83 94
[%- IF business %]
84 95
        <tr>
85 96
          <th align="right">[% 'Vendor type' | $T8 %]</th>

Auch abrufbar als: Unified diff