Update paiement.class.php

This commit is contained in:
Laurent Destailleur 2018-06-22 14:34:59 +02:00 committed by GitHub
parent a21e138c70
commit 5bee324578
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -292,7 +292,7 @@ class Paiement extends CommonObject
// Insert one discount by VAT rate category
$discount = new DiscountAbsolute($this->db);
$discount->fetch('',$invoice->id);
if (empty($discount->id)) {
if (empty($discount->id)) { // If the invoice was not yet converted into a discount (this may have been done manually before we come here)
$discount->description = '(DEPOSIT)';