Revision 8add0ccd
Von Bernd Blessmann vor etwa 13 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
2968 | 2968 |
$self->{$key} = $ref->{$key}; |
2969 | 2969 |
} |
2970 | 2970 |
|
2971 |
# remove any trailing whitespace |
|
2972 |
$self->{currency} =~ s/\s*$//; |
|
2973 |
|
|
2971 | 2974 |
my $transdate = "current_date"; |
2972 | 2975 |
if ($self->{transdate}) { |
2973 | 2976 |
$transdate = $dbh->quote($self->{transdate}); |
... | ... | |
3144 | 3147 |
|
3145 | 3148 |
map { $self->{$_} = $ref->{$_} } values %column_map; |
3146 | 3149 |
|
3150 |
# remove any trailing whitespace |
|
3151 |
$self->{currency} =~ s/\s*$// if $self->{currency}; |
|
3152 |
|
|
3147 | 3153 |
$main::lxdebug->leave_sub(); |
3148 | 3154 |
} |
3149 | 3155 |
|
SL/IR.pm | ||
---|---|---|
853 | 853 |
$ref = selectfirst_hashref_query($form, $dbh, $query, conv_i($form->{id})); |
854 | 854 |
map { $form->{$_} = $ref->{$_} } keys %$ref; |
855 | 855 |
|
856 |
# remove any trailing whitespace |
|
857 |
$form->{currency} =~ s/\s*$//; |
|
858 |
|
|
856 | 859 |
$form->{exchangerate} = $form->get_exchangerate($dbh, $form->{currency}, $form->{invdate}, "sell"); |
857 | 860 |
|
858 | 861 |
# get shipto |
SL/IS.pm | ||
---|---|---|
1478 | 1478 |
$ref = selectfirst_hashref_query($form, $dbh, $query, $id); |
1479 | 1479 |
map { $form->{$_} = $ref->{$_} } keys %{ $ref }; |
1480 | 1480 |
|
1481 |
# remove any trailing whitespace |
|
1482 |
$form->{currency} =~ s/\s*$//; |
|
1481 | 1483 |
|
1482 | 1484 |
$form->{exchangerate} = $form->get_exchangerate($dbh, $form->{currency}, $form->{invdate}, "buy"); |
1483 | 1485 |
|
SL/OE.pm | ||
---|---|---|
806 | 806 |
if ($ref) { |
807 | 807 |
map { $form->{$_} = $ref->{$_} } keys %$ref; |
808 | 808 |
|
809 |
# remove any trailing whitespace |
|
810 |
$form->{currency} =~ s/\s*$//; |
|
811 |
|
|
809 | 812 |
$form->{saved_xyznumber} = $form->{$form->{type} =~ /_quotation$/ ? "quonumber" : "ordnumber"}; |
810 | 813 |
|
811 | 814 |
# set all entries for multiple ids blank that yield different information |
Auch abrufbar als: Unified diff
Leerzeichen am Ende bei curr(ency) entfernen.
In der Datenbank werden f. Währungen drei Zeichen gespeichert. Eine
Währung mit zwei Zeichen hat dann ein Leerzeichen am Ende und der
Vergleich in den Maske schlägt fehl, wenn es dort bleibt.