11
This commit is contained in:
parent
a069bda15c
commit
ca6db5596d
@ -836,7 +836,7 @@ else
|
||||
indexi++;
|
||||
#endregion
|
||||
}
|
||||
if (sql_List1.Count > 0)
|
||||
if (sql_List1.Count > 1)
|
||||
{
|
||||
var kehuName = sql_List1.Where(t=> t["F_000"] !=null && t["F_005"] !=null).Select(t => new { kehu = t["F_005"].ToString(), zhuzhi = t["F_000"].ToString() }).Distinct().ToList();
|
||||
|
||||
@ -854,7 +854,8 @@ else
|
||||
// ");
|
||||
|
||||
sql_4 += string.Format(@"/*dialect*/
|
||||
Select T1.FPAYORGID As ZZ,T2.FNAME As GHDW,(FRECAMOUNTFOR) As SKJE,(FRECAMOUNT-F_AMOUNT*FEXCHANGERATE) AS DHXJE, CONVERT(NVARCHAR(50), t1.FDATE,23) AS FDATE
|
||||
Select T1.FPAYORGID As ZZ,T2.FNAME As GHDW,(FRECAMOUNT) As SKJE,(FRECAMOUNT-F_AMOUNT*FEXCHANGERATE) AS DHXJE, CONVERT(NVARCHAR(50), t1.FDATE,23) AS FDATE
|
||||
,(FRECAMOUNTFOR) As SKJE_YB,(FRECAMOUNTFOR-F_AMOUNT) AS DHXJE_YB
|
||||
From T_AR_RECEIVEBILL T1
|
||||
Join T_BD_CUSTOMER_L T2 On T1.FCONTACTUNIT = T2.FCUSTID And T2.FLOCALEID = 2052
|
||||
Where FRECAMOUNTFOR<> isnull( F_AMOUNT,0)
|
||||
@ -883,13 +884,28 @@ else
|
||||
this.View.Model.SetValue("F_zuzhi", item["ZZ"], indexi);
|
||||
//购货单位
|
||||
this.View.Model.SetValue("F_005", item["GHDW"], indexi);
|
||||
//收款金额
|
||||
//收款金额(本位币)
|
||||
this.View.Model.SetValue("F_010", item["SKJE"], indexi);
|
||||
//收款金额(原币)
|
||||
this.View.Model.SetValue("FDingDanZongE_YuanBi", item["SKJE_YB"], indexi);
|
||||
|
||||
//累计到款金额(本位币)
|
||||
this.View.Model.SetValue("F_020", item["DHXJE"], indexi);
|
||||
//应收款合计(本位币)
|
||||
this.View.Model.SetValue("F_021", -1* decimal.Parse(item["DHXJE"]?.ToString()), indexi);
|
||||
|
||||
//[实际已出货应收款合计(本位币)]
|
||||
this.View.Model.SetValue("F_SJYCHYSKHJ_BWB", -1 * decimal.Parse(item["DHXJE"]?.ToString()), indexi);
|
||||
|
||||
//累计到款金额(原币)
|
||||
this.View.Model.SetValue("FDaoKuanJinE_YuanBi", item["DHXJE_YB"], indexi);
|
||||
//应收款合计(原币)
|
||||
this.View.Model.SetValue("FYingShouHeJi_YuanBi", -1 * decimal.Parse(item["DHXJE_YB"]?.ToString()), indexi);
|
||||
|
||||
//[实际已出货应收款合计(原币)]
|
||||
this.View.Model.SetValue("F_025", -1 * decimal.Parse(item["DHXJE_YB"]?.ToString()), indexi);
|
||||
|
||||
|
||||
//订单日期
|
||||
this.View.Model.SetValue("F_012", item["FDATE"], indexi);
|
||||
//类型
|
||||
|
||||
@ -401,9 +401,9 @@ update [ZRP_YingShouMingXi_yuyubo] SET [
|
||||
|
||||
UPDATE [ZRP_YingShouMingXi_yuyubo] SET [收款人]=CASE WHEN [账龄月]>12 THEN '应收款专责小组' ELSE [责任人] END;
|
||||
|
||||
PRINT '应收款专责小组'
|
||||
UPDATE [ZRP_YingShouMingXi_yuyubo] SET SBU='应收款专责小组',[明细区域]='应收款专责小组'
|
||||
WHERE [账龄月]>12;
|
||||
-- PRINT '应收款专责小组'
|
||||
--UPDATE [ZRP_YingShouMingXi_yuyubo] SET SBU='应收款专责小组',[明细区域]='应收款专责小组'
|
||||
--WHERE [账龄月]>12;
|
||||
|
||||
|
||||
UPDATE [ZRP_YingShouMingXi_yuyubo] SET
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user