]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-394] debug 4
authorAlexander Smirnov <fredeom@mail.ru>
Tue, 1 Apr 2025 10:06:36 +0000 (13:06 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Tue, 1 Apr 2025 10:06:36 +0000 (13:06 +0300)
erp24/modul/orders/delivery.php
erp24/views/orders/delivery.php

index 74e1545098ed8732e68c57e5d0954d0c42f321b1..d4e59e363660bf2cc9f597c5eead5986982a402f 100644 (file)
@@ -599,10 +599,6 @@ and $yes==0 and $row["payment_type_id"]!="Оплачен в магазине") {
     
 $ord=$db::getValue("SELECT order_id FROM sales WHERE order_id=? AND order_id > '0' order by date desc LIMIT 1",[$row["amo_id"]]);
 
-var_dump($create_check);
-var_dump($ord);
-var_dump($seller_id);
-
 if(empty($create_check) and empty($ord) and !empty($seller_id))
 
 echo"<button class=\"btn btn-sm btn-danger btn__".$row["amo_id"]."\" onclick=\"ajax_create_check_json('".$row["amo_id"]."');\">пробить чек</button>";
index 7145ac1cb5384bc803e13dfaca26b13f660c7286..a2323b83c8275bdbab56ec1cf9240e96a78a1552 100644 (file)
@@ -242,13 +242,7 @@ $this->registerCss('
                             <?php if (($store_arr[$orderAmo["store_id"]] ?? '' == "ул. Аэродромная 28 (к-р Москва)" ||
                                 $orderAmo["store"] == "ул. Аэродромная, 28" || $orderAmo["store"] == "") && $yeses[$ind] == 0 &&
                                 $orderAmo["payment_type_id"] != "Оплачен в магазине"): ?>
-                                <?php
-                                var_dump($create_check);
-                                var_dump($ords[$ind]);
-                                var_dump($seller_id[$ind]);
-                                var_dump($ind);
-                                ?>
-                                <?php if ($create_check > 0 && $ords[$ind] && $seller_id[$ind]): ?>
+                                <?php if (empty($create_check) && $ords[$ind] && $seller_id[$ind]): ?>
                                     <button class="btn btn-sm btn-danger btn__<?= $orderAmo["amo_id"] ?>"
                                             onclick="ajax_create_check_json('<?= $orderAmo["amo_id"] ?>');">пробить чек</button>
                                 <?php endif; ?>