Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
fe4ee593
Commit
fe4ee593
authored
Feb 28, 2020
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_wechat: No need to check if invoice exists
On certain cases, the invoice is created later on by activies.
parent
29ef4951
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
master/bt5/slapos_wechat/SkinTemplateItem/portal_skins/slapos_wechat/Base_queryWechatOrderStatusByTradeNo.py
...ins/slapos_wechat/Base_queryWechatOrderStatusByTradeNo.py
+1
-4
No files found.
master/bt5/slapos_wechat/SkinTemplateItem/portal_skins/slapos_wechat/Base_queryWechatOrderStatusByTradeNo.py
View file @
fe4ee593
...
@@ -12,11 +12,8 @@ payment = portal.accounting_module[trade_no]
...
@@ -12,11 +12,8 @@ payment = portal.accounting_module[trade_no]
if
person
is
None
:
if
person
is
None
:
if
portal
.
portal_membership
.
isAnonymousUser
():
if
portal
.
portal_membership
.
isAnonymousUser
():
invoice
=
payment
.
getCausalityValue
()
if
invoice
is
not
None
and
invoice
.
getCausalityRelated
(
portal_type
=
"Subscription Request"
):
person
=
payment
.
getDestinationSectionValue
()
person
=
payment
.
getDestinationSectionValue
()
return
person
.
Person_restrictMethodAsShadowUser
(
return
person
.
Person_restrictMethodAsShadowUser
(
shadow_document
=
person
,
shadow_document
=
person
,
callable_object
=
wrapWithShadow
,
callable_object
=
wrapWithShadow
,
...
...
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