]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
fix part 002
authorAlexander Smirnov <fredeom@mail.ru>
Fri, 7 Jun 2024 13:16:47 +0000 (16:16 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Fri, 7 Jun 2024 13:16:47 +0000 (16:16 +0300)
erp24/controllers/OrdersController.php
erp24/inc/checks.php
erp24/modul/orders/ajaxOrderConnectPay.php
erp24/modul/orders/ajaxOrdersPays.php
erp24/modul/orders/ajax_collation.php
erp24/modul/orders/collation.php
erp24/modul/orders/info_db2.php
erp24/views/orders/ajax-collation.php [new file with mode: 0644]
erp24/views/orders/ajax-order-connect-pay.php [new file with mode: 0644]
erp24/views/orders/ajax-orders-pays.php [new file with mode: 0644]
erp24/views/orders/info-db2.php [new file with mode: 0644]

index def5f55452c8348ad0f9914d9f4858ff217a0343..a563e2612fd74f1fbc924186dcd98be31f143d78 100644 (file)
@@ -53,6 +53,15 @@ class OrdersController extends Controller
 
     public function actionCollation() { return $this->render('collation'); }
 
+    public function actionInfoDb2() { return $this->renderPartial('info-db2'); }
+
+    public function actionAjaxOrdersPays() { return $this->renderPartial('ajax-orders-pays'); }
+
+    public function actionAjaxOrderConnectPay() { return $this->renderPartial('ajax-order-connect-pay'); }
+
+    public function actionAjaxCollation() { return $this->renderPartial('ajax-collation'); }
+    public function actionAjaxCheckDell() { return $this->renderPartial('ajax-check-dell'); }
+
     public function actionDelivery2()
     {
         if (!empty($_REQUEST["umoup"])) {
index beae7486b433d0934b6dfb4123a3dd8ba87683ed..94975215b0860dd920fb296fa0862db2ed2b9342 100644 (file)
@@ -5,15 +5,17 @@
 function create_order_from_amo($amo_id="") {
  global $db, $db2,$ACCESS_TOKEN;        
 if(!empty($amo_id)) {
-include_once("inc/db.php");  
-    
-if(empty($ACCESS_TOKEN)) include_once"/var/www/www-root/data/www/amo.bazacvetov24.ru/amo/amo_inc.php";
+include_once(__DIR__ . "/db.php");
+
+if(empty($ACCESS_TOKEN)) include_once(dirname(__DIR__, 1) . "/inc/amo/amo_inc.php");
 
 $deal = amo_rest($ACCESS_TOKEN, '/api/v4/leads/'.$amo_id.'?with=contacts','GET', []);
 $id_contact = $deal['_embedded']['contacts'][0]['id'];
 $custom_fields = $deal['custom_fields_values'];
 
 $i=1;
+$tags = '';
+$tags_arr = '';
 foreach($deal['_embedded']["tags"] as $ud => $tag) { 
  if($i<count($deal['_embedded']["tags"])) $z=","; else $z="";  
     $tags.="".$tag["name"]."$z";
@@ -138,17 +140,17 @@ if(!empty($massiv[$ma["field_id"]])) {
 }
 
 //if($row["delivery_time"]==$row["delivery_time_old"]) $row["delivery_time_old"]="";
-if($row["delivery_time_extend"]==$row["delivery_time"]) $row["delivery_time_extend"]="";
-if($row["delivery_time_extend"]==$row["delivery_time_old"]) $row["delivery_time_extend"]="";
+if(($row["delivery_time_extend"] ?? "") == ($row["delivery_time"] ?? '')) $row["delivery_time_extend"]="";
+if(($row["delivery_time_extend"] ?? "") == ($row["delivery_time_old"] ?? '')) $row["delivery_time_extend"]="";
 
 //foreach($row as $k => $v) echo"<br>$k => $v";
 //print'<pre>';print_r($deal);echo'</pre>';
 
 $contact = amo_rest($ACCESS_TOKEN, '/api/v4/contacts/' . $id_contact, $method = 'GET', []);
 //$arr = ['lead' => $deal,     'contact' => $contact];
-$phone=$contact["custom_fields_values"]["0"]["values"]["0"]["value"];
-$email=$contact["custom_fields_values"]["1"]["values"]["0"]["value"];
-$name=$contact["name"];
+$phone=$contact["custom_fields_values"]["0"]["values"]["0"]["value"] ?? '';
+$email=$contact["custom_fields_values"]["1"]["values"]["0"]["value"] ?? '';
+$name=$contact["name"] ?? '';
 $row["client"]=$name;
 $row["phone"]=$phone;
 $row["email"]=$email;
@@ -191,7 +193,9 @@ $summ=0;
 */
 $param=array();
 $upper=array("id","price","pay","delivery","store_id","payment_type_id","status_id","florist_id","dostavka_povtor_tip");
-foreach($upper as $pole) $param[$pole]=$row[$pole];     
+foreach($upper as $pole) {
+    $param[$pole] = $row[$pole] ?? "";
+}
 $param["price"]=$summ; 
 //$param["istochnik_id"]=1; 
 //$uopdet="UPDATE orders_amo SET $sql0 WHERE id=:id ";
@@ -266,8 +270,8 @@ return $row["id"];
 }
 
 } catch (Exception $e0) {
-   // echo 'Выброшено исключение: ',  $e0->getMessage(), "\n";
-    file_put_contents('modul/orders/error_create_order.txt', PHP_EOL . $e0->getMessage(), FILE_APPEND);
+    echo 'Выброшено исключение: ',  $e0->getMessage(), $e0->getFile(), $e0->getLine(), $e0->getTraceAsString(), "\n";
+//    file_put_contents('modul/orders/error_create_order.txt', PHP_EOL . $e0->getMessage(), FILE_APPEND);
      return false;    
 }
 
index 173508325f155480207b008ca4a30a226889e135..51257ff31b8deb741a704c0432e33824af921126 100644 (file)
@@ -1,11 +1,11 @@
-<?
-include_once("startup.php");
-include_once("inc/db.php");
-include_once("inc/base_new.php");
+<?php
+include_once(dirname(__DIR__, 2) . "/startup.php");
+include_once(dirname(__DIR__, 2) . "/inc/db.php");
+include_once(dirname(__DIR__, 2) . "/inc/base_new.php");
 
 
 if(!empty($_REQUEST["order_id"])) $order_id=(int)$_REQUEST["order_id"];
 if(!empty($_REQUEST["pay_id"])) $pay_id=htmlentities($_REQUEST["pay_id"]);
 
-mess("UPDATE  orders_pays SET order_id=$order_id WHERE guid='$pay_id' AND guid!=''   ");
-$db::sql("UPDATE  orders_pays SET order_id=? WHERE guid=? AND guid!=''  LIMIT 1 ",[$order_id,$pay_id]);
+mess("UPDATE  orders_pays SET order_id=$order_id WHERE guid='$pay_id' AND guid!=''");
+$db::sql("UPDATE  orders_pays SET order_id=? WHERE guid=? AND guid!=''",[$order_id,$pay_id]);
index 572e234e80b476129484cbcd5af1b6164356c33b..b04a9ac73d4a134d86f760fb373ab64886f610c7 100644 (file)
@@ -1,9 +1,8 @@
-<?
-include_once("startup.php");
-include_once("inc/db.php");
-include_once("inc/db2.php");
-include_once("inc/base_new.php");
-
+<?php
+include_once(dirname(__DIR__, 2) . "/startup.php");
+include_once(dirname(__DIR__, 2) . "/inc/db.php");
+include_once(dirname(__DIR__, 2) . "/inc/base_new.php");
+include_once(dirname(__DIR__, 2) . "/inc/design_new.php");
 
 if(!empty($_REQUEST["id"])) $id=(int)$_REQUEST["id"];
 if(!empty($_REQUEST["amo_id"])) $amo_id=(int)$_REQUEST["amo_id"];
@@ -12,7 +11,7 @@ if(!empty($_REQUEST["delivery_date"])) $delivery_date=htmlentities($_REQUEST["de
 if(!empty($_REQUEST["phone"])) $phone=(int)$_REQUEST["phone"];
 
 
-$order=$db2::getRow("SELECT  *,DATE_FORMAT(created_at, '%d.%m.%Y в %H:%i') as date FROM orders_amo WHERE id=?",[$id]);
+$order=$db::getRow("SELECT  *,TO_CHAR(created_at, 'DD.MM.YYYY в HH:MM') as date FROM orders_amo WHERE id=?",[$id]);
 
 echo"$id  $price $delivery_date 
 price=".$order["price"]."
@@ -52,7 +51,7 @@ if($order["price"]==(int)$row3["summ"]) $found=1;
 }
 
 
-if($found) mess("Платеж найден!");
+if($found ?? false) mess("Платеж найден!");
 
 
 if(empty($found)) {
index b92d1bab2057572d09c539431caea4cb13232914..3a32636ed5f42bd2ed85554c872697873652eaa0 100644 (file)
@@ -1,27 +1,20 @@
-<?
-include_once("startup.php");
-include_once("inc/base_new.php");
-include_once("inc/db2.php");
-include_once("inc/db.php");
+<?php
+include_once(dirname(__DIR__, 2) . "/startup.php");
+include_once(dirname(__DIR__, 2) . "/inc/db.php");
+include_once(dirname(__DIR__, 2) . "/inc/base_new.php");
 
 if(!empty($_REQUEST["amo_id"]) and !empty($_REQUEST["status"])) {
-$amo_id=(int)$_REQUEST["amo_id"]; 
-$status=(int)$_REQUEST["status"]; 
-$name=htmlentities($_REQUEST["name"]); 
-$row=$db2::getRow("SELECT * FROM orders_amo  WHERE amo_id=?  LIMIT 1",[$amo_id]);
-
-if($row) {
-
-
-$db::sql("insert ignore into orders_cheking (date, admin_id,amo_id,delivery_date, name, status) VALUES (NOW(),?, ?,?,?,? )",
-[$_SESSION["admin_id"], $amo_id, $row["delivery_date"], $name, $status]);
-mess("Поверка по заказу внесена статус  $status");
-   
-  //  if(!empty($err))  file_put_contents('modul/orders/collation_error.txt', PHP_EOL . "
-//   Чек не создался lid_id= $lid_id ".$err, FILE_APPEND);
-    
-
-}
+    $amo_id=(int)$_REQUEST["amo_id"];
+    $status=(int)$_REQUEST["status"];
+    $name=htmlentities($_REQUEST["name"]);
+    $row=$db::getRow("SELECT * FROM orders_amo  WHERE amo_id=?  LIMIT 1",[$amo_id]);
 
+    if($row) {
+        $db::sql("INSERT INTO orders_cheking (date, admin_id,amo_id,delivery_date, name, status) VALUES (NOW(),?, ?,?,?,? ) ON CONFLICT (amo_id) DO UPDATE SET date=NOW(), admin_id=?, delivery_date=?, name=?, status=?",
+        [$_SESSION["admin_id"], $amo_id, $row["delivery_date"], $name, $status, $_SESSION["admin_id"], $row["delivery_date"], $name, $status]);
+        mess("Поверка по заказу внесена статус  $status");
+          //  if(!empty($err))  file_put_contents('modul/orders/collation_error.txt', PHP_EOL . "
+        //   Чек не создался lid_id= $lid_id ".$err, FILE_APPEND);
+    }
 } else error_mess("Отсуствует ID заказа или статус проверки");
  
\ No newline at end of file
index 90e43f7794b72cf9f682bdd905adee2189cd2f88..24f8154145a8c7d1e6f0fbb848719f62dc8eb878 100644 (file)
@@ -6,6 +6,8 @@ include_once(dirname(__DIR__, 2) . "/inc/design_new.php");
 
 error_reporting(E_ALL ^ E_NOTICE);
 
+$in_orders = [];
+
  try {
      
 $delivery_arr=["Доставка","Такси", "Самовывоз", "Доставка из магазина"];
@@ -54,8 +56,9 @@ if(!empty($_POST["delivery"])) $delivery_arr_in=$_POST["delivery"];
 
 
    
-echo"<form action=\"\" method=post>  
-<table><td><input type=text name=lid_id value=\"" . ($lid_id ?? '') . "\" placeholder=\"ID заказа\" class=\"form-control\" style=\"width:100px;\">
+echo"<form action=\"\" method=post>";
+echo '<input type="hidden" name="_csrf" value="' . Yii::$app->request->getCsrfToken() . '" />';
+echo "<table><td><input type=text name=lid_id value=\"" . ($lid_id ?? '') . "\" placeholder=\"ID заказа\" class=\"form-control\" style=\"width:100px;\">
 </td><td><input type=text name=amo_id value=\"\"  placeholder=\"amo ID\"  class=\"form-control\" style=\"width:100px;\">
 </td><td>дата доставки:</td><td>
 <input type=date name=delivery_date value=\"$delivery_date\"  class=\"form-control\"></td>
@@ -133,7 +136,7 @@ foreach($_REQUEST["statuses"] ?? [] as $is =>$idf)  {
 
 
 
-$data= $db::getRows("SELECT * FROM orders_cheking WHERE date>=NOW()::date- INTERVAL '17 day'");
+$data= $db::getRows("SELECT amo_id, name, date, delivery_date, admin_id, status FROM orders_cheking WHERE date>=NOW()::date- INTERVAL '17 day'");
 foreach($data as $row) {
  $orders_cheking_array[$row["amo_id"]]=" ".$row["name"]." ".$row["date"]."  ".$row["delivery_date"]."  ".$users_arr[$row["admin_id"]]."  ".$row["status"]." ";  
  $orders_cheking_status_array[$row["amo_id"]]=$row["status"];
@@ -143,7 +146,10 @@ foreach($data as $row) {
     
 
    
-$checkarr= $db::getRows("SELECT * FROM sales WHERE date>=NOW()::date - INTERVAL '120 day' order by date DESC");
+$sql = "SELECT id, operation, summ, number, date, store_id_1c, order_id FROM sales WHERE date>='" . $delivery_date
+    . "'::date - INTERVAL '25 day' AND date<='" . $delivery_date . "' AND operation IN ('Возврат', 'Продажа') order by date DESC";
+
+$checkarr= $db::getRows($sql);
 //$cheks_txt=";
 foreach($checkarr as $checkr) {
 $cheks_txt ="<div class=\"cur col text-center p-1 m-1 "; 
@@ -157,8 +163,8 @@ $cheks_txt .="<span style=\"display:none\" id=\"check_".$checkr["id"]."\" class=
 }
 $cheks_txt .="</div>";
 
-if($checkr["operation"]=="Возврат")  $check_vozvrat_cnt[$checkr["order_id"]]=$check_vozvrat_cnt[$checkr["order_id"]]+1; 
-if($checkr["operation"]=="Продажа") $check_sale_cnt[$checkr["order_id"]]=$check_sale_cnt[$checkr["order_id"]]+1;  
+if($checkr["operation"]=="Возврат")  $check_vozvrat_cnt[$checkr["order_id"]]=($check_vozvrat_cnt[$checkr["order_id"]] ?? 0) + 1;
+if($checkr["operation"]=="Продажа") $check_sale_cnt[$checkr["order_id"]] = ($check_sale_cnt[$checkr["order_id"]] ?? 0) + 1;
 
 $sale[$checkr["order_id"]] = ($sale[$checkr["order_id"]] ?? '') . $cheks_txt;
 
@@ -168,7 +174,7 @@ $sale[$checkr["order_id"]] = ($sale[$checkr["order_id"]] ?? '') . $cheks_txt;
 
 $data4= $db::getRow("SELECT * FROM create_checks WHERE date>=NOW()::date- INTERVAL '1 day'  AND type='Продажа'");
 
-foreach($data4 as $row4) $create_check_arr[$row4["order_id"]]=$row4;
+foreach($data4 ? $data4 : [] as $row4) $create_check_arr[$row4["order_id"]]=$row4;
 $j=0;  
 $data = $db::getRows("SELECT *,TO_CHAR(delivery_date, 'DD.MM.YYYY') as dated FROM orders_amo WHERE 1 = 1  $where AND delivery_date <= NOW() order by delivery_date DESC LIMIT 750");
 echo"<table class=\"table table-hover\"><thead>
@@ -414,7 +420,7 @@ echo"</td>
 </tr>";
     
 
-if(!in_array($row["id"],$counter_no_check_array) and  $check_vozvrat_cnt[$row["id"]]>=$check_sale_cnt[$row["id"]]) $conter_false_check++;
+if(!in_array($row["id"],$counter_no_check_array ?? []) and  $check_vozvrat_cnt[$row["id"]]>=$check_sale_cnt[$row["id"]]) $conter_false_check++;
    
 
 }
@@ -447,7 +453,7 @@ function ajax_order_show(id,amo_id,price,delivery_date, phone) {
     const token3 = $(\"meta[name=csrf-token]\").attr(\"content\");
 
 $.ajax({
-       url: '/orders/info_db2/',
+       url: '/orders/info-db2/',
        method: 'post',       
        dataType: 'html',        
        data: { id: ''+id+'',amo_id: ''+amo_id+'' ,price: ''+price+'' , delivery_date: ''+delivery_date+'' , phone: ''+phone+'', [param3]: token3},  
@@ -507,7 +513,7 @@ function ajax_collation(amo_id) {
     const token3 = $(\"meta[name=csrf-token]\").attr(\"content\");
 
 $.ajax({
-       url: '/orders/ajax_collation/',
+       url: '/orders/ajax-collation/',
        method: 'post',       
        dataType: 'html',        
        data: { amo_id: ''+amo_id+'',   name: ''+$('#name__'+amo_id+'').val()+'',  status: ''+$('#status__'+amo_id+'').val()+'', [param3]: token3 },  
@@ -526,7 +532,7 @@ function ajax_return_check_dell(check_id) {
     const token3 = $(\"meta[name=csrf-token]\").attr(\"content\");
 
 $.ajax({
-       url: '/orders/ajax_check_dell/',
+       url: '/orders/ajax-check-dell/',
        method: 'post',       
        dataType: 'html',        
        data: { check_id: ''+check_id+'', [param3]: token3 },  
@@ -543,7 +549,7 @@ function ajax_return_check(sales_check) {
     const token3 = $(\"meta[name=csrf-token]\").attr(\"content\");
 
 $.ajax({
-       url: '/orders/ajax_return_check/',
+       url: '/orders/ajax-return-check/',
        method: 'post',       
        dataType: 'html',        
        data: { sales_check: ''+sales_check+'', [param3]: token3 },  
@@ -561,7 +567,7 @@ function ajax_create_check(order_id) {
     const token3 = $(\"meta[name=csrf-token]\").attr(\"content\");
 
 $.ajax({
-       url: '/orders/ajax_create_check/',
+       url: '/orders/ajax-create-check/',
        method: 'post',       
        dataType: 'html',        
        data: { order_id: ''+order_id+'', create_check: '2', [param3]: token3 },  
index 3565616af3a3d57234b38e9b44c4ffcf9dec34dd..addc738b63dacedabe8b12bff279d68d37c0a25f 100644 (file)
@@ -1,8 +1,10 @@
-<?
-include_once("startup.php");
-include_once("inc/db.php");
-include_once("inc/db2.php");
-include_once("inc/base_new.php");
+<?php
+include_once(dirname(__DIR__, 2) . "/startup.php");
+include_once(dirname(__DIR__, 2) . "/inc/db.php");
+include_once(dirname(__DIR__, 2) . "/inc/base_new.php");
+include_once(dirname(__DIR__, 2) . "/inc/design_new.php");
+
+global $sql_n2, $colors;
 
 $pipeline=4021495;
 
@@ -15,23 +17,23 @@ if(!empty($_REQUEST["id"])) $id=(int)$_REQUEST["id"];
  foreach ($data as $row)  $users_arr[$row["id"]]=$row["name"];
 
 
-$order=$db2::getRow("SELECT  *,DATE_FORMAT(created_at, '%d.%m.%Y в %H:%i') as date FROM orders_amo WHERE id=?",[$id]);
+$order=$db::getRow("SELECT  *,TO_CHAR(created_at, 'DD.MM.YYYY в HH:MM') as date FROM orders_amo WHERE id=?",[$id]);
 
 
 echo'<b>'.$order["name"].'</b> Сумма'.$order["price"].' Дата доставки: '.$order["delivery_date"].' '.$order["delivery_time"].'
 Тэги '.$order["tags"].'<br>
 Дата заказа '.$order["date"].'<br>
-Текст заказа '.$order["text_order"].'<br>
+Текст заказа '.($order["text_order"] ?? '').'<br>
 
 Телефон'.$order["phone"].'<br> Клиент'.$order["client"].'<br> Адрес '.$order["delivery_adress"].' ';
 
 echo"
-<a href=\"https://bazacvetov24.amocrm.ru/leads/detail/".$order["amo_id"]."\" target=new".$row["amo_id"]."  class=\"m-1 btn btn-sm btn-info\">заказ в амо</a>
+<a href=\"https://bazacvetov24.amocrm.ru/leads/detail/".$order["amo_id"]."\" target=new".($row["amo_id"] ?? '')."  class=\"m-1 btn btn-sm btn-info\">заказ в амо</a>
 <a href=\"https://bazacvetov24.ru/manager24/".$order["id"]."/?k=".$order["key_code"]."&p=J4CK22UEF4rFGBr6&amo_id=".$order["amo_id"]."\" target=new class=\"m-1 btn btn-sm btn-info\">состав</a>";
 
 
-$lid_id7 = $db2::getValue("SELECT lid_id FROM site_order_items_sostav WHERE lid_id=? AND tip=1",[$id]);
-if(empty($lid_id7)) {  foreach($sql_n2 as $k => $sql)   $db::sql($sql);}
+$lid_id7 = $db::getValue("SELECT lid_id FROM site_order_items_sostav WHERE lid_id=? AND tip=1",[$id]);
+if(empty($lid_id7)) {  foreach($sql_n2 ?? [] as $k => $sql)   $db::sql($sql);}
 
 
 
@@ -40,14 +42,15 @@ if(empty($lid_id7)) {       foreach($sql_n2 as $k => $sql)   $db::sql($sql);}
 echo"<table class=\"table table-tovars table-hover table-sm\" id=\"sostav__table\">
 <tbody>";      
 
-$datas = $db::getRows("SELECT item_id FROM  info_items_table_shop_0 WHERE cat_items_id='2'");
-foreach($datas as $ro) $usligi[$ro["item_id"]]=$ro["item_id"];  
-
-$datas = $db::getRows("SELECT item_id,id_1c FROM  info_items_table_shop_0 WHERE id_1c!=''");
-foreach($datas as $ro) $guid_arr[$ro["item_id"]]=$ro["id_1c"];  
+//$datas = $db::getRows("SELECT item_id FROM  info_items_table_shop_0 WHERE cat_items_id='2'");
+//foreach($datas as $ro) $usligi[$ro["item_id"]]=$ro["item_id"];
+//
+//$datas = $db::getRows("SELECT item_id,id_1c FROM  info_items_table_shop_0 WHERE id_1c!=''");
+//foreach($datas as $ro) $guid_arr[$ro["item_id"]]=$ro["id_1c"];
 
 $begin_step=1; 
-$datas = $db2::getRows("SELECT *, kol*price as sumn FROM  site_order_items_sostav WHERE lid_id='$id' AND tip=1 order by kol DESC, price DESC ");
+$datas = $db::getRows("SELECT *, kol*price as sumn FROM  site_order_items_sostav WHERE lid_id='$id' AND tip=1 order by kol DESC, price DESC ");
+$itogo = 0;
 foreach($datas as $row3) {
 
 $row3["price"]=str_replace(".00","",$row3["price"]);
@@ -55,7 +58,7 @@ $row3["kol"]=str_replace(".00","",$row3["kol"]);
 $row3["sumn"]=ceil($row3["sumn"]);
 $classi="";
 $cl="";
-if(!empty($row3["color_id"])) $cl=" цвет:".$colors[$row3["color_id"]]; 
+if(!empty($row3["color_id"])) $cl=" цвет:".($colors[$row3["color_id"]] ?? '');
 
 if(!empty($usligi[$row3["item_id"]])) $classi=" class=\"bg-warning\" ";
    
@@ -71,9 +74,3 @@ echo"</tbody></table>
 
 if(empty($begin_step)) error_mess("В чеке есть товары которым не присвоен товар из 1с - нужно поставить товар с сайта в соотвкетствие товару из 1с");
 
-
-
-
-
-
-
diff --git a/erp24/views/orders/ajax-collation.php b/erp24/views/orders/ajax-collation.php
new file mode 100644 (file)
index 0000000..c44656d
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+
+chdir(__DIR__ . '/../../');
+
+include 'modul/orders/ajax_collation.php';
\ No newline at end of file
diff --git a/erp24/views/orders/ajax-order-connect-pay.php b/erp24/views/orders/ajax-order-connect-pay.php
new file mode 100644 (file)
index 0000000..067f768
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+
+chdir(__DIR__ . '/../../');
+
+include 'modul/orders/ajaxOrderConnectPay.php';
\ No newline at end of file
diff --git a/erp24/views/orders/ajax-orders-pays.php b/erp24/views/orders/ajax-orders-pays.php
new file mode 100644 (file)
index 0000000..4fae627
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+
+chdir(__DIR__ . '/../../');
+
+include 'modul/orders/ajaxOrdersPays.php';
\ No newline at end of file
diff --git a/erp24/views/orders/info-db2.php b/erp24/views/orders/info-db2.php
new file mode 100644 (file)
index 0000000..ff7886e
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+
+chdir(__DIR__ . '/../../');
+
+include 'modul/orders/info_db2.php';
\ No newline at end of file