mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-02 19:33:14 +03:00
fixes for validator
This commit is contained in:
parent
1be638a970
commit
257b4a0c0f
BIN
retailcrm.zip
Normal file
BIN
retailcrm.zip
Normal file
Binary file not shown.
@ -38,10 +38,14 @@
|
||||
|
||||
declare(ticks = 1);
|
||||
|
||||
require_once __DIR__ . '/lib/RetailcrmCli.php';
|
||||
require_once dirname(__FILE__) . '/lib/RetailcrmCli.php';
|
||||
|
||||
function retailcrmCliInterruptHandler($signo) {
|
||||
RetailcrmLogger::output('WARNING: Interrupt received, stopping...');
|
||||
function retailcrmCliInterruptHandler($signo)
|
||||
{
|
||||
RetailcrmLogger::output(sprintf(
|
||||
'WARNING: Interrupt received, stopping... (%s)',
|
||||
print_r($signo, true)
|
||||
));
|
||||
RetailcrmCli::clearCurrentJob(null);
|
||||
exit(1);
|
||||
}
|
||||
@ -50,5 +54,5 @@ if (php_sapi_name() == 'cli') {
|
||||
$cli = new RetailcrmCli(__FILE__);
|
||||
$cli->execute('retailcrmCliInterruptHandler');
|
||||
} else {
|
||||
include_once __DIR__ . DIRECTORY_SEPARATOR . 'index.php';
|
||||
include_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'index.php';
|
||||
}
|
||||
|
@ -504,7 +504,7 @@ class RetailCRM extends Module
|
||||
);
|
||||
|
||||
if (((float) $order['discountManualAmount']) > ((float) $params['order']->total_paid)) {
|
||||
$crmOrder['discountManualAmount'] = $params['order']->total_paid;
|
||||
$order['discountManualAmount'] = $params['order']->total_paid;
|
||||
}
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user