Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
鲁鑫
topsun-bpm
Commits
d55909bb
Commit
d55909bb
authored
Apr 24, 2025
by
1650842865
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
付款申请无PO金额计算优化;记账过账日期记账凭证日期在申请人第二次填写数据的时候再传给SAP
parent
693254e6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
9 deletions
+38
-9
payApplyNoPO.js
...n/webapp/biz/topsun/sap/costReimbursement/payApplyNoPO.js
+31
-4
SapCostReimbursementApplicationImpl.java
...application/impl/SapCostReimbursementApplicationImpl.java
+7
-5
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApplyNoPO.js
View file @
d55909bb
...
...
@@ -361,9 +361,9 @@ function getColumns() {
type
:
'text'
}});
columns
.
push
({
display
:
"税额(本位币)"
,
name
:
"kwetr1"
,
width
:
120
,
minwidth
:
120
,
type
:
"money"
,
align
:
"left"
,
//等于含税金额(本位币)减去税额(本位币)
render
:
function
(
item
){
return
item
.
netwr1
=
MathUtil
.
sub
(
item
.
kzwi11
,
item
.
kwetr1
);
editor
:
{
mask
:
'nnnnnnnnn.nn'
,
type
:
'text'
}});
return
columns
;
}
...
...
@@ -540,6 +540,7 @@ function loadGrid(obj) {
obj
.
gridManager
.
updateRow
(
item
.
record
,
{
kwetr
:
kwetr
,
kzwi11
:
money
,
kwetr1
:
kwetr1
});
totalGrid
();
changeFinancialAuditGridData
();
}
var
check
=
true
;
if
(
item
.
column
.
name
==
"zepPtdamount1"
){
...
...
@@ -970,7 +971,7 @@ function businessJudgmentUnit() {
var
isApply
=
isApplyProcUnit
();
if
(
isApply
)
{
$
(
"#approvalMoney"
).
hide
();
$
(
"#financialAudit"
).
hide
();
//
$("#financialAudit").hide();
$
(
"#financialAudit_sapReturn"
).
hide
();
$
(
"#capitalPost"
).
hide
();
$
(
"#paymentAccomplish_sapReturn"
).
hide
();
...
...
@@ -1059,6 +1060,32 @@ function initFinancialAuditGridData(){
}
}
function
changeFinancialAuditGridData
(){
var
_grid
=
UICtrl
.
getGridManager
(
'#reimbursementApplierGrid'
);
var
_secondGrid
=
UICtrl
.
getGridManager
(
'#financialAuditGrid'
);
if
(
_grid
!=
null
&&
_secondGrid
!=
null
){
var
datas
=
_grid
.
currentData
.
Rows
;
if
(
datas
.
length
>
0
&&
_secondGrid
.
currentData
!=
null
){
var
secondRows
=
_secondGrid
.
currentData
.
Rows
;
$
.
each
(
datas
,
function
(
i
,
data
)
{
$
.
each
(
secondRows
,
function
(
i
,
row
)
{
if
(
data
.
zepItemno
===
row
.
zepItemno
){
_secondGrid
.
updateRow
(
row
,{
zepPdamount1
:
data
.
netwr
,
zepPdtax1
:
data
.
kwetr
,
zepPtdamount1
:
data
.
kzwi1
,
zepPdamount
:
MathUtil
.
mul
(
data
.
netwr
,
data
.
kursf
),
zepPdtax
:
data
.
kwetr1
,
zepPtdamount
:
data
.
kzwi11
})
}
});
});
totalFinancialAuditGrid
(
secondRows
);
}
}
}
function
totalFinancialAuditGrid
(
data
){
var
zepPtamount
=
0
,
//审批总金额(本位币)
zepPttax
=
0
,
//审批总税额(本位币)
...
...
topsun/src/main/java/com/huigou/topsun/sap/costReimbursement/application/impl/SapCostReimbursementApplicationImpl.java
View file @
d55909bb
...
...
@@ -275,18 +275,20 @@ public class SapCostReimbursementApplicationImpl extends FlowBroker implements S
String
zpayStaus
=
(
String
)
detailMap
.
get
(
"ZPAY_STAUS"
);
if
(
"已支付"
.
equals
(
zpayStaus
)){
detailMap
.
put
(
"ZPAY_STAUS"
,
"S"
);
String
budat
=
DateUtil
.
getDateFormat
(
new
Date
(),
"yyyyMMdd"
);
detailMap
.
put
(
"BUDAT"
,
budat
);
detailMap
.
put
(
"BLDAT"
,
budat
);
costReimbursementDetail
.
setBudat
(
new
Date
());
costReimbursementDetail
.
setBldat
(
new
Date
());
}
else
{
detailMap
.
put
(
"ZPAY_STAUS"
,
""
);
}
if
(
costReimbursementDetail
.
getZepFpldate
()
!=
null
){
String
dateFormat
=
DateUtil
.
getDateFormat
(
costReimbursementDetail
.
getZepFpldate
(),
"yyyyMMdd"
);
detailMap
.
put
(
"ZEP_FPLDATE"
,
dateFormat
);
}
String
budat
=
DateUtil
.
getDateFormat
(
new
Date
(),
"yyyyMMdd"
);
detailMap
.
put
(
"BUDAT"
,
budat
);
detailMap
.
put
(
"BLDAT"
,
budat
);
detailMap
.
putAll
(
map
);
itemList
.
add
(
detailMap
);
costReimbursementDetail
.
setBudat
(
new
Date
());
costReimbursementDetail
.
setBldat
(
new
Date
());
costReimbursementDetail
.
setBankn1
(
sapCostReimbursement
.
getBankn1
());
costReimbursementDetail
.
setZepTxt1
(
sapCostReimbursement
.
getZepTxt1
());
costReimbursementDetail
.
setZt012kText1
(
sapCostReimbursement
.
getZt012kText1
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment