cqpCow 1 年之前
父節點
當前提交
18252752f1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Service/FyySqlServerService.php

+ 1 - 1
app/Service/FyySqlServerService.php

@@ -600,7 +600,7 @@ class FyySqlServerService extends Service
             ->leftJoin('Inventory as c','c.cInvCode','b.cInvCode')
             ->select('a.cDLCode as cdlcode','a.DLID as id','a.cDefine10 as customer_name','b.cSOCode as csocode','a.cDepCode as cdepcode','a.cCusCode as cuscode','a.dDate as date','b.iDLsID as idlsid','b.cWhCode as cwhcode','b.cInvCode as cinvcode','b.cInvName as product_title','b.cFree1 as cfree1','b.cFree2 as cfree2','b.cPosition as cposition','b.cBatch as cbatch','b.iQuantity as iquantity','b.iNum as inum','b.iInvExchRate as iinvexchrate','b.fOutQuantity as out_quantity','b.iUnitPrice as iunitcost','b.iMoney as imoney','b.cDefine28 as technology_material','b.cDefine30 as process_mark','c.cInvStd as product_size',DB::raw('(b.iQuantity - b.fOutQuantity) as quantity'),'a.cMemo as table_header_mark','b.cMemo as table_body_mark')
             ->whereNotNull('a.cVerifier')
-            ->whereColumn('b.iQuantity', '>', 'b.fOutQuantity')
+//            ->whereColumn('b.iQuantity', '>', 'b.fOutQuantity')
             ->where('a.dDate','>=',$data['time'][0])
             ->where('a.dDate','<=',$data['time'][1]);