FIX require product class (fixes POST /supplierinvoices REST API endpoint)
When passing a fk_product field into a supplier invoice line on the POST /supplierinvoices REST API endpoint, we need to require the product class first in fournisseur.facture.class.php to be able to load the Product from the passed id.
This commit is contained in:
parent
d4bd80a168
commit
b90815b972
@ -36,6 +36,7 @@
|
||||
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/class/commoninvoice.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/multicurrency/class/multicurrency.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
||||
|
||||
/**
|
||||
* Class to manage suppliers invoices
|
||||
|
||||
Loading…
Reference in New Issue
Block a user