mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
chore: Fixed config for education
This commit is contained in:
@@ -1,11 +1,16 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
|
|
||||||
def get_data():
|
def get_data():
|
||||||
return {
|
return {
|
||||||
'heatmap': True,
|
'heatmap': True,
|
||||||
'heatmap_message': _('This is based on transactions against this Supplier. See timeline below for details'),
|
'heatmap_message': _('This is based on transactions against this Supplier. See timeline below for details'),
|
||||||
'fieldname': 'supplier',
|
'fieldname': 'supplier',
|
||||||
|
'non_standard_fieldnames': {
|
||||||
|
'Payment Entry': 'party_name'
|
||||||
|
},
|
||||||
'transactions': [
|
'transactions': [
|
||||||
{
|
{
|
||||||
'label': _('Procurement'),
|
'label': _('Procurement'),
|
||||||
@@ -15,9 +20,13 @@ def get_data():
|
|||||||
'label': _('Orders'),
|
'label': _('Orders'),
|
||||||
'items': ['Purchase Order', 'Purchase Receipt', 'Purchase Invoice']
|
'items': ['Purchase Order', 'Purchase Receipt', 'Purchase Invoice']
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'label': _('Payments'),
|
||||||
|
'items': ['Payment Entry']
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'label': _('Pricing'),
|
'label': _('Pricing'),
|
||||||
'items': ['Pricing Rule']
|
'items': ['Pricing Rule']
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,16 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
|
|
||||||
def get_data():
|
def get_data():
|
||||||
return {
|
return {
|
||||||
'heatmap': True,
|
'heatmap': True,
|
||||||
'heatmap_message': _('This is based on transactions against this Customer. See timeline below for details'),
|
'heatmap_message': _('This is based on transactions against this Customer. See timeline below for details'),
|
||||||
'fieldname': 'customer',
|
'fieldname': 'customer',
|
||||||
|
'non_standard_fieldnames': {
|
||||||
|
'Payment Entry': 'party_name'
|
||||||
|
},
|
||||||
'transactions': [
|
'transactions': [
|
||||||
{
|
{
|
||||||
'label': _('Pre Sales'),
|
'label': _('Pre Sales'),
|
||||||
@@ -15,6 +20,10 @@ def get_data():
|
|||||||
'label': _('Orders'),
|
'label': _('Orders'),
|
||||||
'items': ['Sales Order', 'Delivery Note', 'Sales Invoice']
|
'items': ['Sales Order', 'Delivery Note', 'Sales Invoice']
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'label': _('Payments'),
|
||||||
|
'items': ['Payment Entry']
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'label': _('Support'),
|
'label': _('Support'),
|
||||||
'items': ['Issue']
|
'items': ['Issue']
|
||||||
@@ -32,4 +41,4 @@ def get_data():
|
|||||||
'items': ['Subscription']
|
'items': ['Subscription']
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ def get_exchange_rate(from_currency, to_currency, transaction_date=None, args=No
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
cache = frappe.cache()
|
cache = frappe.cache()
|
||||||
key = "currency_exchange_rate:{0}:{1}".format(from_currency, to_currency)
|
key = "currency_exchange_rate_{0}:{1}:{2}".format(transaction_date,from_currency, to_currency)
|
||||||
value = cache.get(key)
|
value = cache.get(key)
|
||||||
|
|
||||||
if not value:
|
if not value:
|
||||||
@@ -143,4 +143,4 @@ def insert_record(records):
|
|||||||
def welcome_email():
|
def welcome_email():
|
||||||
site_name = get_default_company()
|
site_name = get_default_company()
|
||||||
title = _("Welcome to {0}".format(site_name))
|
title = _("Welcome to {0}".format(site_name))
|
||||||
return title
|
return title
|
||||||
|
|||||||
Reference in New Issue
Block a user