Revision 65b2387a
Von Moritz Bunkus vor mehr als 5 Jahren hinzugefügt
SL/OE.pm | ||
---|---|---|
36 | 36 |
package OE; |
37 | 37 |
|
38 | 38 |
use List::Util qw(max first); |
39 |
use YAML; |
|
40 | 39 |
|
41 | 40 |
use SL::AM; |
42 | 41 |
use SL::Common; |
... | ... | |
53 | 52 |
use SL::TransNumber; |
54 | 53 |
use SL::Util qw(trim); |
55 | 54 |
use SL::DB; |
55 |
use SL::YAML; |
|
56 | 56 |
use Text::ParseWords; |
57 | 57 |
|
58 | 58 |
use strict; |
... | ... | |
816 | 816 |
|
817 | 817 |
return if !$params{oe_id}; |
818 | 818 |
|
819 |
my $config = $params{config_yaml} ? YAML::Load($params{config_yaml}) : undef; |
|
819 |
my $config = $params{config_yaml} ? SL::YAML::Load($params{config_yaml}) : undef;
|
|
820 | 820 |
return if 'HASH' ne ref $config; |
821 | 821 |
|
822 | 822 |
my $obj = SL::DB::Manager::PeriodicInvoicesConfig->find_by(oe_id => $params{oe_id}) |
... | ... | |
836 | 836 |
if ($config_obj) { |
837 | 837 |
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 |
838 | 838 |
print printer_id copies direct_debit send_email email_recipient_contact_id email_recipient_address email_sender email_subject email_body) }; |
839 |
$form->{periodic_invoices_config} = YAML::Dump($config); |
|
839 |
$form->{periodic_invoices_config} = SL::YAML::Dump($config);
|
|
840 | 840 |
} |
841 | 841 |
} |
842 | 842 |
} |
Auch abrufbar als: Unified diff
Module: gebundletes YAML durch dünnen Wrapper über YAML::XS & YAML ersetzt