Fix error when supplier deposit are used to pay supplier invoice
This commit is contained in:
parent
309eccc426
commit
ab3f19dd59
@ -159,11 +159,6 @@ abstract class CommonInvoice extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public function getSumDepositsUsed($multicurrency = 0)
|
public function getSumDepositsUsed($multicurrency = 0)
|
||||||
{
|
{
|
||||||
if ($this->element == 'facture_fourn' || $this->element == 'invoice_supplier') {
|
|
||||||
// TODO
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/discount.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/discount.class.php';
|
||||||
|
|
||||||
$discountstatic = new DiscountAbsolute($this->db);
|
$discountstatic = new DiscountAbsolute($this->db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user