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
Boxiang Sun
slapos.core
Commits
f3e40ba7
Commit
f3e40ba7
authored
Nov 10, 2021
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_subscription_request: Set proper dates in order to select the proper Trade Condition
parent
73f0ba56
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_createRelatedSaleInvoiceTransaction.py
...ubscriptionRequest_createRelatedSaleInvoiceTransaction.py
+3
-0
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_requestPaymentTransaction.py
..._request/SubscriptionRequest_requestPaymentTransaction.py
+3
-1
No files found.
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_createRelatedSaleInvoiceTransaction.py
View file @
f3e40ba7
...
@@ -28,6 +28,9 @@ if current_invoice is None:
...
@@ -28,6 +28,9 @@ if current_invoice is None:
stop_date
=
payment_transaction
.
getStopDate
(),
stop_date
=
payment_transaction
.
getStopDate
(),
)
)
current_invoice
[
"1"
].
edit
(
start_date
=
payment_transaction
.
getStartDate
(),
stop_date
=
payment_transaction
.
getStopDate
())
if
service_variation
is
not
None
:
if
service_variation
is
not
None
:
current_invoice
[
"1"
].
setVariation
(
service_variation
)
current_invoice
[
"1"
].
setVariation
(
service_variation
)
...
...
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_requestPaymentTransaction.py
View file @
f3e40ba7
...
@@ -33,7 +33,9 @@ if current_invoice is None:
...
@@ -33,7 +33,9 @@ if current_invoice is None:
tax
=
0
tax
=
0
else
:
else
:
invoice_line
=
invoice_template
[
"1"
].
asContext
(
invoice_line
=
invoice_template
[
"1"
].
asContext
(
destination_section
=
context
.
getDestinationSection
()
destination_section
=
context
.
getDestinationSection
(),
start_date
=
DateTime
(),
stop_date
=
DateTime
()
)
)
subscription_trade_condition
=
portal
.
portal_preferences
.
getPreferredAggregatedSubscriptionSaleTradeCondition
()
subscription_trade_condition
=
portal
.
portal_preferences
.
getPreferredAggregatedSubscriptionSaleTradeCondition
()
...
...
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