Revision 5da10e01
Von Moritz Bunkus vor fast 5 Jahren hinzugefügt
SL/DB/Customer.pm | ||
---|---|---|
98 | 98 |
sub payment_terms { goto &payment } |
99 | 99 |
sub number { goto &customernumber } |
100 | 100 |
|
101 |
sub create_zugferd_invoices_for_this_customer { |
|
102 |
my ($self) = @_; |
|
103 |
|
|
104 |
no warnings 'once'; |
|
105 |
return $::instance_conf->get_create_zugferd_invoices if $self->create_zugferd_invoices == -1; |
|
106 |
return $self->create_zugferd_invoices; |
|
107 |
} |
|
108 |
|
|
101 | 109 |
1; |
SL/DB/Helper/ZUGFeRD.pm | ||
---|---|---|
317 | 317 |
# <rsm:ExchangedDocumentContext> |
318 | 318 |
$params{xml}->startTag("rsm:ExchangedDocumentContext"); |
319 | 319 |
|
320 |
if ($::instance_conf->get_create_zugferd_invoices == 2) {
|
|
320 |
if ($self->customer->create_zugferd_invoices_for_this_customer == 2) {
|
|
321 | 321 |
$params{xml}->startTag("ram:TestIndicator"); |
322 | 322 |
$params{xml}->dataElement("udt:Indicator", "true"); |
323 | 323 |
$params{xml}->endTag; |
SL/DB/MetaSetup/Customer.pm | ||
---|---|---|
22 | 22 |
contact => { type => 'text' }, |
23 | 23 |
contact_origin => { type => 'text' }, |
24 | 24 |
country => { type => 'text' }, |
25 |
create_zugferd_invoices => { type => 'integer', default => '-1', not_null => 1 }, |
|
25 | 26 |
creditlimit => { type => 'numeric', default => '0', precision => 15, scale => 5 }, |
26 | 27 |
currency_id => { type => 'integer', not_null => 1 }, |
27 | 28 |
customernumber => { type => 'text' }, |
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; |
locale/de/all | ||
---|---|---|
3810 | 3810 |
'Use fill up when calculating shipped quantities?' => 'Sollen nicht verlinkte Positionen abgeglichen werden?', |
3811 | 3811 |
'Use linked items' => 'Verknüpfte Positionen verwenden', |
3812 | 3812 |
'Use master default bin for Default Transfer, if no default bin for the part is configured' => 'Standardlagerplatz für Ein- / Auslagern über Standard-Lagerplatz, falls für die Ware kein expliziter Lagerplatz konfiguriert ist', |
3813 |
'Use settings from client configuration' => 'Einstellungen aus Mandantenkonfiguration folgen', |
|
3813 | 3814 |
'Use this storage backend for all generated PDF-Files' => 'Verwende dieses Backend für generierte PDF-Dateien', |
3814 | 3815 |
'Use this storage backend for all uploaded attachments' => 'Verwende dieses Backend für hochgeladene Dateien', |
3815 | 3816 |
'Use this storage backend for uploaded images' => 'Verwende dieses Backend für hochgeladene Bilder', |
sql/Pg-upgrade2/customer_create_zugferd_invoices.sql | ||
---|---|---|
1 |
-- @tag: customer_create_zugferd_invoices |
|
2 |
-- @description: Kundenstammdaten: Einstellungen für ZUGFeRD-Rechnungen |
|
3 |
-- @depends: release_3_5_5 |
|
4 |
ALTER TABLE customer |
|
5 |
ADD COLUMN create_zugferd_invoices INTEGER; |
|
6 |
|
|
7 |
UPDATE customer |
|
8 |
SET create_zugferd_invoices = -1; |
|
9 |
|
|
10 |
ALTER TABLE customer |
|
11 |
ALTER COLUMN create_zugferd_invoices SET DEFAULT -1, |
|
12 |
ALTER COLUMN create_zugferd_invoices SET NOT NULL; |
templates/webpages/customer_vendor/tabs/billing.html | ||
---|---|---|
370 | 370 |
<td> |
371 | 371 |
[% L.checkbox_tag('cv.order_lock', checked = SELF.cv.order_lock, for_submit=1) %] |
372 | 372 |
</td> |
373 |
<th align="right">[% LxERP.t8("Create sales invoices with ZUGFeRD data") %]</td> |
|
374 |
<td>[% L.select_tag("cv.create_zugferd_invoices", |
|
375 |
[ [ -1, LxERP.t8('Use settings from client configuration') ], |
|
376 |
[ 0, LxERP.t8('Do not create ZUGFeRD invoices') ], |
|
377 |
[ 1, LxERP.t8('Create ZUGFeRD invoices') ], |
|
378 |
[ 2, LxERP.t8('Create ZUGFeRD invoices in test mode') ] ], |
|
379 |
default=SELF.cv.create_zugferd_invoices) %]</td> |
|
373 | 380 |
</tr> |
374 | 381 |
[% END %] |
375 | 382 |
</table> |
Auch abrufbar als: Unified diff
ZUGFeRD: Einstellung bzgl. Erzeugung auch in Kundenstammdaten