Revision 8ca54430
Von Moritz Bunkus vor mehr als 17 Jahren hinzugefügt
SL/IS.pm | ||
---|---|---|
903 | 903 |
$form->{"exchangerate_$i"}, 0); |
904 | 904 |
} |
905 | 905 |
} |
906 |
|
|
907 |
} else { # if (!$form->{storno}) |
|
908 |
$form->{marge_total} *= -1; |
|
906 | 909 |
} |
907 | 910 |
|
908 | 911 |
if ($payments_only) { |
... | ... | |
1012 | 1015 |
conv_i($form->{"employee_id"}), conv_i($form->{"salesman_id"}), |
1013 | 1016 |
$form->{"storno"} ? 't' : 'f', conv_i($form->{storno_id}), conv_i($form->{"globalproject_id"}), |
1014 | 1017 |
conv_i($form->{"cp_id"}), $form->{transaction_description}, |
1015 |
$form->{marge_total}, $form->{marge_percent},
|
|
1018 |
$form->{marge_total} * 1, $form->{marge_percent} * 1,
|
|
1016 | 1019 |
conv_i($form->{"id"})); |
1017 | 1020 |
do_query($form, $dbh, $query, @values); |
1018 | 1021 |
|
... | ... | |
1414 | 1417 |
a.employee_id, a.salesman_id, a.payment_id, |
1415 | 1418 |
a.language_id, a.delivery_customer_id, a.delivery_vendor_id, a.type, |
1416 | 1419 |
a.transaction_description, |
1420 |
a.marge_total, a.marge_percent, |
|
1417 | 1421 |
e.name AS employee |
1418 | 1422 |
FROM ar a |
1419 | 1423 |
LEFT JOIN employee e ON (e.id = a.employee_id) |
Auch abrufbar als: Unified diff
Verkaufsrechnungen: Beim Stornieren den absoluten Ertrag negativ speichern.