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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.core
Commits
26811852
Commit
26811852
authored
Feb 23, 2021
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_subscription_request: Switch account from bank to payment_to_encash
parent
978a1e93
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
7 deletions
+31
-7
master/bt5/slapos_subscription_request/PathTemplateItem/accounting_module/slapos_pre_payment_template/2.xml
...eItem/accounting_module/slapos_pre_payment_template/2.xml
+14
-2
master/bt5/slapos_subscription_request/PathTemplateItem/accounting_module/slapos_wechat_pre_payment_template/2.xml
...ccounting_module/slapos_wechat_pre_payment_template/2.xml
+14
-2
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_requestPaymentTransaction.py
..._request/SubscriptionRequest_requestPaymentTransaction.py
+1
-1
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionSkins.py
...ortal_components/test.erp5.testSlapOSSubscriptionSkins.py
+2
-2
No files found.
master/bt5/slapos_subscription_request/PathTemplateItem/accounting_module/slapos_pre_payment_template/2.xml
View file @
26811852
...
...
@@ -10,11 +10,17 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
destination/account_module/
bank
</string>
<string>
source/account_module/
bank
</string>
<string>
destination/account_module/
payment_to_encash
</string>
<string>
source/account_module/
payment_to_encash
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
grouping_date
</string>
</key>
<value>
...
...
@@ -31,6 +37,12 @@
<key>
<string>
id
</string>
</key>
<value>
<string>
2
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Accounting Transaction Line
</string>
</value>
...
...
master/bt5/slapos_subscription_request/PathTemplateItem/accounting_module/slapos_wechat_pre_payment_template/2.xml
View file @
26811852
...
...
@@ -10,11 +10,17 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
destination/account_module/
bank
</string>
<string>
source/account_module/
bank
</string>
<string>
destination/account_module/
payment_to_encash
</string>
<string>
source/account_module/
payment_to_encash
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
grouping_date
</string>
</key>
<value>
...
...
@@ -31,6 +37,12 @@
<key>
<string>
id
</string>
</key>
<value>
<string>
2
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Accounting Transaction Line
</string>
</value>
...
...
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_requestPaymentTransaction.py
View file @
26811852
...
...
@@ -28,7 +28,7 @@ if current_invoice is None:
amount
=
0
for
line
in
current_payment
.
contentValues
():
if
line
.
getSource
()
in
[
"account_module/
bank
"
,
"account_module/receivable"
]:
if
line
.
getSource
()
in
[
"account_module/
payment_to_encash
"
,
"account_module/receivable"
]:
quantity
=
int
(
amount
)
*
line
.
getQuantity
()
line
.
setQuantity
(
quantity
)
...
...
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSSubscriptionSkins.py
View file @
26811852
...
...
@@ -524,7 +524,7 @@ class TestSubscriptionRequest_requestPaymentTransaction(TestSubscriptionSkinsMix
self
.
assertEqual
(
current_payment
.
getSimulationState
(),
"started"
)
for
line
in
current_payment
.
contentValues
():
if
line
.
getSource
()
==
"account_module/
bank
"
:
if
line
.
getSource
()
==
"account_module/
payment_to_encash
"
:
self
.
assertEqual
(
line
.
getQuantity
(),
-
25
*
quantity
)
if
line
.
getSource
()
==
"account_module/receivable"
:
self
.
assertEqual
(
line
.
getQuantity
(),
25
*
quantity
)
...
...
@@ -555,7 +555,7 @@ class TestSubscriptionRequest_requestPaymentTransaction(TestSubscriptionSkinsMix
self
.
assertEqual
(
current_payment
.
getSimulationState
(),
"started"
)
for
line
in
current_payment
.
contentValues
():
if
line
.
getSource
()
==
"account_module/
bank
"
:
if
line
.
getSource
()
==
"account_module/
payment_to_encash
"
:
self
.
assertEqual
(
line
.
getQuantity
(),
-
188
*
quantity
)
if
line
.
getSource
()
==
"account_module/receivable"
:
self
.
assertEqual
(
line
.
getQuantity
(),
188
*
quantity
)
...
...
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