Revision 1a83013a
Von Jan Büren vor fast 2 Jahren hinzugefügt
SL/IR.pm | ||
---|---|---|
46 | 46 |
use SL::GenericTranslations; |
47 | 47 |
use SL::HTML::Restrict; |
48 | 48 |
use SL::IO; |
49 |
use SL::Locale::String qw(t8); |
|
49 | 50 |
use SL::MoreCommon; |
50 | 51 |
use SL::DB::Default; |
51 | 52 |
use SL::DB::TaxZone; |
... | ... | |
1166 | 1167 |
LEFT JOIN currencies cu ON (v.currency_id = cu.id) |
1167 | 1168 |
WHERE 1=1 $where|; |
1168 | 1169 |
my $ref = selectfirst_hashref_query($form, $dbh, $query, @values); |
1170 |
die t8("Cannot find a single vendor. Maybe there is no vendor yet?") unless $ref; |
|
1171 |
|
|
1169 | 1172 |
map { $params->{$_} = $ref->{$_} } keys %$ref; |
1170 | 1173 |
|
1171 | 1174 |
# use vendor currency |
SL/IS.pm | ||
---|---|---|
50 | 50 |
use SL::DO; |
51 | 51 |
use SL::GenericTranslations; |
52 | 52 |
use SL::HTML::Restrict; |
53 |
use SL::Locale::String qw(t8); |
|
53 | 54 |
use SL::MoreCommon; |
54 | 55 |
use SL::IC; |
55 | 56 |
use SL::IO; |
... | ... | |
65 | 66 |
use SL::Presenter::Part qw(type_abbreviation classification_abbreviation); |
66 | 67 |
use SL::Helper::QrBillFunctions qw(get_qrbill_account assemble_ref_number); |
67 | 68 |
use SL::Helper::ISO3166; |
68 |
|
|
69 | 69 |
use strict; |
70 | 70 |
use constant PCLASS_OK => 0; |
71 | 71 |
use constant PCLASS_NOTFORSALE => 1; |
... | ... | |
2503 | 2503 |
LEFT JOIN currencies cu ON (c.currency_id=cu.id) |
2504 | 2504 |
WHERE 1 = 1 $where|; |
2505 | 2505 |
$ref = selectfirst_hashref_query($form, $dbh, $query, @values); |
2506 |
|
|
2506 |
die t8("Cannot find a single customer. Maybe there is no customer yet?") unless $ref; |
|
2507 | 2507 |
delete $ref->{salesman_id} if !$ref->{salesman_id}; |
2508 | 2508 |
delete $ref->{payment_id} if !$ref->{payment_id}; |
2509 | 2509 |
|
locale/de/all | ||
---|---|---|
616 | 616 |
'Cannot delete quotation!' => 'Angebot kann nicht gelöscht werden!', |
617 | 617 |
'Cannot delete transaction!' => 'Buchung kann nicht gelöscht werden!', |
618 | 618 |
'Cannot delete vendor!' => 'Lieferant kann nicht gelöscht werden!', |
619 |
'Cannot find a single customer. Maybe there is no customer yet?' => 'Kann keinen einzigen Kunden finden. Vielleicht gibt es noch gar keine?', |
|
620 |
'Cannot find a single vendor. Maybe there is no vendor yet?' => 'Kann keinen einzigen Lieferanten finden. Vielleicht gibt es noch keine Lieferanten?', |
|
619 | 621 |
'Cannot find matching template for this print request. Please contact your template maintainer. I tried these: #1.' => 'Konnte keine passende Vorlage für diesen Druckauftrag finden. Bitte benachrichtigen Sie Ihren Vorlagenadministrator. Die folgenden Pfade wurden durchsucht: #1 ', |
620 | 622 |
'Cannot get shippingOrderAddressId for #1' => 'Finde das Feld shippingOrderAddressId für #1 nicht.', |
621 | 623 |
'Cannot have a value in both Debit and Credit!' => 'Es kann nicht gleichzeitig Soll und Haben gebucht werden!', |
locale/en/all | ||
---|---|---|
616 | 616 |
'Cannot delete quotation!' => '', |
617 | 617 |
'Cannot delete transaction!' => '', |
618 | 618 |
'Cannot delete vendor!' => '', |
619 |
'Cannot find a single customer. Maybe there is no customer yet?' => '', |
|
620 |
'Cannot find a single vendor. Maybe there is no vendor yet?' => '', |
|
619 | 621 |
'Cannot find matching template for this print request. Please contact your template maintainer. I tried these: #1.' => '', |
620 | 622 |
'Cannot get shippingOrderAddressId for #1' => '', |
621 | 623 |
'Cannot have a value in both Debit and Credit!' => '', |
Auch abrufbar als: Unified diff
Fehlermeldung bei Belegen falls Kunde oder Lieferant == 0