FIX : fetch discount desappeared in develop...

This commit is contained in:
gauthier 2016-11-28 17:38:20 +01:00
parent 34a123759f
commit d8aa572ad7

View File

@ -3870,7 +3870,10 @@ else if ($id > 0 || ! empty($ref))
}
}
}
$discount = new DiscountAbsolute($db);
$result = $discount->fetch(0, $object->id);
// Reopen a standard paid invoice
if ((($object->type == Facture::TYPE_STANDARD || $object->type == Facture::TYPE_REPLACEMENT)
|| ($object->type == Facture::TYPE_CREDIT_NOTE && empty($discount->id))