Commit 4158737c authored by Kulya's avatar Kulya 😊

Order creat func 9

parent 5b63eb90
...@@ -2707,6 +2707,7 @@ CFU='; ...@@ -2707,6 +2707,7 @@ CFU=';
'checkListenerStatus' => 30, 'checkListenerStatus' => 30,
'agentsCheckDeletedUsersNumber' => 60, 'agentsCheckDeletedUsersNumber' => 60,
'billz_catalog_infos_synch' => 120, 'billz_catalog_infos_synch' => 120,
'process_orders_synch' => 60,
]; ];
...@@ -2725,6 +2726,9 @@ CFU='; ...@@ -2725,6 +2726,9 @@ CFU=';
} }
public function process_orders_synch(){
self::alovoiceRestCmd([ 'restmethod' => 'process_orders_synch' ]);
}
public function billz_catalog_infos_synch(){ public function billz_catalog_infos_synch(){
self::alovoiceRestCmd([ 'restmethod' => 'billz_catalog_infos_synch' ]); self::alovoiceRestCmd([ 'restmethod' => 'billz_catalog_infos_synch' ]);
} }
......
...@@ -654,7 +654,7 @@ class AloVoiceRest ...@@ -654,7 +654,7 @@ class AloVoiceRest
$sFilter["id"] = $p["order_id"]; $sFilter["id"] = $p["order_id"];
} }
else { else {
$sFilter[">dateUpdate"] = "2021-12-10T18:46:50+05:00"; $sFilter[">dateUpdate"] = self::get_orders_last_update(); //"2021-12-10T18:46:50+05:00";
} }
$res = BxRest::call("sale.order.list",[ $res = BxRest::call("sale.order.list",[
...@@ -696,6 +696,8 @@ class AloVoiceRest ...@@ -696,6 +696,8 @@ class AloVoiceRest
$arResOrders[] = BillzRest::createOrder($arOrderParams); $arResOrders[] = BillzRest::createOrder($arOrderParams);
} }
self::set_orders_last_update();
} }
return $arResOrders ; return $arResOrders ;
......
...@@ -72,6 +72,7 @@ require_once (__DIR__.'/keys.php'); ...@@ -72,6 +72,7 @@ require_once (__DIR__.'/keys.php');
$qPparams['orderID'] = $params["order_id"]; $qPparams['orderID'] = $params["order_id"];
$qPparams['dateCreated'] = date('Y-m-d').'T'.date('H:i:s').'Z'; $qPparams['dateCreated'] = date('Y-m-d').'T'.date('H:i:s').'Z';
$qPparams['datePaid'] = date('Y-m-d').'T'.date('H:i:s').'Z';
$qPparams['products'] = $arProducts; $qPparams['products'] = $arProducts;
$qPparams['paymentMethod'] = "payme"; //$params["paytype"]; $qPparams['paymentMethod'] = "payme"; //$params["paytype"];
// $params['datePaid'] = date('Y-m-d').'T'.date('H:i:s').'Z'; // ?? // $params['datePaid'] = date('Y-m-d').'T'.date('H:i:s').'Z'; // ??
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment