Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 30784a4d

Von Bernd Bleßmann vor fast 3 Jahren hinzugefügt

  • ID 30784a4dd84a21642387e9c0a7398a8045312963
  • Vorgänger 08ac1ae3
  • Nachfolger 044c3707

Anzahlungs-Rg.: Typ in Bericht anzeigen

Unterschiede anzeigen:

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
  # stornoed credit_notes are still credit notes and not invoices
543 545
  return 'credit_note'        if $self->type eq 'credit_note' && $self->amount < 0;
544 546
  return 'invoice_storno'     if $self->type ne 'credit_note' && $self->amount < 0 &&  $self->storno;
......
559 561
  return t8('Credit Note')                            if $self->invoice_type eq 'credit_note';
560 562
  return t8('Invoice') . "(" . t8('Storno') . ")"     if $self->invoice_type eq 'invoice_storno';
561 563
  return t8('Credit Note') . "(" . t8('Storno') . ")" if $self->invoice_type eq 'credit_note_storno';
564
  return t8('Invoice for Advance Payment')            if $self->invoice_type eq 'invoice_for_advance_payment';
565
  return t8('Invoice for Advance Payment') . "(" . t8('Storno') . ")" if $self->invoice_type eq 'invoice_for_advance_payment_storno';
562 566
  return t8('Invoice');
563 567
}
564 568

  
......
573 577
  return t8('Credit note (one letter abbreviation)') if $self->invoice_type eq 'credit_note';
574 578
  return t8('Invoice (one letter abbreviation)') . "(" . t8('Storno (one letter abbreviation)') . ")" if $self->invoice_type eq 'invoice_storno';
575 579
  return t8('Credit note (one letter abbreviation)') . "(" . t8('Storno (one letter abbreviation)') . ")"  if $self->invoice_type eq 'credit_note_storno';
580
  return t8('Invoice for Advance Payment (one letter abbreviation)')  if $self->invoice_type eq 'invoice_for_advance_payment';
581
  return t8('Invoice for Advance Payment with Storno (abbreviation)') if $self->invoice_type eq 'invoice_for_advance_payment_storno';
576 582
  return t8('Invoice (one letter abbreviation)');
577 583
}
578 584

  

Auch abrufbar als: Unified diff