Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
40acd004
Commit
40acd004
authored
Apr 29, 2019
by
季圣华
Browse files
解决累计应收不显示的bug
parent
52f5020a
Changes
2
Hide whitespace changes
Inline
Side-by-side
erp_web/js/pages/manage/supplier.js
View file @
40acd004
...
...
@@ -554,13 +554,15 @@
//编辑信息
function
editSupplier
(
supplierTotalInfo
)
{
var
supplierInfo
=
supplierTotalInfo
.
split
(
"
AaBb
"
);
var
beginNeedGet
=
supplierInfo
[
5
];
var
beginNeedPay
=
supplierInfo
[
6
];
var
row
=
{
supplier
:
supplierInfo
[
1
],
contacts
:
supplierInfo
[
2
].
replace
(
"
undefined
"
,
""
),
phonenum
:
supplierInfo
[
3
].
replace
(
"
undefined
"
,
""
),
email
:
supplierInfo
[
4
].
replace
(
"
undefined
"
,
""
),
BeginNeedGet
:
supplierInfo
[
5
]
,
BeginNeedPay
:
supplierInfo
[
6
]
,
BeginNeedGet
:
beginNeedGet
==
"
0
"
?
""
:
beginNeedGet
,
BeginNeedPay
:
beginNeedPay
==
"
0
"
?
""
:
beginNeedPay
,
AllNeedGet
:
""
,
AllNeedPay
:
""
,
description
:
supplierInfo
[
8
].
replace
(
"
undefined
"
,
""
),
...
...
@@ -602,7 +604,7 @@
supType
:
supType
}),
success
:
function
(
res
){
if
(
res
&&
res
.
code
===
200
&&
res
.
data
&&
res
.
data
.
rows
&&
res
.
data
.
rows
.
getAllMoney
)
{
if
(
res
&&
res
.
code
===
200
&&
res
.
data
&&
res
.
data
.
rows
&&
res
.
data
.
rows
.
getAllMoney
!==
""
)
{
var
moneyA
=
res
.
data
.
rows
.
getAllMoney
.
toFixed
(
2
)
-
0
;
$
.
ajax
({
type
:
"
get
"
,
...
...
@@ -615,7 +617,7 @@
supType
:
supType
}),
success
:
function
(
res
){
if
(
res
&&
res
.
code
===
200
&&
res
.
data
&&
res
.
data
.
rows
&&
res
.
data
.
rows
.
getAllMoney
)
{
if
(
res
&&
res
.
code
===
200
&&
res
.
data
&&
res
.
data
.
rows
&&
res
.
data
.
rows
.
getAllMoney
!==
""
)
{
var
moneyB
=
res
.
data
.
rows
.
getAllMoney
.
toFixed
(
2
)
-
0
;
var
money
=
moneyA
+
moneyB
;
var
moneyBeginNeedGet
=
$
(
"
#BeginNeedGet
"
).
val
()
-
0
;
//期初应收
...
...
src/main/java/com/jsh/erp/service/supplier/SupplierService.java
View file @
40acd004
...
...
@@ -120,6 +120,12 @@ public class SupplierService {
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
public
int
updateSupplier
(
String
beanJson
,
Long
id
)
throws
Exception
{
Supplier
supplier
=
JSONObject
.
parseObject
(
beanJson
,
Supplier
.
class
);
if
(
supplier
.
getBeginneedpay
()
==
null
)
{
supplier
.
setBeginneedpay
(
BigDecimal
.
ZERO
);
}
if
(
supplier
.
getBeginneedget
()
==
null
)
{
supplier
.
setBeginneedget
(
BigDecimal
.
ZERO
);
}
supplier
.
setId
(
id
);
int
result
=
0
;
try
{
...
...
Write
Preview
Supports
Markdown
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