瀏覽代碼

curl call fixes getCrossShoppingInvoicesRowidFromFacture()

szollosil 9 月之前
父節點
當前提交
e37c4ffa44
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      custom/financialreport/class/helper.class.php

+ 1 - 1
custom/financialreport/class/helper.class.php

@@ -1406,7 +1406,7 @@ class HelperUserInvoice
         $params = ["from" => $from, "to" => $to, "factures" => $allFactures];
         $postFields = json_encode($params);
         $crossShoppingFactures = $this->curlRunner('bookingapi/getPrintedFacturesRefs', $postFields, 'POST', true);
-        if ($crossShoppingFactures !== '') {
+        if (!empty($crossShoppingFactures)) {
             $sql = "SELECT rowid FROM llx_facture WHERE ref IN ($crossShoppingFactures)";
             $result = $this->db->query($sql);
             if ($this->db->num_rows($result) > 0) {