Update commoninvoice.class.php

This commit is contained in:
Laurent Destailleur 2019-12-31 17:10:03 +01:00 committed by GitHub
parent a369690e16
commit 9774b05f52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -336,7 +336,8 @@ abstract class CommonInvoice extends CommonObject
$retarray[]=array('amount'=>$obj->amount,'type'=>$obj->code, 'date'=>$obj->datep, 'num'=>$obj->num, 'ref'=>$obj->ref);
$i++;
}
$this->db->free($resql);
//look for credit notes and discounts and deposits
$sql = '';
if ($this->element == 'facture' || $this->element == 'invoice')