Correct invoice for yearly subscription
This commit is contained in:
		
					parent
					
						
							
								6eef592cd8
							
						
					
				
			
			
				commit
				
					
						a423dd9f49
					
				
			
		
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -195,8 +195,13 @@ | ||||||
|                     {% if invoice.order.subscription_id %} |                     {% if invoice.order.subscription_id %} | ||||||
|                     <p> |                     <p> | ||||||
|                         <span>{% trans "Recurring" %}: </span> |                         <span>{% trans "Recurring" %}: </span> | ||||||
|  |                         {% if invoice.order.generic_product.product_subscription_interval == 'year' %} | ||||||
|  |                             <strong class="pull-right">{{invoice.order.created_at|date:'d'|ordinal}} {{invoice.order.created_at|date:'F'}} | ||||||
|  |                             {% trans "of every year" %}</strong> | ||||||
|  |                         {% else %} | ||||||
|                             <strong class="pull-right">{{invoice.order.created_at|date:'d'|ordinal}} |                             <strong class="pull-right">{{invoice.order.created_at|date:'d'|ordinal}} | ||||||
|                             {% trans "of every month" %}</strong> |                             {% trans "of every month" %}</strong> | ||||||
|  |                         {% endif %} | ||||||
|                     </p> |                     </p> | ||||||
|                     {% endif %} |                     {% endif %} | ||||||
|                 </div> |                 </div> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue