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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
ef68103a
Commit
ef68103a
authored
Feb 13, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_crm: only check automated Outstanding Invoices
parent
b4e5c6ca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/Person_checkToCreateRegularisationRequest.py
...s/slapos_crm/Person_checkToCreateRegularisationRequest.py
+1
-1
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_invalidateIfPersonBalanceIsOk.py
...rm/RegularisationRequest_invalidateIfPersonBalanceIsOk.py
+1
-1
No files found.
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/Person_checkToCreateRegularisationRequest.py
View file @
ef68103a
...
@@ -24,7 +24,7 @@ if ticket is not None:
...
@@ -24,7 +24,7 @@ if ticket is not None:
return
ticket
,
None
return
ticket
,
None
mail_message
=
None
mail_message
=
None
if
person
.
Entity_hasOutstandingAmount
():
if
person
.
Entity_hasOutstandingAmount
(
ledger_uid
=
portal
.
portal_categories
.
ledger
.
automated
.
getUid
()
):
tag
=
"%s_addRegularisationRequest_inProgress"
%
person
.
getUid
()
tag
=
"%s_addRegularisationRequest_inProgress"
%
person
.
getUid
()
if
(
portal
.
portal_activities
.
countMessageWithTag
(
tag
)
>
0
):
if
(
portal
.
portal_activities
.
countMessageWithTag
(
tag
)
>
0
):
# The regularisation request is already under creation but can not be fetched from catalog
# The regularisation request is already under creation but can not be fetched from catalog
...
...
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm/RegularisationRequest_invalidateIfPersonBalanceIsOk.py
View file @
ef68103a
...
@@ -8,5 +8,5 @@ if (state not in ('suspended', 'validated')) or \
...
@@ -8,5 +8,5 @@ if (state not in ('suspended', 'validated')) or \
(
person
is
None
):
(
person
is
None
):
return
return
if
not
person
.
Entity_hasOutstandingAmount
():
if
not
person
.
Entity_hasOutstandingAmount
(
ledger_uid
=
context
.
getPortalObject
().
portal_categories
.
ledger
.
automated
.
getUid
()
):
context
.
invalidate
(
comment
=
"Automatically disabled as balance is ok"
)
context
.
invalidate
(
comment
=
"Automatically disabled as balance is ok"
)
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