Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3649d1c4

Von Moritz Bunkus vor mehr als 9 Jahren hinzugefügt

  • ID 3649d1c496c1ab6a9959b51bc9a7ba406d1507c9
  • Vorgänger 24849636
  • Nachfolger d504954f

Wiederkehrende Rechnungen: Lastschrifteinzugsflag in Konfiguration setzen können

Unterschiede anzeigen:

SL/BackgroundJob/CreatePeriodicInvoices.pm
200 200
    $invoice->assign_attributes(deliverydate => $period_start_date,
201 201
                                intnotes     => $intnotes,
202 202
                                employee     => $order->employee, # new_from sets employee to import user
203
                                direct_debit => $config->direct_debit,
203 204
                               );
204 205

  
205 206
    _replace_vars(object => $invoice, vars => $time_period_vars, attribute => $_, attribute_format => ($_ eq 'notes' ? 'html' : 'text')) for qw(notes intnotes transaction_description);
SL/DB/MetaSetup/PeriodicInvoicesConfig.pm
12 12
  active                  => { type => 'boolean', default => 'true' },
13 13
  ar_chart_id             => { type => 'integer', not_null => 1 },
14 14
  copies                  => { type => 'integer' },
15
  direct_debit            => { type => 'boolean', default => 'false', not_null => 1 },
15 16
  end_date                => { type => 'date' },
16 17
  extend_automatically_by => { type => 'integer' },
17 18
  first_billing_date      => { type => 'date' },
SL/OE.pm
762 762

  
763 763
    if ($config_obj) {
764 764
      my $config = { map { $_ => $config_obj->$_ } qw(active terminated periodicity order_value_periodicity start_date_as_date end_date_as_date first_billing_date_as_date extend_automatically_by ar_chart_id
765
                                                      print printer_id copies) };
765
                                                      print printer_id copies direct_debit) };
766 766
      $form->{periodic_invoices_config} = YAML::Dump($config);
767 767
    }
768 768
  }
bin/mozilla/oe.pl
2063 2063

  
2064 2064
  my $config = { active                  => $::form->{active}     ? 1 : 0,
2065 2065
                 terminated              => $::form->{terminated} ? 1 : 0,
2066
                 direct_debit            => $::form->{direct_debit} ? 1 : 0,
2066 2067
                 periodicity             => (any { $_ eq $::form->{periodicity}             }       @SL::DB::PeriodicInvoicesConfig::PERIODICITIES)              ? $::form->{periodicity}             : 'm',
2067 2068
                 order_value_periodicity => (any { $_ eq $::form->{order_value_periodicity} } ('p', @SL::DB::PeriodicInvoicesConfig::ORDER_VALUE_PERIODICITIES)) ? $::form->{order_value_periodicity} : 'p',
2068 2069
                 start_date_as_date      => $::form->{start_date_as_date},
sql/Pg-upgrade2/periodic_invoices_direct_debit_flag.sql
1
-- @tag: periodic_invoices_direct_debit_flag
2
-- @description: Flag Lastschrifteinzug bei wiederkehrenden Rechnungen
3
-- @depends: release_3_3_0
4
ALTER TABLE periodic_invoices_configs ADD COLUMN direct_debit BOOLEAN DEFAULT FALSE;
5
UPDATE periodic_invoices_configs SET direct_debit = FALSE;
6
ALTER TABLE periodic_invoices_configs ALTER COLUMN direct_debit SET NOT NULL;
templates/webpages/oe/edit_periodic_invoices_config.html
72 72
     </td>
73 73
    </tr>
74 74

  
75
    <tr>
76
     <th align="right">[%- LxERP.t8('direct debit') %]</th>
77
     <td valign="top">[% L.checkbox_tag("direct_debit", checked=direct_debit) %]</td>
78
    </tr>
79

  
75 80
    <tr>
76 81
     <th align="right">[%- LxERP.t8('Print automatically') %]</th>
77 82
     <td valign="top">

Auch abrufbar als: Unified diff