Revision 5da10e01
Von Moritz Bunkus vor fast 5 Jahren hinzugefügt
bin/mozilla/io.pl | ||
---|---|---|
2134 | 2134 |
sub _maybe_attach_zugferd_data { |
2135 | 2135 |
my ($form) = @_; |
2136 | 2136 |
|
2137 |
return if !$::instance_conf->get_create_zugferd_invoices; |
|
2138 |
|
|
2139 | 2137 |
my $record = _make_record(); |
2140 | 2138 |
|
2141 |
return if !$record || !$record->can('create_pdf_a_print_options') || !$record->can('create_zugferd_data'); |
|
2139 |
return if !$record |
|
2140 |
|| !$record->can('customer') |
|
2141 |
|| !$record->customer |
|
2142 |
|| !$record->can('create_pdf_a_print_options') |
|
2143 |
|| !$record->can('create_zugferd_data') |
|
2144 |
|| !$record->customer->create_zugferd_invoices_for_this_customer; |
|
2142 | 2145 |
|
2143 | 2146 |
eval { |
2144 | 2147 |
my $xmlfile = File::Temp->new; |
Auch abrufbar als: Unified diff
ZUGFeRD: Einstellung bzgl. Erzeugung auch in Kundenstammdaten