[minor][fix] memberships listview date format fix

This commit is contained in:
Saurabh
2017-03-15 08:20:56 +05:30
parent 5139f837c5
commit 0ec599480f
3 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
from __future__ import unicode_literals from __future__ import unicode_literals
import frappe import frappe
import datetime
from frappe.utils import fmt_money from frappe.utils import fmt_money
def get_context(context): def get_context(context):

View File

@@ -25,7 +25,7 @@
{{ doc.membership_type }} {{ doc.membership_type }}
</div> </div>
<div class="col-sm-3 col-xs-6"> <div class="col-sm-3 col-xs-6">
{{ doc.to_date }} {{ frappe.utils.global_date_format(doc.to_date) }}
</div> </div>
<div class="col-sm-3 hidden-xs"> <div class="col-sm-3 hidden-xs">
{{ doc.amount }} {{ doc.amount }}

View File

@@ -61,7 +61,7 @@ def get_context(context):
introduction='Become an invidual member to list here', introduction='Become an invidual member to list here',
route='/members' route='/members'
)] )]
context.service_providers = [d for d in frappe.get_all('Service Provider', 'name, title, introduction, `image`, route', context.service_providers = [d for d in frappe.get_all('Service Provider', 'name, title, introduction, `image`, route',
dict(country=frappe.form_dict.country, show_in_website=1), order_by='name') if d.name not in individual_members] dict(country=frappe.form_dict.country, show_in_website=1), order_by='name') if d.name not in individual_members]
@@ -76,4 +76,4 @@ def get_context(context):
group by group by
country country
order by order by
country''') country''')