From 317ed34d1fd3b62764d03ba5e11a01d4dc0aee98 Mon Sep 17 00:00:00 2001 From: lyt Date: Wed, 8 Jan 2020 16:11:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=B6=E6=AC=BE=E6=8C=89=E7=85=A7?= =?UTF-8?q?=E6=94=B6=E6=AC=BE=E6=96=B9=E5=AD=97=E6=AE=B5=EF=BC=9B=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trippestOrderSync/models/vendor_money_model.php | 6 +++--- .../trippestOrderSync/views/vendor_money_sum.php | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/webht/third_party/trippestOrderSync/models/vendor_money_model.php b/webht/third_party/trippestOrderSync/models/vendor_money_model.php index b76fabba..1a9ce60f 100644 --- a/webht/third_party/trippestOrderSync/models/vendor_money_model.php +++ b/webht/third_party/trippestOrderSync/models/vendor_money_model.php @@ -413,14 +413,14 @@ class Vendor_money_model extends CI_Model { (select isnull(SUM(cast(GCI_priceCNY as decimal(10,2))),0) from GroupCombineInfo where GCI_GRI_SN=COLI_GRI_SN and GCI_combineNo<>'cancel' ) as TLD_total_price, (select isnull(SUM(cast(GCI_agencyReceipt as decimal(10,2))),0) from GroupCombineInfo where GCI_GRI_SN=COLI_GRI_SN and GCI_combineNo is not null ) as TLD_agency_receipt, (select isnull(SUM(cast(GAI_SSJE as decimal(10,2))),0) from BIZ_GroupAccountInfo where GAI_COLI_SN=COLI_SN - and GAI_Type in (" . PAY_OTHER . ") + --and GAI_Type in (" . PAY_OTHER . ") AND GAI_VEI_SN in ($all_vendor,1343) -- 图兰朵的代收 and DeleteFlag=0 ) as HT_agency_receipt, (select isnull(SUM(cast(GAI_SSJE as decimal(10,2))),0) from BIZ_GroupAccountInfo where GAI_COLI_SN=COLI_SN - and GAI_Type not in (" . PAY_OTHER . ") + --and GAI_Type not in (" . PAY_OTHER . ") and DeleteFlag=0 - --and isnull(GAI_VEI_SN,0) in (0,) + and isnull(GAI_VEI_SN,30561) = 30561 ) as HT_haina_receipt, (select top 1 CONVERT(varchar(10),ISNULL( GAI_SQJE,0)) + isnull(GAI_SQJECurrency,'')+',' + isnull(GAI_Memo,'') from BIZ_GroupAccountInfo ga where ga.DeleteFlag=0 and GAI_COLI_SN=COLI_SN and GAI_SQJE>0 and isnull(GAI_SSJE,0)=0 diff --git a/webht/third_party/trippestOrderSync/views/vendor_money_sum.php b/webht/third_party/trippestOrderSync/views/vendor_money_sum.php index d5a9c6b1..a896ac50 100644 --- a/webht/third_party/trippestOrderSync/views/vendor_money_sum.php +++ b/webht/third_party/trippestOrderSync/views/vendor_money_sum.php @@ -344,6 +344,7 @@

财务表读取总成本

+

读取相同拼团号下的订单的财务表, 列出存在财务表数据未根据实际成本计算的.

  1. 数据为空: 虚拟订单没有团号, 无法计算. 如:
      @@ -362,13 +363,14 @@

      财务表计算总成本

      - +