WIP: schedulers..
This commit is contained in:
@@ -41,6 +41,7 @@ function importInvoices()
|
||||
addapiloInvoice($invoice, $platforms, $apilo_config['token']);
|
||||
}
|
||||
}
|
||||
$GLOBALS['log']->info('----- Importing invoices from Apilo, all processed, return TRUE');
|
||||
return true;
|
||||
}
|
||||
function loadApiloConfiguration()
|
||||
@@ -233,6 +234,7 @@ function addApiloInvoice($invoice, $platforms, $token)
|
||||
addApiloInvoiceProduct($invoice->id, $item);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function addApiloInvoiceProduct($invoiceId, $item)
|
||||
{
|
||||
|
||||
@@ -71,11 +71,14 @@ $job_strings = array(
|
||||
|
||||
function importApiloInvoices() {
|
||||
try {
|
||||
$GLOBALS['log']->info('----- Importing invoices from Apilo, _addJobsHereReturn, starting');
|
||||
$GLOBALS['db']->query("USE preDb_0dcc87940d3655fa574b253df04ca1c3;");
|
||||
require_once('modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/importApiloInvoices.php');
|
||||
importInvoices();
|
||||
$res = importInvoices();
|
||||
$GLOBALS['log']->info('----- Importing invoices from Apilo, _addJobsHereReturn', $res);
|
||||
return true;
|
||||
} catch (Exception $e) {
|
||||
$GLOBALS['log']->info('----- Importing invoices from Apilo, _addJobsHereReturn, error catched', $e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user