提交 6e1378ae authored 作者: fengzy's avatar fengzy

项目付款单

上级 58f4a3c9
...@@ -48,8 +48,6 @@ protected function flowcheckafter($zt, $sm){ ...@@ -48,8 +48,6 @@ protected function flowcheckafter($zt, $sm){
$arr['FPAYBILLENTRY'][$k]['FSETTLETYPEID']['FNumber']='JSFS04_SYS'; $arr['FPAYBILLENTRY'][$k]['FSETTLETYPEID']['FNumber']='JSFS04_SYS';
$arr['FPAYBILLENTRY'][$k]['FPURPOSEID']['FNumber']='SFKYT12_SYS'; $arr['FPAYBILLENTRY'][$k]['FPURPOSEID']['FNumber']='SFKYT12_SYS';
$arr['FPAYBILLENTRY'][$k]['FCostType']['FNUMBER']='CBLX0017';
$arr['FPAYBILLENTRY'][$k]['FPOSTDATE']=$this->rs['applydt'].' 00:00:00'; $arr['FPAYBILLENTRY'][$k]['FPOSTDATE']=$this->rs['applydt'].' 00:00:00';
// $arr['FPAYBILLENTRY'][$k]['FOPPOSITEBANKACCOUNT']=$data['bank_code']; // $arr['FPAYBILLENTRY'][$k]['FOPPOSITEBANKACCOUNT']=$data['bank_code'];
// $arr['FPAYBILLENTRY'][$k]['FOPPOSITECCOUNTNAME']=$data['bank_holder']; // $arr['FPAYBILLENTRY'][$k]['FOPPOSITECCOUNTNAME']=$data['bank_holder'];
......
...@@ -143,6 +143,7 @@ protected function flowcheckafter($zt, $sm){ ...@@ -143,6 +143,7 @@ protected function flowcheckafter($zt, $sm){
$model['Model']['FPAYBILLENTRY']=$arr['FPAYBILLENTRY']; $model['Model']['FPAYBILLENTRY']=$arr['FPAYBILLENTRY'];
$data_model=json_encode($model); $data_model=json_encode($model);
var_dump($data_model);
$data = array( $data = array(
'AP_PAYBILL',//业务对象标识FormId 'AP_PAYBILL',//业务对象标识FormId
$data_model//具体Json字串 $data_model//具体Json字串
......
...@@ -22,6 +22,8 @@ class flow_projectfkClassModel extends flowModel ...@@ -22,6 +22,8 @@ class flow_projectfkClassModel extends flowModel
//明细 //明细
$projectfk=$this->db->getrows('oa_c_projectfk_details',"mid='".$this->rs['id']."'"); $projectfk=$this->db->getrows('oa_c_projectfk_details',"mid='".$this->rs['id']."'");
$cbxmid=$this->rs['cbxmid'];//成本中心
$arr=[]; $arr=[];
foreach ($projectfk as $k=> $value) { foreach ($projectfk as $k=> $value) {
...@@ -35,9 +37,9 @@ class flow_projectfkClassModel extends flowModel ...@@ -35,9 +37,9 @@ class flow_projectfkClassModel extends flowModel
case 'cbzxid': case 'cbzxid':
$arr['FPAYBILLENTRY'][$k]['F_PAEZ_Cbzx']['FNUMBER']=$val; $arr['FPAYBILLENTRY'][$k]['F_PAEZ_Cbzx']['FNUMBER']=substr($val,0,strpos($val, "("));
$arr['FPAYBILLENTRY'][$k]['F_XM_ID']['FNUMBER']=$val; $arr['FPAYBILLENTRY'][$k]['F_XM_ID']['FNUMBER']=substr($val,0,strpos($val, "("));
break; break;
case 'amount': case 'amount':
...@@ -104,28 +106,28 @@ class flow_projectfkClassModel extends flowModel ...@@ -104,28 +106,28 @@ class flow_projectfkClassModel extends flowModel
"Model": { "Model": {
"FID": 0, "FID": 0,
"FBillTypeID": { "FBillTypeID": {
"FNUMBER": "FKDLX08_SYS" "FNUMBER": "FKDLX02_SYS"
}, },
"FDATE": "2020-07-29 00:00:00", "FDATE": "2020-08-23 00:00:00",
"FCONTACTUNITTYPE": "BD_Supplier", "FCONTACTUNITTYPE": "BD_Supplier",
"FCONTACTUNIT": { "FCONTACTUNIT": {
"FNumber": "GDGYS-0002" "FNumber": "GDGYS-0004"
}, },
"FRECTUNITTYPE": "BD_Supplier", "FRECTUNITTYPE": "BD_Supplier",
"FRECTUNIT": { "FRECTUNIT": {
"FNumber": "GDGYS-0002" "FNumber": "GDGYS-0004"
},
"FDepartment": {
"FNumber": "CQ.BM.03"
}, },
"FISINIT": false, "FISINIT": false,
"FCURRENCYID": { "FCURRENCYID": {
"FNumber": "PRE001" "FNumber": "PRE001"
}, },
"F_YeWuLine": {
"FNUMBER": "001"
},
"FDepartment": {
"FNumber": "GS.BM.02.01"
},
"FEXCHANGERATE": 1.0, "FEXCHANGERATE": 1.0,
"FEXCHANGETYPE": {
"FNumber": "HLTX01_SYS"
},
"FSETTLERATE": 1.0, "FSETTLERATE": 1.0,
"FSETTLEORGID": { "FSETTLEORGID": {
"FNumber": "1000" "FNumber": "1000"
...@@ -146,9 +148,42 @@ class flow_projectfkClassModel extends flowModel ...@@ -146,9 +148,42 @@ class flow_projectfkClassModel extends flowModel
"FSETTLEMAINBOOKID": { "FSETTLEMAINBOOKID": {
"FNUMBER": "PRE001" "FNUMBER": "PRE001"
}, },
"F_PAEZ_OADJBH": "111111" "FSETTLEEXCHANGETYPE": {
"FNUMBER": "HLTX01_SYS"
},
"F_PAEZ_OADJBH": "213123213",
"FPAYBILLENTRY": [
{
"FSETTLETYPEID": {
"FNumber": "JSFS04_SYS"
},
"FPURPOSEID": {
"FNumber": "SFKYT001"
},
"FPAYTOTALAMOUNTFOR": 123213.0,
"FPAYAMOUNTFOR_E": 123213.0,
"FSETTLEPAYAMOUNTFOR": 123213.0,
"FREALPAYAMOUNTFOR_D": 123213.0,
"FACCOUNTID": {
"FNumber": "01090879400120105061427"
},
"FPAYAMOUNT_E": 123213.0,
"FPOSTDATE": "2020-08-23 00:00:00",
"FRuZhangType": "1",
"FPayType": "A",
"F_XM_ID": {
"FNUMBER": "18003"
},
"F_KXType": {
"FNUMBER": "008"
},
"F_PAEZ_Cbzx": {
"FNUMBER": "BDJC-1-19004"
}
} }
]
}
}'; }';
$model=json_decode($data_model,true); $model=json_decode($data_model,true);
...@@ -274,7 +309,7 @@ class flow_projectfkClassModel extends flowModel ...@@ -274,7 +309,7 @@ class flow_projectfkClassModel extends flowModel
if($flowid['nowcheckid']==$checkid){ if($flowid['nowcheckid']==$checkid){
$data = m('c_projectfk_details')->getall('mid='.$this->rs['id'], 'id,cbzxid,amount'); $data = m('c_projectfk_details')->getall('mid='.$this->rs['id'], 'id,cbzxid,amount');
foreach ($data as $key => $vo) { foreach ($data as $key => $vo) {
$project=self::project($vo['cbzxid']);
$cbzx_code= self::dept($project['data'][0]['jz_cur_dept']); $cbzx_code= self::dept($project['data'][0]['jz_cur_dept']);
$sql = " cost_id='$cbzx_code' and status = 1 and is_default=1"; $sql = " cost_id='$cbzx_code' and status = 1 and is_default=1";
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论