Merge branch 'feature/6561/show-multiple-line-items'
This commit is contained in:
commit
212648a1c5
1 changed files with 6 additions and 4 deletions
|
@ -513,9 +513,11 @@ class HostingBillLineItem(AssignPermissionsMixin, models.Model):
|
||||||
vm_conf = StripeUtils.get_vm_config_from_stripe_id(
|
vm_conf = StripeUtils.get_vm_config_from_stripe_id(
|
||||||
self.stripe_plan.stripe_plan_id
|
self.stripe_plan.stripe_plan_id
|
||||||
)
|
)
|
||||||
|
if vm_conf is not None:
|
||||||
item_detail += ("<b>Cores</b>: {}<br/><b>RAM</b>: {} GB<br/>"
|
item_detail += ("<b>Cores</b>: {}<br/><b>RAM</b>: {} GB<br/>"
|
||||||
"<b>SSD</b>: {} GB<br/>").format(
|
"<b>SSD</b>: {} GB<br/>").format(
|
||||||
vm_conf['cores'], int(float(vm_conf['ram'])), vm_conf['ssd']
|
vm_conf['cores'], int(float(vm_conf['ram'])),
|
||||||
|
vm_conf['ssd']
|
||||||
)
|
)
|
||||||
return item_detail
|
return item_detail
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue