Fix phpcs

This commit is contained in:
Laurent Destailleur 2021-07-03 18:32:52 +02:00
parent 9b7c0a9246
commit 30f9eb9f23

View File

@ -354,7 +354,6 @@ if ($outputalsopricetotalwithtax) {
}
if ($this->statut == 0 && ($object_rights->creer) && $action != 'selectlines') {
$situationinvoicelinewithparent = 0;
if ($line->fk_prev_id != null && in_array($object->element, array('facture', 'facturedet'))) {
if ($object->type == $object::TYPE_SITUATION) { // The constant TYPE_SITUATION exists only for object invoice