mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 03:39:11 +00:00
fix: Dashboards for doctypes in accounting modules
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from frappe import _
|
||||||
|
|
||||||
|
|
||||||
|
def get_data():
|
||||||
|
return {
|
||||||
|
'fieldname': 'monthly_distribution',
|
||||||
|
'non_standard_fieldnames': {
|
||||||
|
'Sales Person': 'distribution_id',
|
||||||
|
'Territory': 'distribution_id',
|
||||||
|
'Sales Partner': 'distribution_id',
|
||||||
|
},
|
||||||
|
'transactions': [
|
||||||
|
{
|
||||||
|
'label': _('Target Details'),
|
||||||
|
'items': ['Sales Person', 'Territory', 'Sales Partner']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'label': _('References'),
|
||||||
|
'items': ['Budget']
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from frappe import _
|
||||||
|
|
||||||
|
|
||||||
|
def get_data():
|
||||||
|
return {
|
||||||
|
'fieldname': 'payment_terms_template',
|
||||||
|
'non_standard_fieldnames': {
|
||||||
|
'Customer Group': 'payment_terms',
|
||||||
|
'Supplier Group': 'payment_terms',
|
||||||
|
'Supplier': 'payment_terms',
|
||||||
|
'Customer': 'payment_terms'
|
||||||
|
},
|
||||||
|
'transactions': [
|
||||||
|
{
|
||||||
|
'label': _('Sales'),
|
||||||
|
'items': ['Sales Invoice', 'Sales Order', 'Quotation']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'label': _('Purchase'),
|
||||||
|
'items': ['Purchase Invoice', 'Purchase Order']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'label': _('Party'),
|
||||||
|
'items': ['Customer', 'Supplier']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'label': _('Group'),
|
||||||
|
'items': ['Customer Group', 'Supplier Group']
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from frappe import _
|
||||||
|
|
||||||
|
|
||||||
|
def get_data():
|
||||||
|
return {
|
||||||
|
'fieldname': 'taxes_and_charges',
|
||||||
|
'non_standard_fieldnames': {
|
||||||
|
'Tax Rule': 'purchase_tax_template',
|
||||||
|
},
|
||||||
|
'transactions': [
|
||||||
|
{
|
||||||
|
'label': _('Transactions'),
|
||||||
|
'items': ['Purchase Invoice', 'Purchase Order', 'Purchase Receipt']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'label': _('Supplier Quotations'),
|
||||||
|
'items': ['Supplier Quotation']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'label': _('Tax Rules'),
|
||||||
|
'items': ['Tax Rule']
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from frappe import _
|
||||||
|
|
||||||
|
|
||||||
|
def get_data():
|
||||||
|
return {
|
||||||
|
'fieldname': 'taxes_and_charges',
|
||||||
|
'non_standard_fieldnames': {
|
||||||
|
'Tax Rule': 'sales_tax_template',
|
||||||
|
'Subscription': 'tax_template',
|
||||||
|
'Restaurant': 'default_tax_template'
|
||||||
|
},
|
||||||
|
'transactions': [
|
||||||
|
{
|
||||||
|
'label': _('Transactions'),
|
||||||
|
'items': ['Sales Invoice', 'Sales Order', 'Delivery Note']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'label': _('References'),
|
||||||
|
'items': ['POS Profile', 'Subscription', 'Restaurant']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'label': _('Tax Rules'),
|
||||||
|
'items': ['Tax Rule']
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user