Revision f6ed86ef
Von Kivitendo Admin vor fast 10 Jahren hinzugefügt
SL/DB/Invoice.pm | ||
---|---|---|
17 | 17 |
use SL::DB::Helper::PriceTaxCalculator; |
18 | 18 |
use SL::DB::Helper::PriceUpdater; |
19 | 19 |
use SL::DB::Helper::TransNumberGenerator; |
20 |
use SL::Locale::String qw(t8); |
|
20 | 21 |
|
21 | 22 |
__PACKAGE__->meta->add_relationship( |
22 | 23 |
invoiceitems => { |
... | ... | |
317 | 318 |
return $self->closed ? $::locale->text('closed') : $::locale->text('open'); |
318 | 319 |
} |
319 | 320 |
|
321 |
sub abbreviation { |
|
322 |
my $self = shift; |
|
323 |
|
|
324 |
return t8('AR Transaction (abbreviation)') if !$self->invoice; |
|
325 |
return t8('Credit note (one letter abbreviation)') if $self->type eq 'credit_note' && $self->amount < 0 && !$self->storno; |
|
326 |
return t8('Invoice (one letter abbreviation)') . "(" . t8('Storno (one letter abbreviation)') . ")" if $self->type ne 'credit_note' && $self->amount < 0 && $self->storno; |
|
327 |
return t8('Credit note (one letter abbreviation)') . "(" . t8('Storno (one letter abbreviation)') . ")" if $self->type eq 'credit_note' && $self->amount > 0 && $self->storno; |
|
328 |
return t8('Invoice (one letter abbreviation)'); |
|
329 |
|
|
330 |
} |
|
331 |
|
|
320 | 332 |
sub date { |
321 | 333 |
goto &transdate; |
322 | 334 |
} |
Auch abrufbar als: Unified diff
FiBu Schellsuche in Headerzeile
neues Ajax Autocompletefeld im Header für Benutzer mit FiBu-Rechten,
welches Rechnungsnummern und Kunden-/Lieferantennamen durchsucht. Durch
die Auswahl im Dropdown gelangt man direkt zu dem Beleg.