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
3a78eb51
Commit
3a78eb51
authored
May 22, 2019
by
qiankunpingtai
Browse files
修改财务管理部分财务明细未做操作时也可以保存
parent
79d4c7d2
Changes
7
Show whitespace changes
Inline
Side-by-side
erp_web/js/pages/financial/advance_in.js
View file @
3a78eb51
...
@@ -896,7 +896,6 @@ function CheckData() {
...
@@ -896,7 +896,6 @@ function CheckData() {
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
append
();
append
();
removeit
();
removeit
();
if
(
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
).
length
)
{
if
(
!
CheckData
())
if
(
!
CheckData
())
return
false
;
return
false
;
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
...
@@ -948,7 +947,6 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
...
@@ -948,7 +947,6 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
}
}
});
});
}
}
}
erp_web/js/pages/financial/giro.js
View file @
3a78eb51
...
@@ -803,7 +803,6 @@ function CheckData() {
...
@@ -803,7 +803,6 @@ function CheckData() {
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
append
();
append
();
removeit
();
removeit
();
if
(
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
).
length
)
{
if
(
!
CheckData
())
if
(
!
CheckData
())
return
false
;
return
false
;
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
...
@@ -855,6 +854,5 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
...
@@ -855,6 +854,5 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
}
}
});
});
}
}
}
\ No newline at end of file
erp_web/js/pages/financial/item_in.js
View file @
3a78eb51
...
@@ -819,7 +819,6 @@ function CheckData() {
...
@@ -819,7 +819,6 @@ function CheckData() {
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
append
();
append
();
removeit
();
removeit
();
if
(
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
).
length
)
{
if
(
!
CheckData
())
if
(
!
CheckData
())
return
false
;
return
false
;
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
...
@@ -871,6 +870,5 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
...
@@ -871,6 +870,5 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
}
}
});
});
}
}
}
\ No newline at end of file
erp_web/js/pages/financial/item_out.js
View file @
3a78eb51
...
@@ -825,7 +825,6 @@ function CheckData() {
...
@@ -825,7 +825,6 @@ function CheckData() {
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
append
();
append
();
removeit
();
removeit
();
if
(
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
).
length
)
{
if
(
!
CheckData
())
if
(
!
CheckData
())
return
false
;
return
false
;
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
...
@@ -877,6 +876,5 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
...
@@ -877,6 +876,5 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
}
}
});
});
}
}
}
\ No newline at end of file
erp_web/js/pages/financial/money_in.js
View file @
3a78eb51
...
@@ -815,7 +815,6 @@ function CheckData() {
...
@@ -815,7 +815,6 @@ function CheckData() {
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
append
();
append
();
removeit
();
removeit
();
if
(
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
).
length
)
{
if
(
!
CheckData
())
if
(
!
CheckData
())
return
false
;
return
false
;
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
...
@@ -867,6 +866,5 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
...
@@ -867,6 +866,5 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
}
}
});
});
}
}
}
\ No newline at end of file
erp_web/js/pages/financial/money_out.js
View file @
3a78eb51
...
@@ -837,7 +837,6 @@ function CheckData() {
...
@@ -837,7 +837,6 @@ function CheckData() {
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
append
();
append
();
removeit
();
removeit
();
if
(
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
).
length
)
{
if
(
!
CheckData
())
if
(
!
CheckData
())
return
false
;
return
false
;
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
...
@@ -889,6 +888,5 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
...
@@ -889,6 +888,5 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
}
}
});
});
}
}
}
\ No newline at end of file
src/main/java/com/jsh/erp/service/supplier/SupplierService.java
View file @
3a78eb51
...
@@ -202,7 +202,7 @@ public class SupplierService {
...
@@ -202,7 +202,7 @@ public class SupplierService {
int
result
=
0
;
int
result
=
0
;
try
{
try
{
if
(
supplier
!=
null
){
if
(
supplier
!=
null
){
supplier
.
setAdvancein
(
supplier
.
getAdvancein
().
add
(
advanceIn
));
//增加预收款的金额,可能增加的是负值
supplier
.
setAdvancein
(
(
supplier
.
getAdvancein
()
==
null
?
BigDecimal
.
ZERO
:
supplier
.
getAdvancein
())
.
add
(
advanceIn
));
//增加预收款的金额,可能增加的是负值
result
=
supplierMapper
.
updateByPrimaryKeySelective
(
supplier
);
result
=
supplierMapper
.
updateByPrimaryKeySelective
(
supplier
);
}
}
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
...
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