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
9d50718d
Commit
9d50718d
authored
Oct 29, 2022
by
季圣华
Browse files
解决BUG:删除收预付款单时需要从会员扣除预付款
parent
ef7a7dac
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/accountHead/AccountHeadService.java
View file @
9d50718d
...
...
@@ -204,6 +204,12 @@ public class AccountHeadService {
throw
new
BusinessRunTimeException
(
ExceptionConstants
.
ACCOUNT_HEAD_UN_AUDIT_DELETE_FAILED_CODE
,
String
.
format
(
ExceptionConstants
.
ACCOUNT_HEAD_UN_AUDIT_DELETE_FAILED_MSG
));
}
if
(
"收预付款"
.
equals
(
accountHead
.
getType
())){
if
(
accountHead
.
getOrganId
()
!=
null
)
{
//删除时需要从会员扣除预付款
supplierService
.
updateAdvanceIn
(
accountHead
.
getOrganId
(),
BigDecimal
.
ZERO
.
subtract
(
accountHead
.
getTotalPrice
()));
}
}
}
User
userInfo
=
userService
.
getCurrentUser
();
String
[]
idArray
=
ids
.
split
(
","
);
...
...
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