Show 2 upto decimal places in order detail
This commit is contained in:
		
					parent
					
						
							
								ec753eb0d5
							
						
					
				
			
			
				commit
				
					
						903336a46f
					
				
			
		
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -68,12 +68,12 @@
 | 
				
			||||||
                        {% if vm.vat > 0 %}
 | 
					                        {% if vm.vat > 0 %}
 | 
				
			||||||
                            <p>
 | 
					                            <p>
 | 
				
			||||||
                                <span>{% trans "VAT" %}: </span>
 | 
					                                <span>{% trans "VAT" %}: </span>
 | 
				
			||||||
                                <span class="pull-right">{{vm.vat|floatformat|intcomma}} CHF</span>
 | 
					                                <span class="pull-right">{{vm.vat|floatformat:2|intcomma}} CHF</span>
 | 
				
			||||||
                            </p>
 | 
					                            </p>
 | 
				
			||||||
                        {% endif %}
 | 
					                        {% endif %}
 | 
				
			||||||
                        <p>
 | 
					                        <p>
 | 
				
			||||||
                            <span>{% trans "Total" %}</span>
 | 
					                            <span>{% trans "Total" %}</span>
 | 
				
			||||||
                            <span class="pull-right">{{vm.total_price|floatformat|intcomma}} CHF</span>
 | 
					                            <span class="pull-right">{{vm.total_price|floatformat:2|intcomma}} CHF</span>
 | 
				
			||||||
                        </p>
 | 
					                        </p>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
| 
						 | 
					@ -84,7 +84,7 @@
 | 
				
			||||||
            {% csrf_token %}
 | 
					            {% csrf_token %}
 | 
				
			||||||
            <div class="row">
 | 
					            <div class="row">
 | 
				
			||||||
                <div class="col-sm-8">
 | 
					                <div class="col-sm-8">
 | 
				
			||||||
                    <div class="dcl-place-order-text">{% blocktrans with vm_total_price=vm.total_price|floatformat|intcomma %}By clicking "Place order" this plan will charge your credit card account with the fee of {{vm_total_price}} CHF/month{% endblocktrans %}.</div>
 | 
					                    <div class="dcl-place-order-text">{% blocktrans with vm_total_price=vm.total_price|floatformat:2|intcomma %}By clicking "Place order" this plan will charge your credit card account with the fee of {{vm_total_price}} CHF/month{% endblocktrans %}.</div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
                <div class="col-sm-4 order-confirm-btn text-right">
 | 
					                <div class="col-sm-4 order-confirm-btn text-right">
 | 
				
			||||||
                    <button class="btn choice-btn" id="btn-create-vm" data-toggle="modal" data-target="#createvm-modal">
 | 
					                    <button class="btn choice-btn" id="btn-create-vm" data-toggle="modal" data-target="#createvm-modal">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue