shish 2 년 전
부모
커밋
76a161f7b8
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      app-ghs/controllers/TestController.php

+ 6 - 1
app-ghs/controllers/TestController.php

@@ -108,7 +108,12 @@ class TestController extends BaseController
                         echo $orderSn . ' ' . $currentAmount . ' ' . $actPrice . ' ' . $discountAmount . ' ' . $labourCost . ' ' . $tkPrice;
                         die;
                     }
-                    echo $actPrice . ' ' . $currentAmount . ' ' . $orderSn . "\n";
+                    if(floatval($actPrice)!=floatval($currentAmount)){
+                        echo $actPrice . ' ' . $currentAmount . ' ' . $orderSn .' ===='. "\n";
+                    }else{
+                        echo $actPrice . ' ' . $currentAmount . ' ' . $orderSn . "\n";
+                    }
+
                     $itemTotalAmount = bcadd($itemTotalAmount, $currentAmount, 2);
 
                     if ($tkPrice > 0) {