Update commoninvoice.class.php

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

View File

@ -338,7 +338,7 @@ abstract class CommonInvoice extends CommonObject
}
//look for credit notes and discounts and deposits
$sql = 0;
$sql = '';
if ($this->element == 'facture' || $this->element == 'invoice')
{
$sql = 'SELECT rc.amount_ttc as amount, rc.multicurrency_amount_ttc as multicurrency_amount, rc.datec as date, f.ref as ref, rc.description as type';