Revision 2fc46f6a
Von Moritz Bunkus vor fast 2 Jahren hinzugefügt
SL/IS.pm | ||
---|---|---|
1578 | 1578 |
WHERE id = ?!; |
1579 | 1579 |
do_query($form, $dbh, $query, "Rechnung storniert am $form->{invdate} ", conv_i($form->{"storno_id"})); |
1580 | 1580 |
do_query($form, $dbh, qq|UPDATE ar SET paid = amount WHERE id = ?|, conv_i($form->{"id"})); |
1581 |
|
|
1582 |
$query = <<SQL; |
|
1583 |
UPDATE orderitems |
|
1584 |
SET recurring_billing_invoice_id = NULL |
|
1585 |
WHERE recurring_billing_invoice_id = ? |
|
1586 |
SQL |
|
1587 |
|
|
1588 |
do_query($form, $dbh, $query, conv_i($form->{"storno_id"})); |
|
1581 | 1589 |
} |
1582 | 1590 |
|
1583 | 1591 |
# maybe we are in a larger transaction and the current |
Auch abrufbar als: Unified diff
Wiederkehrende Abrechnung Positionen: Stornieren von Rechnungen