Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
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
platform
hg-smart
Commits
1a7ee16d
Commit
1a7ee16d
authored
Jul 06, 2024
by
13420
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售开票小数位bug调整
parent
c54e0f26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
HGCW010.js
src/main/webapp/HG/CW/HGCW010.js
+9
-4
No files found.
src/main/webapp/HG/CW/HGCW010.js
View file @
1a7ee16d
...
...
@@ -32,14 +32,19 @@ $(function() {
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
){
var
item
=
e
.
items
[
0
];
if
(
e
.
field
==
"taxPoints"
){
if
(
item
.
thisSettlementTax
&&
item
.
totalContractPriceIncluding
){
let
thisSettlementAmount
=
item
.
totalContractPriceIncluding
/
(
item
.
taxPoints
/
100
+
1
);
// 使用toFixed方法四舍五入到两位小数,并转换为数字
thisSettlementAmount
=
Number
(
thisSettlementAmount
.
toFixed
(
2
));
resultGrid
.
setCellValue
(
item
,
'thisSettlementAmount'
,
thisSettlementAmount
)
}
if
(
item
.
taxPoints
&&
item
.
totalContractPriceIncluding
){
let
thisSettlementTax
=
item
.
totalContractPriceIncluding
-
item
.
thisSettlementAmount
;
// 使用toFixed方法四舍五入到两位小数,并转换为数字
thisSettlementTax
=
Number
(
thisSettlementTax
.
toFixed
(
2
));
resultGrid
.
setCellValue
(
item
,
'thisSettlementTax'
,
thisSettlementTax
)
}
if
(
item
.
thisSettlementTax
&&
item
.
totalContractPriceIncluding
){
let
thisSettlementAmount
=
item
.
totalContractPriceIncluding
/
(
item
.
taxPoints
/
100
+
1
);
resultGrid
.
setCellValue
(
item
,
'thisSettlementAmount'
,
thisSettlementAmount
)
}
loadChange
(
grid
,
e
,
"price"
);
}
}
...
...
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