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
d87e7454
Commit
d87e7454
authored
Sep 10, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-09-10 采购发票录入发票总金额,系统自动核销采购收货明细,按照相同供应商、从最早日期往后自动核销
parent
e1c668ad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
ServiceHGCW012.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW012.java
+3
-3
HGCW012.jsp
src/main/webapp/HG/CW/HGCW012.jsp
+7
-7
HGCW012C.jsp
src/main/webapp/HG/CW/HGCW012C.jsp
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW012.java
View file @
d87e7454
...
...
@@ -157,6 +157,9 @@ public class ServiceHGCW012 extends ServiceBase {
BigDecimal
thisSettlementTax
=
BigDecimal
.
ZERO
;
// 计算 税额
// 发票金额大于货物金额
if
(
totalContractPriceIncluding
.
compareTo
(
amount
)
>=
0
){
if
(
totalContractPriceIncluding
.
compareTo
(
amount
)
==
0
){
flag
=
false
;
}
totalContractPriceIncluding
=
totalContractPriceIncluding
.
subtract
(
amount
);
thisSettlementAmount
=
amount
.
divide
(
taxRateAsDecimal
,
3
,
RoundingMode
.
HALF_UP
);
//不含税金额
thisSettlementTax
=
amount
.
subtract
(
thisSettlementAmount
);
// 计算 税额
...
...
@@ -165,9 +168,6 @@ public class ServiceHGCW012 extends ServiceBase {
hgcg003B
.
setCancelAmount
(
c
);
hgcg003B
.
setUnCancelAmount
(
BigDecimal
.
ZERO
);
hgcg003B
.
setIsInvoicing
(
HGConstant
.
CgIsInvoicing
.
S_1
);
if
(
totalContractPriceIncluding
.
compareTo
(
amount
)
==
0
){
flag
=
false
;
}
}
else
{
thisSettlementAmount
=
totalContractPriceIncluding
.
divide
(
taxRateAsDecimal
,
3
,
RoundingMode
.
HALF_UP
);
//不含税金额
thisSettlementTax
=
totalContractPriceIncluding
.
subtract
(
thisSettlementAmount
);
// 计算 税额
...
...
src/main/webapp/HG/CW/HGCW012.jsp
View file @
d87e7454
...
...
@@ -39,20 +39,20 @@
<EF:EFComboColumn
ename=
"companyCode"
cname=
"公司名称"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
textField=
"textField"
valueField=
"valueField"
maxLength=
"16"
readonly=
"
fals
e"
width=
"210"
required=
"true"
maxLength=
"16"
readonly=
"
tru
e"
width=
"210"
required=
"true"
align=
"center"
filter=
"contains"
sort=
"true"
>
<EF:EFOptions
blockId=
"roleCompany"
textField=
"companyName"
valueField=
"companyCode"
/>
</EF:EFComboColumn>
<EF:EFComboColumn
ename=
"projCode"
cname=
"项目名称"
blockName=
"proj_record_block_id"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
textField=
"textField"
valueField=
"valueField"
maxLength=
"16"
readonly=
"
fals
e"
width=
"210"
required=
"true"
maxLength=
"16"
readonly=
"
tru
e"
width=
"210"
required=
"true"
align=
"center"
filter=
"contains"
sort=
"true"
>
</EF:EFComboColumn>
<EF:EFComboColumn
ename=
"partyA"
cname=
"供应商名称"
blockName=
"sup_record_block_id"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
textField=
"textField"
valueField=
"valueField"
maxLength=
"16"
readonly=
"
fals
e"
width=
"210"
required=
"true"
maxLength=
"16"
readonly=
"
tru
e"
width=
"210"
required=
"true"
align=
"center"
filter=
"contains"
sort=
"true"
>
</EF:EFComboColumn>
<
%
--
<
EF:EFColumn
ename=
"partyA"
cname=
"供应商名称"
width=
"220"
enable=
"false"
readonly=
"true"
align=
"center"
/>
--%>
...
...
@@ -70,15 +70,15 @@
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
enable=
"true"
>
<EF:EFCodeOption
codeName=
"hggp.cw.taxPoints"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"发票总额"
width=
"120"
enable=
"true"
format=
"{0:
C
3}"
editType=
"text"
displayType=
"0.000"
sort=
"true"
align=
"right"
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"发票总额"
width=
"120"
enable=
"true"
format=
"{0:
N
3}"
editType=
"text"
displayType=
"0.000"
sort=
"true"
align=
"right"
readonly=
"true"
data-regex=
"/^-?[0-9]{1,15}([.][0-9]{1,3})?$/"
maxLength=
"15"
required=
"true"
data-errorprompt=
"请输入数字,该值最大可设置15位整数和3位小数!"
/>
<EF:EFColumn
ename=
"thisSettlementAmount"
cname=
"不含税金额"
width=
"120"
enable=
"false"
format=
"{0:
C
3}"
editType=
"text"
<EF:EFColumn
ename=
"thisSettlementAmount"
cname=
"不含税金额"
width=
"120"
enable=
"false"
format=
"{0:
N
3}"
editType=
"text"
displayType=
"0.000"
sort=
"true"
align=
"right"
data-regex=
"/^-?[0-9]{1,15}([.][0-9]{1,3})?$/"
maxLength=
"15"
required=
"false"
data-errorprompt=
"请输入数字,该值最大可设置15位整数和3位小数!"
/>
<EF:EFColumn
ename=
"thisSettlementTax"
cname=
"税额"
width=
"120"
enable=
"false"
format=
"{0:
C
3}"
editType=
"text"
<EF:EFColumn
ename=
"thisSettlementTax"
cname=
"税额"
width=
"120"
enable=
"false"
format=
"{0:
N
3}"
editType=
"text"
displayType=
"0.000"
sort=
"true"
align=
"right"
data-regex=
"/^-?[0-9]{1,15}([.][0-9]{1,3})?$/"
maxLength=
"15"
required=
"false"
data-errorprompt=
"请输入数字,该值最大可设置15位整数和3位小数!"
/>
...
...
src/main/webapp/HG/CW/HGCW012C.jsp
View file @
d87e7454
...
...
@@ -21,7 +21,7 @@
</EF:EFComboColumn>
<
%
--
<
EF:EFColumn
ename=
"partyA"
cname=
"供应商名称"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
--%>
<EF:EFColumn
ename=
"settlementNumber"
cname=
"来源单号"
width=
"120"
enable=
"false"
readonly=
"true"
align=
"center"
/>
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"收款总额"
width=
"120"
format=
"{0:
C
3}"
align=
"right"
enable=
"false"
readonly=
"true"
/>
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"收款总额"
width=
"120"
format=
"{0:
N
3}"
align=
"right"
enable=
"false"
readonly=
"true"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
...
...
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