mirror of
https://github.com/erpnext/foundation.git
synced 2026-10-16 18:00:47 +02:00
[minor][fix] memberships listview date format fix
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
@@ -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 }}
|
||||||
|
|||||||
@@ -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''')
|
||||||
|
|||||||
Reference in New Issue
Block a user