Merge pull request #16918 from Alchez/hotfix-party-payments

fix(transaction): Add link to payments made by Customer / Supplier in their dashboards
This commit is contained in:
Rushabh Mehta 2019-03-14 14:14:42 +05:30 committed by GitHub
commit bd9622bfd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 2 deletions

View File

@ -1,11 +1,16 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'heatmap': True,
'heatmap_message': _('This is based on transactions against this Supplier. See timeline below for details'),
'fieldname': 'supplier',
'non_standard_fieldnames': {
'Payment Entry': 'party_name'
},
'transactions': [
{
'label': _('Procurement'),
@ -15,9 +20,13 @@ def get_data():
'label': _('Orders'),
'items': ['Purchase Order', 'Purchase Receipt', 'Purchase Invoice']
},
{
'label': _('Payments'),
'items': ['Payment Entry']
},
{
'label': _('Pricing'),
'items': ['Pricing Rule']
}
]
}
}

View File

@ -1,11 +1,16 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'heatmap': True,
'heatmap_message': _('This is based on transactions against this Customer. See timeline below for details'),
'fieldname': 'customer',
'non_standard_fieldnames': {
'Payment Entry': 'party_name'
},
'transactions': [
{
'label': _('Pre Sales'),
@ -15,6 +20,10 @@ def get_data():
'label': _('Orders'),
'items': ['Sales Order', 'Delivery Note', 'Sales Invoice']
},
{
'label': _('Payments'),
'items': ['Payment Entry']
},
{
'label': _('Support'),
'items': ['Issue']
@ -32,4 +41,4 @@ def get_data():
'items': ['Subscription']
}
]
}
}