Revision aa574b2a
Von Bernd Bleßmann vor etwa 3 Jahren hinzugefügt
SL/AR.pm | ||
---|---|---|
487 | 487 |
qq| a.shippingpoint, a.storno, a.storno_id, a.globalproject_id, | . |
488 | 488 |
qq| a.marge_total, a.marge_percent, | . |
489 | 489 |
qq| a.transaction_description, a.direct_debit, | . |
490 |
qq| a.type, | . |
|
490 | 491 |
qq| pr.projectnumber AS globalprojectnumber, | . |
491 | 492 |
qq| c.name, c.customernumber, c.country, c.ustid, b.description as customertype, | . |
492 | 493 |
qq| c.id as customer_id, | . |
SL/DB/Invoice.pm | ||
---|---|---|
539 | 539 |
my ($self) = @_; |
540 | 540 |
|
541 | 541 |
return 'ar_transaction' if !$self->invoice; |
542 |
return 'invoice_for_advance_payment_storno' if $self->type eq 'invoice_for_advance_payment' && $self->amount < 0 && $self->storno; |
|
543 |
return 'invoice_for_advance_payment' if $self->type eq 'invoice_for_advance_payment'; |
|
542 | 544 |
return 'credit_note' if $self->type eq 'credit_note' && $self->amount < 0 && !$self->storno; |
543 | 545 |
return 'invoice_storno' if $self->type ne 'credit_note' && $self->amount < 0 && $self->storno; |
544 | 546 |
return 'credit_note_storno' if $self->type eq 'credit_note' && $self->amount > 0 && $self->storno; |
... | ... | |
558 | 560 |
return t8('Credit Note') if $self->invoice_type eq 'credit_note'; |
559 | 561 |
return t8('Invoice') . "(" . t8('Storno') . ")" if $self->invoice_type eq 'invoice_storno'; |
560 | 562 |
return t8('Credit Note') . "(" . t8('Storno') . ")" if $self->invoice_type eq 'credit_note_storno'; |
563 |
return t8('Invoice for Advance Payment') if $self->invoice_type eq 'invoice_for_advance_payment'; |
|
564 |
return t8('Invoice for Advance Payment') . "(" . t8('Storno') . ")" if $self->invoice_type eq 'invoice_for_advance_payment_storno'; |
|
561 | 565 |
return t8('Invoice'); |
562 | 566 |
} |
563 | 567 |
|
... | ... | |
572 | 576 |
return t8('Credit note (one letter abbreviation)') if $self->invoice_type eq 'credit_note'; |
573 | 577 |
return t8('Invoice (one letter abbreviation)') . "(" . t8('Storno (one letter abbreviation)') . ")" if $self->invoice_type eq 'invoice_storno'; |
574 | 578 |
return t8('Credit note (one letter abbreviation)') . "(" . t8('Storno (one letter abbreviation)') . ")" if $self->invoice_type eq 'credit_note_storno'; |
579 |
return t8('Invoice for Advance Payment (one letter abbreviation)') if $self->invoice_type eq 'invoice_for_advance_payment'; |
|
580 |
return t8('Invoice for Advance Payment with Storno (abbreviation)') if $self->invoice_type eq 'invoice_for_advance_payment_storno'; |
|
575 | 581 |
return t8('Invoice (one letter abbreviation)'); |
576 | 582 |
} |
577 | 583 |
|
bin/mozilla/ar.pl | ||
---|---|---|
1198 | 1198 |
my $is_storno = $ar->{storno} && $ar->{storno_id}; |
1199 | 1199 |
my $has_storno = $ar->{storno} && !$ar->{storno_id}; |
1200 | 1200 |
|
1201 |
$ar->{type} = |
|
1202 |
$has_storno ? $locale->text("Invoice with Storno (abbreviation)") : |
|
1203 |
$is_storno ? $locale->text("Storno (one letter abbreviation)") : |
|
1204 |
$ar->{amount} < 0 ? $locale->text("Credit note (one letter abbreviation)") : |
|
1205 |
$ar->{invoice} ? $locale->text("Invoice (one letter abbreviation)") : |
|
1206 |
$locale->text("AR Transaction (abbreviation)"); |
|
1201 |
if ($ar->{type} eq 'invoice_for_advance_payment') { |
|
1202 |
$ar->{type} = |
|
1203 |
$has_storno ? $locale->text("Invoice for Advance Payment with Storno (abbreviation)") : |
|
1204 |
$is_storno ? $locale->text("Storno (one letter abbreviation)") : |
|
1205 |
$locale->text("Invoice for Advance Payment (one letter abbreviation)"); |
|
1206 |
|
|
1207 |
} else { |
|
1208 |
$ar->{type} = |
|
1209 |
$has_storno ? $locale->text("Invoice with Storno (abbreviation)") : |
|
1210 |
$is_storno ? $locale->text("Storno (one letter abbreviation)") : |
|
1211 |
$ar->{amount} < 0 ? $locale->text("Credit note (one letter abbreviation)") : |
|
1212 |
$ar->{invoice} ? $locale->text("Invoice (one letter abbreviation)") : |
|
1213 |
$locale->text("AR Transaction (abbreviation)"); |
|
1214 |
} |
|
1207 | 1215 |
|
1208 | 1216 |
map { $ar->{$_} = $form->format_amount(\%myconfig, $ar->{$_}, 2) } qw(netamount tax amount paid due marge_total marge_percent); |
1209 | 1217 |
|
locale/de/all | ||
---|---|---|
1854 | 1854 |
'Invoice email and Contact Person' => 'E-Mail des Rechnungsempfängers und CC an Ansprechpartner', |
1855 | 1855 |
'Invoice email settings' => 'E-Mail Rechnungsversand', |
1856 | 1856 |
'Invoice filter' => 'Rechnungsfilter', |
1857 |
'Invoice for Advance Payment (one letter abbreviation)' => 'A', |
|
1858 |
'Invoice for Advance Payment with Storno (abbreviation)' => 'A(S)', |
|
1857 | 1859 |
'Invoice for fees' => 'Rechnung über Gebühren', |
1858 | 1860 |
'Invoice has already been storno\'d!' => 'Diese Rechnung wurde bereits storniert.', |
1859 | 1861 |
'Invoice number' => 'Rechnungsnummer', |
locale/en/all | ||
---|---|---|
1854 | 1854 |
'Invoice email and Contact Person' => '', |
1855 | 1855 |
'Invoice email settings' => '', |
1856 | 1856 |
'Invoice filter' => '', |
1857 |
'Invoice for Advance Payment (one letter abbreviation)' => '', |
|
1858 |
'Invoice for Advance Payment with Storno (abbreviation)' => '', |
|
1857 | 1859 |
'Invoice for fees' => '', |
1858 | 1860 |
'Invoice has already been storno\'d!' => '', |
1859 | 1861 |
'Invoice number' => '', |
Auch abrufbar als: Unified diff
Anzahlungs-Rg.: Typ in Bericht anzeigen