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
18c71863
Commit
18c71863
authored
Jul 15, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-07-15 原燃料入库成本核算和原燃料出库成本核算bug修复
parent
d430a272
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
5 deletions
+24
-5
HGCBTools.java
src/main/java/com/baosight/hggp/hg/cb/tools/HGCBTools.java
+2
-0
ServiceHGCW001.java
.../java/com/baosight/hggp/hg/cw/service/ServiceHGCW001.java
+1
-1
HGCW012.xml
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012.xml
+17
-0
HGCWTools.java
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
+1
-1
HGKC007A.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC007A.xml
+1
-1
HGCB003.jsp
src/main/webapp/HG/CB/HGCB003.jsp
+2
-2
No files found.
src/main/java/com/baosight/hggp/hg/cb/tools/HGCBTools.java
View file @
18c71863
...
...
@@ -368,9 +368,11 @@ public class HGCBTools {
BigDecimal
endAmount
=
hgcb004
==
null
?
BigDecimal
.
ZERO
:
hgcb004
.
getEndAmount
();
quantity
=
quantity
.
add
(
endQuantity
);
amount
=
amount
.
add
(
endAmount
);
if
(
quantity
.
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
BigDecimal
price
=
amount
.
divide
(
quantity
,
3
,
RoundingMode
.
HALF_UP
);
cb003
.
setPrice
(
price
);
cb003
.
setAmount
(
cb003
.
getQuantity
().
multiply
(
price
));
}
cb003
.
setIsEstimate
(
0
);
results
.
add
(
cb003
);
//DaoUtils.insert(HGCB003.INSERT, cb003);
...
...
src/main/java/com/baosight/hggp/hg/cw/service/ServiceHGCW001.java
View file @
18c71863
...
...
@@ -274,7 +274,7 @@ public class ServiceHGCW001 extends ServiceBase {
throw
new
PlatException
(
String
.
format
(
"公司[%s]会计期[%s]会计期维护为关账状态,业务账期关账失败!"
,
hgcb001
.
getCompanyCode
(),
hgcw001
.
getAccountPeriod
()));
}
//检查数据
HGCWTools
.
HgCw001
.
checkAllData
(
hgcw001
);
//
HGCWTools.HgCw001.checkAllData(hgcw001);
hgcw001
.
setAccountPeriodStatus
(
0
);
//关账
DaoUtils
.
update
(
"HGCW001.updateSwitchRow"
,
hgcw001
);
...
...
src/main/java/com/baosight/hggp/hg/cw/sql/HGCW012.xml
View file @
18c71863
...
...
@@ -363,6 +363,23 @@
ID = #id#
</update>
<select
id=
"queryInvoicing"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW012"
>
SELECT
<include
refid=
"column"
/>
FROM ${hggpSchema}.HGCW012 WHERE REVIEW_STATUS = '1'
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID desc
</isEmpty>
</dynamic>
</select>
<select
id=
"queryCheckList"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.cw.domain.HGCW012"
>
SELECT
<include
refid=
"column"
/>
...
...
src/main/java/com/baosight/hggp/hg/cw/tools/HGCWTools.java
View file @
18c71863
...
...
@@ -49,7 +49,7 @@ public class HGCWTools {
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
params
.
put
(
"companyCode"
,
companyCode
);
List
<
HGCW001
>
list
=
DaoBase
.
getInstance
().
query
(
"HGCW001.getMaxAccountPeriod"
,
params
);
AssertUtils
.
isEmpty
(
list
,
"未找到公司
对应
的会计期"
);
AssertUtils
.
isEmpty
(
list
,
"未找到公司
有关账状态
的会计期"
);
return
list
.
get
(
0
);
}
...
...
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC007A.xml
View file @
18c71863
...
...
@@ -322,7 +322,7 @@
</select>
<select
id=
"queryList"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.kc.domain.HGKC007
A
"
>
resultClass=
"com.baosight.hggp.hg.kc.domain.HGKC007
B
"
>
SELECT
A.ACCOUNT_CODE as "accountCode",
<!-- 企业编码 -->
A.DEP_CODE as "depCode",
<!-- 部门编码 -->
...
...
src/main/webapp/HG/CB/HGCB003.jsp
View file @
18c71863
...
...
@@ -26,7 +26,7 @@
</EF:EFSelect>
<EF:EFSelect blockId="inqu_status" row="0" ename="status" cname="业务类型" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="hggp.
common.yesNo
"/>
<EF:EFCodeOption codeName="hggp.
hgcb.bizType
"/>
</EF:EFSelect>
<EF:EFDatePicker blockId="inqu_status" row="0" ename="accountPeriod" cname="会计期" colWidth="3"
format="yyyy-MM" depth="year" start="year" required="true"/>
...
...
@@ -48,7 +48,7 @@
<EF:EFColumn ename="accountPeriod" cname="会计期" enable="false" width="120" align="center"
editType="date" dateFormat="yyyy-MM" parseFormats="['yyyyMM']"/>
<EF:EFComboColumn ename="bizType" cname="业务类型" width="120" enable="false" align="center" required="true">
<EF:EFCodeOption codeName="hggp.hg
sj.compute
Type"/>
<EF:EFCodeOption codeName="hggp.hg
cb.biz
Type"/>
</EF:EFComboColumn>
<EF:EFColumn ename="receiptDate" cname="单据日期" width="120" align="center" editType="date" enable="false"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" readonly="false" required="true"/>
...
...
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