Revision 1a83013a
Von Jan Büren vor fast 2 Jahren hinzugefügt
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 |
|
Auch abrufbar als: Unified diff
Fehlermeldung bei Belegen falls Kunde oder Lieferant == 0