Skip to content

Commit

Permalink
Merge pull request #12680 from glelarge/90/12665-mass_invoice_validat…
Browse files Browse the repository at this point in the history
…ion_with_stock_management

FIX #12665 Mass invoice validation with stock management (branch 9.0)
  • Loading branch information
eldy committed Dec 10, 2019
2 parents 314a13a + 97ec8b8 commit 22a297e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/actions_massactions.inc.php
Expand Up @@ -1082,7 +1082,7 @@
{
$objecttmp=new $objectclass($db);

if ($objecttmp->element == 'invoice' && ! empty($conf->stock->enabled) && ! empty($conf->global->STOCK_CALCULATE_ON_BILL))
if (($objecttmp->element == 'facture' || $objecttmp->element == 'invoice') && ! empty($conf->stock->enabled) && ! empty($conf->global->STOCK_CALCULATE_ON_BILL))
{
$langs->load("errors");
setEventMessages($langs->trans('ErrorMassValidationNotAllowedWhenStockIncreaseOnAction'), null, 'errors');
Expand Down

0 comments on commit 22a297e

Please sign in to comment.