Fixes
This commit is contained in:
parent
a66be11e71
commit
d23b6e145a
@ -281,7 +281,7 @@ if ($action == 'creditnote')
|
|||||||
$creditnote->remise_absolue = $invoice->remise_absolue;
|
$creditnote->remise_absolue = $invoice->remise_absolue;
|
||||||
$creditnote->remise_percent = $invoice->remise_percent;
|
$creditnote->remise_percent = $invoice->remise_percent;
|
||||||
$creditnote->create($user);
|
$creditnote->create($user);
|
||||||
|
|
||||||
foreach ($invoice->lines as $line)
|
foreach ($invoice->lines as $line)
|
||||||
{
|
{
|
||||||
// Extrafields
|
// Extrafields
|
||||||
@ -400,7 +400,7 @@ if ($action == 'creditnote')
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$creditnote->update_price(1);
|
$creditnote->update_price(1);
|
||||||
|
|
||||||
$constantforkey = 'CASHDESK_NO_DECREASE_STOCK'.$_SESSION["takeposterminal"];
|
$constantforkey = 'CASHDESK_NO_DECREASE_STOCK'.$_SESSION["takeposterminal"];
|
||||||
if (!empty($conf->stock->enabled) && $conf->global->$constantforkey != "1") {
|
if (!empty($conf->stock->enabled) && $conf->global->$constantforkey != "1") {
|
||||||
$savconst = $conf->global->STOCK_CALCULATE_ON_BILL;
|
$savconst = $conf->global->STOCK_CALCULATE_ON_BILL;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user