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
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
c3c004e4
Commit
c3c004e4
authored
May 02, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP WIP slapos_panel: Fixup to allow us to pay deposit
parent
8cb9e739
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/AccountingTransactionModule_getCreateExternalPaymentTransactionOnSlaposPanelHTML.py
...e_getCreateExternalPaymentTransactionOnSlaposPanelHTML.py
+1
-1
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/SaleInvoiceTransaction_createExternalPaymentTransactionFromAmountAndRedirect.py
..._createExternalPaymentTransactionFromAmountAndRedirect.py
+7
-0
No files found.
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/AccountingTransactionModule_getCreateExternalPaymentTransactionOnSlaposPanelHTML.py
View file @
c3c004e4
...
@@ -55,7 +55,7 @@ for currency_uid, secure_service_relative_url in [
...
@@ -55,7 +55,7 @@ for currency_uid, secure_service_relative_url in [
"""
%
{
"""
%
{
'total_price'
:
deposit_price
,
'total_price'
:
deposit_price
,
'currency'
:
currency_uid
,
'currency'
:
currency_uid
,
'payment_url'
:
'%s/SaleInvoiceTransaction_createExternalPaymentTransactionFromAmountAndRedirect'
%
entity
.
absolute_url
()
'payment_url'
:
'%s/SaleInvoiceTransaction_createExternalPaymentTransactionFromAmountAndRedirect'
%
subscription_request
.
absolute_url
()
}
}
if
html_content
:
if
html_content
:
...
...
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/SaleInvoiceTransaction_createExternalPaymentTransactionFromAmountAndRedirect.py
View file @
c3c004e4
...
@@ -23,6 +23,13 @@ for accepted_resource_uid, accepted_payment_mode, is_activated in [
...
@@ -23,6 +23,13 @@ for accepted_resource_uid, accepted_payment_mode, is_activated in [
assert
payment_mode
is
not
None
assert
payment_mode
is
not
None
def
wrapWithShadow
(
entity
,
outstanding_amount
):
def
wrapWithShadow
(
entity
,
outstanding_amount
):
# In case of "Subscription Request"
if
outstanding_amount
.
getPortalType
()
==
'Subscription Request'
:
return
entity
.
Person_addDepositPayment
(
outstanding_amount
.
getTotalPrice
(),
outstanding_amount
.
getPriceCurrency
(),
batch
=
1
)
return
entity
.
Entity_createPaymentTransaction
(
return
entity
.
Entity_createPaymentTransaction
(
entity
.
Entity_getOutstandingAmountList
(
entity
.
Entity_getOutstandingAmountList
(
section_uid
=
outstanding_amount
.
getSourceSectionUid
(),
section_uid
=
outstanding_amount
.
getSourceSectionUid
(),
...
...
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