Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
OA
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
PHP
OA
Commits
ceb20185
提交
ceb20185
authored
7月 01, 2020
作者:
fengzy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
oa付款单
上级
39f78a74
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
89 行增加
和
81 行删除
+89
-81
finfybxModel.php
webmain/model/flow/finfybxModel.php
+10
-3
fund_depositModel.php
webmain/model/flow/fund_depositModel.php
+2
-5
oafkModel.php
webmain/model/flow/oafkModel.php
+77
-73
没有找到文件。
webmain/model/flow/finfybxModel.php
浏览文件 @
ceb20185
...
...
@@ -127,10 +127,17 @@ class flow_finfybxClassModel extends flowModel
$fund_account_cost
=
m
(
'c_fund_account'
)
->
getone
(
$sql
,
'id,freeze_amount'
);
$id
=
$fund_account_cost
[
'id'
];
$freeze
=
array
(
'freeze_amount'
=>
$fund_account_cost
[
'freeze_amount'
]
-
$vo
[
'amount'
],
);
if
(
$fund_account_cost
[
'freeze_amount'
]
==
0
){
$freeze
=
array
(
'freeze_amount'
=>
$vo
[
'amount'
],
);
}
else
{
$freeze
=
array
(
'freeze_amount'
=>
$fund_account_cost
[
'freeze_amount'
]
-
$vo
[
'amount'
],
);
}
m
(
'c_fund_account'
)
->
update
(
$freeze
,
"`id`='
$id
'"
);
}
...
...
webmain/model/flow/fund_depositModel.php
浏览文件 @
ceb20185
...
...
@@ -29,12 +29,9 @@ class flow_fund_depositClassModel extends flowModel
$account_balance
=
$this
->
rs
[
'trans_amount'
]
+
$data
[
'account_balance'
];
//当前余额
$detail
=
array
(
'account_balance'
=>
$account_balance
,
'opt_type'
=>
1
,
);
m
(
'c_fund_detail'
)
->
update
(
$detail
,
"`id`='
$id
'"
);
m
(
'c_fund_detail'
)
->
update
(
$detail
,
"`id`='
$id
'"
);
$toacc_detail
=
array
(
'account'
=>
$this
->
rs
[
'toaccount'
],
'opt_type'
=>
1
,
...
...
webmain/model/flow/oafkModel.php
浏览文件 @
ceb20185
...
...
@@ -213,7 +213,7 @@ class flow_oafkClassModel extends flowModel
$cloudUrl
=
"http://36.110.39.211/k3cloud/"
;
//登陆参数
$data
=
array
(
'5e
f2c166ad1afa
'
,
//帐套Id
'5e
64f6ff0bd47f
'
,
//帐套Id
'Administrator'
,
//用户名
'666666'
,
//密码
'2052'
//语言标识359010087
...
...
@@ -256,85 +256,88 @@ class flow_oafkClassModel extends flowModel
foreach
(
$oafk_details
as
$k
=>
$value
)
{
foreach
(
$value
as
$key
=>
$val
)
{
switch
(
$key
)
{
case
'charge_amount'
:
$arr
[
'FPAYAPPLYENTRY'
][
$k
][
'FAPPLYAMOUNTFOR'
]
=
$val
;
$arr
[
'FPAYBILLENTRY'
][
$k
][
'FPAYTOTALAMOUNTFOR'
]
=
$val
;
$arr
[
'FPAYBILLENTRY'
][
$k
][
'FPAYAMOUNTFOR_E'
]
=
$val
;
$arr
[
'FPAYBILLENTRY'
][
$k
][
'FSETTLEPAYAMOUNTFOR'
]
=
$val
;
$arr
[
'FPAYBILLENTRY'
][
$k
][
'FREALPAYAMOUNTFOR_D'
]
=
$val
;
break
;
case
'cbzx_code'
:
$arr
[
'FPAYBILLENTRY'
][
$k
][
'F_PAEZ_Cbzx'
][
'FNUMBER'
]
=
$val
;
break
;
default
:
$arr
[
'FPAY
APPLY
ENTRY'
][
$k
][
'FSETTLETYPEID'
][
'FNumber'
]
=
'JSFS04_SYS'
;
$arr
[
'FPAY
APPLYENTRY'
][
$k
][
'FPAYPURPOSEID'
][
'FNumber'
]
=
'SFKYT08
_SYS'
;
$arr
[
'FPAY
APPLY
ENTRY'
][
$k
][
'FENDDATE'
]
=
$this
->
rs
[
'applydt'
]
.
' 00:00:00'
;
$arr
[
'FPAY
APPLYENTRY'
][
$k
][
'FEXPECTPAY
DATE'
]
=
$this
->
rs
[
'applydt'
]
.
' 00:00:00'
;
$arr
[
'FPAY
APPLYENTRY'
][
$k
][
'FEACHBANKACCOUNT
'
]
=
$data
[
'bank_code'
];
$arr
[
'FPAYAPPLY
ENTRY'
][
$k
][
'FEACHCCOUNTNAME'
]
=
$data
[
'bank_holder'
];
$arr
[
'FPAYAPPLY
ENTRY'
][
$k
][
'FEACHBANKNAME'
]
=
$data
[
'open_bank_name'
];
$arr
[
'FPAY
BILL
ENTRY'
][
$k
][
'FSETTLETYPEID'
][
'FNumber'
]
=
'JSFS04_SYS'
;
$arr
[
'FPAY
BILLENTRY'
][
$k
][
'FPURPOSEID'
][
'FNumber'
]
=
'SFKYT12
_SYS'
;
$arr
[
'FPAY
BILL
ENTRY'
][
$k
][
'FENDDATE'
]
=
$this
->
rs
[
'applydt'
]
.
' 00:00:00'
;
$arr
[
'FPAY
BILLENTRY'
][
$k
][
'FPOST
DATE'
]
=
$this
->
rs
[
'applydt'
]
.
' 00:00:00'
;
$arr
[
'FPAY
BILLENTRY'
][
$k
][
'FACCOUNTID'
][
'FNumber
'
]
=
$data
[
'bank_code'
];
// $arr['FPAYBILL
ENTRY'][$k]['FEACHCCOUNTNAME'] = $data['bank_holder'];
// $arr['FPAYBILL
ENTRY'][$k]['FEACHBANKNAME'] = $data['open_bank_name'];
break
;
}
}
}
$data_model
=
'{
"Creator": "",
"NeedUpDateFields": [],
"NeedReturnFields": [],
"IsDeleteEntry": "true",
"SubSystemId": "",
"IsVerifyBaseDataField": "false",
"IsEntryBatchFill": "true",
"ValidateFlag": "true",
"NumberSearch": "true",
"InterationFlags": "",
"IsAutoSubmitAndAudit": "false",
"Model": {
"FID": 0,
"FBILLTYPEID": {
"FNUMBER": "FKSQ008"
},
"FDATE": "2020-06-29 00:00:00",
"FCONTACTUNITTYPE": "BD_Supplier",
"FCONTACTUNIT": {
"FNumber": "GDGYS-0003"
},
"FRECTUNITTYPE": "BD_Supplier",
"FRECTUNIT": {
"FNumber": "GDGYS-0003"
},
"FCURRENCYID": {
"FNumber": "PRE001"
},
"FAPPLYORGID": {
"FNumber": "1000"
},
"FPAYORGID": {
"FNumber": "1000"
},
"FSETTLEORGID": {
"FNumber": "1000"
},
"FPURCHASEORGID": {
"FNumber": "1000"
},
"FDOCUMENTSTATUS": "Z",
"FCANCELSTATUS": "A",
"FMAINBOOKID": {
"FNUMBER": "PRE001"
},
"FIsCredit": false,
"FSETTLECUR": {
"FNUMBER": "PRE001"
},
"FISCARRYRATE": false,
"F_PAEZ_Cbzx": {
"FNUMBER": "GS.BJ.B01.02"
},
"F_PAEZ_OADJBH": "213123213"
}
}'
;
"Creator": "",
"NeedUpDateFields": [],
"NeedReturnFields": [],
"IsDeleteEntry": "true",
"SubSystemId": "",
"IsVerifyBaseDataField": "false",
"IsEntryBatchFill": "true",
"ValidateFlag": "true",
"NumberSearch": "true",
"InterationFlags": "",
"IsAutoSubmitAndAudit": "false",
"Model": {
"FID": 0,
"FBillTypeID": {
"FNUMBER": "FKDLX06_SYS"
},
"FDATE": "2020-07-02 00:00:00",
"FCONTACTUNITTYPE": "BD_Supplier",
"FCONTACTUNIT": {
"FNumber": "GDGYS-0001"
},
"FRECTUNITTYPE": "BD_Supplier",
"FRECTUNIT": {
"FNumber": "GDGYS-0001"
},
"FISINIT": false,
"FCURRENCYID": {
"FNumber": "PRE001"
},
"FEXCHANGERATE": 1.0,
"FSETTLERATE": 1.0,
"FSETTLEORGID": {
"FNumber": "1000"
},
"FDOCUMENTSTATUS": "Z",
"FCancelStatus": "A",
"FPAYORGID": {
"FNumber": "1000"
},
"FISSAMEORG": true,
"FIsCredit": false,
"FSETTLECUR": {
"FNUMBER": "PRE001"
},
"FIsWriteOff": false,
"FREALPAY": false,
"FREMARK": "211111112121",
"FISCARRYRATE": false,
"FSETTLEMAINBOOKID": {
"FNUMBER": "PRE001"
},
"F_PAEZ_Cbzx1": {
"FNUMBER": "CBZX000022"
},
"F_PAEZ_OADJBH": "321123213213"
}
}'
;
...
...
@@ -342,15 +345,16 @@ class flow_oafkClassModel extends flowModel
// $model['Model']['F_PAEZ_Cbzx']['FNUMBER'] = $cbxmid;
$model
[
'Model'
][
'FCREATORID'
][
'FNUMBER'
]
=
$gonncode
;
$model
[
'Model'
][
'FDATE'
]
=
$applydt
;
$model
[
'Model'
][
'FREMARK'
]
=
$this
->
rs
[
'paymentBy'
];;
$model
[
'Model'
][
'F_PAEZ_OADJBH'
]
=
$this
->
rs
[
'docnum'
];;
// $model['Model']['FCONTACTUNIT']['FNumber']=$suppliername;
// $model['Model']['FRECTUNIT']['FNumber']=$suppliername;
$model
[
'Model'
][
'FPAY
APPLYENTRY'
]
=
$arr
[
'FPAYAPPLY
ENTRY'
];
$model
[
'Model'
][
'FPAY
BILLENTRY'
]
=
$arr
[
'FPAYBILL
ENTRY'
];
$data_model
=
json_encode
(
$model
);
$data
=
array
(
'
CN_PAYAPPLY
'
,
//业务对象标识FormId
'
AP_PAYBILL
'
,
//业务对象标识FormId
$data_model
//具体Json字串
);
...
...
@@ -404,7 +408,7 @@ class flow_oafkClassModel extends flowModel
'InterationFlags': ''
}"
;
$data
=
array
(
'
CN_PAYAPPLY
'
,
//业务对象标识FormId
'
AP_PAYBILL
'
,
//业务对象标识FormId
$data_model
//具体Json字串
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论