Update fournisseur.commande.class.php

Action with filter on rowid does not need to have test on entity
This commit is contained in:
Laurent Destailleur 2020-06-28 21:21:35 +02:00 committed by GitHub
parent dfb7c3e194
commit 960512acd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -844,7 +844,7 @@ class CommandeFournisseur extends CommonOrder
$sql = 'UPDATE '.MAIN_DB_PREFIX.'commande_fournisseur SET billed = 1';
$sql .= ' WHERE rowid = '.$this->id.' AND fk_statut > '.self::STATUS_DRAFT;
$sql .= " AND entity IN (".getEntity('supplier_order').")";
if ($this->db->query($sql))
{
if (! $error)