Revision 40a94352
Von Jan Büren vor etwa 2 Jahren hinzugefügt
SL/IR.pm | ||
---|---|---|
$form->{mtime} = $form->{itime} if !$form->{mtime};
|
||
$form->{lastmtime} = $form->{mtime};
|
||
|
||
$form->{exchangerate} = $form->check_exchangerate($myconfig, $form->{currency}, $form->{invdate}, "sell");
|
||
($form->{exchangerate}, $form->{record_forex}) = $form->check_exchangerate($myconfig, $form->{currency}, $form->{invdate}, "sell", conv_i($form->{id}), 'ap');
|
||
|
||
# get shipto
|
||
$query = qq|SELECT * FROM shipto WHERE (trans_id = ?) AND (module = 'AP')|;
|
SL/IS.pm | ||
---|---|---|
$form->{mtime} = $form->{itime} if !$form->{mtime};
|
||
$form->{lastmtime} = $form->{mtime};
|
||
|
||
$form->{exchangerate} = $form->check_exchangerate($myconfig, $form->{currency}, $form->{invdate}, "buy");
|
||
($form->{exchangerate}, $form->{record_forex}) = $form->check_exchangerate($myconfig, $form->{currency}, $form->{invdate}, "buy", $id, 'ar');
|
||
|
||
foreach my $vc (qw(customer vendor)) {
|
||
next if !$form->{"delivery_${vc}_id"};
|
bin/mozilla/ap.pl | ||
---|---|---|
# build the popup menus
|
||
$form->{taxincluded} = ($form->{id}) ? $form->{taxincluded} : "checked";
|
||
|
||
# currencies
|
||
$form->{defaultcurrency} = $form->get_default_currency(\%myconfig);
|
||
|
||
$::form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted;
|
||
|
||
$form->{employee} = "$form->{employee}--$form->{employee_id}";
|
||
... | ... | |
|
||
$form->{readonly} = $readonly;
|
||
|
||
$form->{forex} = $form->check_exchangerate( \%myconfig, $form->{currency}, $form->{transdate}, 'sell');
|
||
if ( $form->{forex} ) {
|
||
$form->{exchangerate} = $form->{forex};
|
||
# currencies
|
||
$form->{defaultcurrency} = $form->get_default_currency(\%myconfig);
|
||
if ($form->{currency} ne $form->{defaultcurrency}) {
|
||
($form->{exchangerate}, $form->{record_forex}) = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{transdate}, "sell", $form->{id}, 'ap');
|
||
}
|
||
|
||
# format amounts
|
||
$form->{exchangerate} = $form->{exchangerate} ? $form->format_amount(\%myconfig, $form->{exchangerate}) : '';
|
||
$form->{creditlimit} = $form->format_amount(\%myconfig, $form->{creditlimit}, 0, "0");
|
||
$form->{creditremaining} = $form->format_amount(\%myconfig, $form->{creditremaining}, 0, "0");
|
||
|
||
... | ... | |
|
||
map { $form->{invtotal} += $form->{"amount_$_"} } (1 .. $form->{rowcount});
|
||
|
||
$form->{forex} = $form->check_exchangerate( \%myconfig, $form->{currency}, $form->{transdate}, 'sell');
|
||
$form->{exchangerate} = $form->{forex} if $form->{forex};
|
||
|
||
$form->{invdate} = $form->{transdate};
|
||
|
||
if (($form->{previous_vendor_id} || $form->{vendor_id}) != $form->{vendor_id}) {
|
bin/mozilla/ar.pl | ||
---|---|---|
? ($form->current_date(\%myconfig) eq $form->{gldate})
|
||
: ($::instance_conf->get_ar_changeable == 1);
|
||
$readonly = ($form->{radier}) ? "" : $readonly;
|
||
$form->{defaultcurrency} = $form->get_default_currency(\%myconfig);
|
||
if ($form->{currency} ne $form->{defaultcurrency}) {
|
||
($form->{exchangerate}, $form->{record_forex}) = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{transdate}, "buy", $form->{id}, 'ar');
|
||
}
|
||
|
||
$form->{forex} = $form->check_exchangerate( \%myconfig, $form->{currency}, $form->{transdate}, 'buy');
|
||
$form->{exchangerate} = $form->{forex} if $form->{forex};
|
||
|
||
$rows = max 2, $form->numtextrows($form->{notes}, 50);
|
||
|
bin/mozilla/is.pl | ||
---|---|---|
if (!$form->{forex}) { # read exchangerate from input field (not hidden)
|
||
$form->{exchangerate} = $form->parse_amount(\%myconfig, $form->{exchangerate}) unless $recursive_call;
|
||
}
|
||
$form->{forex} = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{invdate}, 'buy');
|
||
($form->{forex}, $form->{record_forex}) = $form->check_exchangerate(\%myconfig, $form->{currency},
|
||
$form->{invdate}, 'buy', $form->{id}, 'ar');
|
||
$form->{exchangerate} = $form->{forex} if $form->{forex};
|
||
|
||
for my $i (1 .. $form->{paidaccounts}) {
|
||
next unless $form->{"paid_$i"};
|
||
map { $form->{"${_}_$i"} = $form->parse_amount(\%myconfig, $form->{"${_}_$i"}) } qw(paid exchangerate);
|
Auch abrufbar als: Unified diff
Wechselkurs beim Laden des Belegs in form_header oder retrieve_invoice holen