Merge pull request #7388 from reeperbahnause/patch-3
FIX #7349 Change Class from Invoices to SupplierInvoices
This commit is contained in:
commit
6aeeb0bd73
@ -351,7 +351,7 @@ class SupplierInvoices extends DolibarrApi
|
||||
function _validate($data)
|
||||
{
|
||||
$invoice = array();
|
||||
foreach (Invoices::$FIELDS as $field) {
|
||||
foreach (SupplierInvoices::$FIELDS as $field) {
|
||||
if (!isset($data[$field]))
|
||||
throw new RestException(400, "$field field missing");
|
||||
$invoice[$field] = $data[$field];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user