Revision 921420df
Von Kivitendo Admin vor mehr als 9 Jahren hinzugefügt
SL/Controller/CsvImport/Inventory.pm | ||
---|---|---|
148 | 148 |
$object->warehouse_id($wh->id); |
149 | 149 |
} |
150 | 150 |
|
151 |
# Check wether or not warehouse ID is valid. |
|
151 |
# Check whether or not warehouse ID is valid.
|
|
152 | 152 |
if ($object->warehouse_id && !$self->warehouses_by->{id}->{ $object->warehouse_id }) { |
153 | 153 |
push @{ $entry->{errors} }, $::locale->text('Error: Invalid warehouse'); |
154 | 154 |
return 0; |
... | ... | |
206 | 206 |
$object->bin_id($bin->id); |
207 | 207 |
} |
208 | 208 |
|
209 |
# Check wether or not bin ID is valid. |
|
209 |
# Check whether or not bin ID is valid.
|
|
210 | 210 |
if ($object->bin_id && !$self->bins_by->{_wh_id_and_id_ident()}->{ _wh_id_and_id_maker($object->warehouse_id, $object->bin_id) }) { |
211 | 211 |
push @{ $entry->{errors} }, $::locale->text('Error: Invalid bin'); |
212 | 212 |
return 0; |
... | ... | |
238 | 238 |
|
239 | 239 |
my $object = $entry->{object}; |
240 | 240 |
|
241 |
# Check wether or non part ID is valid.
|
|
241 |
# Check whether or not part ID is valid.
|
|
242 | 242 |
if ($object->parts_id && !$self->parts_by->{id}->{ $object->parts_id }) { |
243 | 243 |
push @{ $entry->{errors} }, $::locale->text('Error: Invalid part'); |
244 | 244 |
return 0; |
SL/Controller/CsvImport/Order.pm | ||
---|---|---|
436 | 436 |
|
437 | 437 |
my $object = $entry->{object}; |
438 | 438 |
|
439 |
# Check wether or not part ID is valid. |
|
439 |
# Check whether or not part ID is valid.
|
|
440 | 440 |
if ($object->parts_id && !$self->parts_by->{id}->{ $object->parts_id }) { |
441 | 441 |
push @{ $entry->{errors} }, $::locale->text('Error: Invalid part'); |
442 | 442 |
return 0; |
... | ... | |
482 | 482 |
my $cp_cv_id = $object->customer_id || $object->vendor_id; |
483 | 483 |
return 0 unless $cp_cv_id; |
484 | 484 |
|
485 |
# Check wether or not contact ID is valid. |
|
485 |
# Check whether or not contact ID is valid.
|
|
486 | 486 |
if ($object->cp_id && !$self->contacts_by->{'cp_cv_id+cp_id'}->{ $cp_cv_id . '+' . $object->cp_id }) { |
487 | 487 |
push @{ $entry->{errors} }, $::locale->text('Error: Invalid contact'); |
488 | 488 |
return 0; |
... | ... | |
511 | 511 |
|
512 | 512 |
my $object = $entry->{object}; |
513 | 513 |
|
514 |
# Check wether or not department ID is valid. |
|
514 |
# Check whether or not department ID is valid.
|
|
515 | 515 |
if ($object->department_id && !$self->departments_by->{id}->{ $object->department_id }) { |
516 | 516 |
push @{ $entry->{errors} }, $::locale->text('Error: Invalid department'); |
517 | 517 |
return 0; |
... | ... | |
540 | 540 |
|
541 | 541 |
my $object = $entry->{object}; |
542 | 542 |
|
543 |
# Check wether or not projetc ID is valid. |
|
543 |
# Check whether or not projetc ID is valid.
|
|
544 | 544 |
if ($object->$id_column && !$self->projects_by->{id}->{ $object->$id_column }) { |
545 | 545 |
push @{ $entry->{errors} }, $::locale->text('Error: Invalid project'); |
546 | 546 |
return 0; |
... | ... | |
579 | 579 |
my $trans_id = $object->customer_id || $object->vendor_id; |
580 | 580 |
return 0 unless $trans_id; |
581 | 581 |
|
582 |
# Check wether or not shipto ID is valid. |
|
582 |
# Check whether or not shipto ID is valid.
|
|
583 | 583 |
if ($object->shipto_id && !$self->ct_shiptos_by->{'trans_id+shipto_id'}->{ $trans_id . '+' . $object->shipto_id }) { |
584 | 584 |
push @{ $entry->{errors} }, $::locale->text('Error: Invalid shipto'); |
585 | 585 |
return 0; |
... | ... | |
593 | 593 |
|
594 | 594 |
my $object = $entry->{object}; |
595 | 595 |
|
596 |
# Check wether or not price_factor ID is valid. |
|
596 |
# Check whether or not price_factor ID is valid.
|
|
597 | 597 |
if ($object->price_factor_id && !$self->price_factors_by->{id}->{ $object->price_factor_id }) { |
598 | 598 |
push @{ $entry->{errors} }, $::locale->text('Error: Invalid price factor'); |
599 | 599 |
return 0; |
... | ... | |
618 | 618 |
|
619 | 619 |
my $object = $entry->{object}; |
620 | 620 |
|
621 |
# Check wether or not pricegroup ID is valid. |
|
621 |
# Check whether or not pricegroup ID is valid.
|
|
622 | 622 |
if ($object->pricegroup_id && !$self->pricegroups_by->{id}->{ $object->pricegroup_id }) { |
623 | 623 |
push @{ $entry->{errors} }, $::locale->text('Error: Invalid price group'); |
624 | 624 |
return 0; |
sql/Pg-upgrade2/project_bob_attributes.sql | ||
---|---|---|
9 | 9 |
-- varchars retyped to text |
10 | 10 |
-- hours (numeric) changed to minutes (integer) since the code already calculates in minutes |
11 | 11 |
-- note: flags changing the behaviour of hours are still called so and not minutes |
12 |
-- no refcounts. we use adhoc counts to decide wether delete is possible or not |
|
12 |
-- no refcounts. we use adhoc counts to decide whether delete is possible or not
|
|
13 | 13 |
-- no hour_approval |
14 | 14 |
-- nothing relevant to notifications |
15 | 15 |
|
t/002goodperl.t | ||
---|---|---|
106 | 106 |
|
107 | 107 |
# note, the html checker is not really thorough. |
108 | 108 |
# in particular it will not find standard tags with parameters. |
109 |
# the estimate wether a file is dirty or not is still pretty helpful, as it will catch most of the closing tags. |
|
109 |
# the estimate whether a file is dirty or not is still pretty helpful, as it will catch most of the closing tags.
|
|
110 | 110 |
# if you are in doubt about a specific file, you still have to check it manually. |
111 | 111 |
my $tags = qr/b|i|u|h[1-6]|a href.*|input|form|br|textarea|table|tr|td|th|body|head|html|p|button|select|option|script/; |
112 | 112 |
my $todo_files_re = qr{^bin/mozilla/ic\.pl$}; |
t/006spellcheck.t | ||
---|---|---|
48 | 48 |
sucess |
49 | 49 |
varsion |
50 | 50 |
pirce |
51 |
wether |
|
51 | 52 |
); |
52 | 53 |
|
53 | 54 |
$testcount = scalar(@Support::Files::testitems); |
templates/webpages/generic/multibox.html | ||
---|---|---|
3 | 3 |
Multibox |
4 | 4 |
|
5 | 5 |
This template makes an input box for you, |
6 |
decides wether it should be a text field or a drop down box, |
|
6 |
decides whether it should be a text field or a drop down box,
|
|
7 | 7 |
generates the HTML code, and fixes everything just right. |
8 | 8 |
|
9 | 9 |
call: PROCESS generic/multibox.html var = var, var2 = .... |
Auch abrufbar als: Unified diff
Typos - kein "wether" mehr!