Skip to content

Commit

Permalink
Merge pull request #12667 from glelarge/12665-mass_invoice_validation…
Browse files Browse the repository at this point in the history
…_with_stock_management

FIX #12665 Mass invoice validation with stock management
  • Loading branch information
eldy committed Dec 9, 2019
2 parents f28e4c1 + 903c377 commit 1401dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/actions_massactions.inc.php
Expand Up @@ -1087,7 +1087,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 1401dab

Please sign in to comment.