Commit 429759c6 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_subscription_request: Reservation pricing is 25 euros instead 19.95 by detault.

parent fa4bfbf9
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</item> </item>
<item> <item>
<key> <string>price</string> </key> <key> <string>price</string> </key>
<value> <float>16.6806020067</float> </value> <value> <float>20.83</float> </value>
</item> </item>
<item> <item>
<key> <string>quantity</string> </key> <key> <string>quantity</string> </key>
......
...@@ -20,7 +20,9 @@ if current_invoice is None: ...@@ -20,7 +20,9 @@ if current_invoice is None:
start_date=DateTime(), start_date=DateTime(),
stop_date=DateTime() stop_date=DateTime()
) )
quantity = int(amount)*19.95
# Hardcoded value for reservation
quantity = int(amount)*25
for line in current_payment.contentValues(): for line in current_payment.contentValues():
if line.getSource() == "account_module/bank": if line.getSource() == "account_module/bank":
line.setQuantity(-1*quantity) line.setQuantity(-1*quantity)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment