[minor] [fix] doctype_dasboard.py files, move data to get_data

This commit is contained in:
Rushabh Mehta 2016-10-18 14:54:39 +05:30
parent 401be3f49b
commit 17f6874450
17 changed files with 359 additions and 342 deletions

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'fieldname': 'purchase_invoice',
'non_standard_fieldnames': {
'Delivery Note': 'against_sales_invoice',
@ -28,4 +29,4 @@ data = {
'items': ['Purchase Invoice']
},
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'fieldname': 'sales_invoice',
'non_standard_fieldnames': {
'Delivery Note': 'against_sales_invoice',
@ -27,4 +28,4 @@ data = {
'items': ['Sales Invoice']
},
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'fieldname': 'purchase_order',
'internal_links': {
'Material Request': ['items', 'material_request'],
@ -21,4 +22,4 @@ data = {
'items': ['Stock Entry']
},
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'docstatus': 1,
'fieldname': 'request_for_quotation',
'transactions': [
@ -9,4 +10,4 @@ data = {
'items': ['Supplier Quotation']
},
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'heatmap': True,
'heatmap_message': _('This is based on transactions against this Supplier. See timeline below for details'),
'fieldname': 'supplier',
@ -14,4 +15,4 @@ data = {
'items': ['Purchase Order', 'Purchase Receipt', 'Purchase Invoice']
}
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'fieldname': 'supplier_quotation',
'internal_links': {
'Material Request': ['items', 'material_request'],
@ -17,4 +18,4 @@ data = {
'items': ['Material Request', 'Request for Quotation', 'Project']
},
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'fieldname': 'prevdoc_docname',
'transactions': [
{
@ -8,4 +9,4 @@ data = {
'items': ['Quotation']
},
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'heatmap': True,
'heatmap_message': _('This is based on the attendance of this Employee'),
'fieldname': 'employee',
@ -22,4 +23,4 @@ data = {
'items': ['Appraisal']
}
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'heatmap': True,
'heatmap_message': _('This is based on the Time Sheets created against this project'),
'fieldname': 'project',
@ -22,4 +23,4 @@ data = {
'items': ['Purchase Order', 'Purchase Receipt', 'Purchase Invoice']
},
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
{
'heatmap': True,
'heatmap_message': _('This is based on the attendance of this Student'),
'fieldname': 'student',
@ -12,4 +13,4 @@ data = {
'items': ['Program Enrollment', 'Fees', 'Assessment', 'Guardian']
}
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'heatmap': True,
'heatmap_message': _('This is based on transactions against this Customer. See timeline below for details'),
'fieldname': 'customer',
@ -22,4 +23,4 @@ data = {
'items': ['Project']
}
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'fieldname': 'prevdoc_docname',
'transactions': [
{
@ -8,4 +9,4 @@ data = {
'items': ['Sales Order']
},
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'fieldname': 'sales_order',
'non_standard_fieldnames': {
'Delivery Note': 'against_sales_order',
@ -30,4 +31,4 @@ data = {
'items': ['Quotation']
},
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'fieldname': 'delivery_note_no',
'non_standard_fieldnames': {
'Sales Invoice': 'delivery_note',
@ -23,4 +24,4 @@ data = {
'items': ['Stock Entry']
},
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'heatmap': True,
'heatmap_message': _('This is based on stock movement. See {0} for details')\
.format('<a href="#query-report/Stock Ledger">' + _('Stock Ledger') + '</a>'),
@ -42,4 +43,4 @@ data = {
'items': ['Production Order']
}
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'fieldname': 'material_request',
'transactions': [
{
@ -8,4 +9,4 @@ data = {
'items': ['Request for Quotation', 'Supplier Quotation', 'Purchase Order']
},
]
}
}

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'fieldname': 'purchase_receipt_no',
'non_standard_fieldnames': {
'Purchase Invoice': 'purchase_receipt',
@ -25,4 +26,4 @@ data = {
'items': ['Stock Entry']
},
]
}
}