This commit is contained in:
javierybar 2020-10-25 20:24:17 +01:00 committed by GitHub
parent a66be11e71
commit d23b6e145a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -281,7 +281,7 @@ if ($action == 'creditnote')
$creditnote->remise_absolue = $invoice->remise_absolue;
$creditnote->remise_percent = $invoice->remise_percent;
$creditnote->create($user);
foreach ($invoice->lines as $line)
{
// Extrafields
@ -400,7 +400,7 @@ if ($action == 'creditnote')
}
}
$creditnote->update_price(1);
$constantforkey = 'CASHDESK_NO_DECREASE_STOCK'.$_SESSION["takeposterminal"];
if (!empty($conf->stock->enabled) && $conf->global->$constantforkey != "1") {
$savconst = $conf->global->STOCK_CALCULATE_ON_BILL;