[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',

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',

View File

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

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'docstatus': 1,
'fieldname': 'request_for_quotation',
'transactions': [

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',

View File

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

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'fieldname': 'prevdoc_docname',
'transactions': [
{

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',

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',

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',

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',

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'fieldname': 'prevdoc_docname',
'transactions': [
{

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',

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',

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>'),

View File

@ -1,6 +1,7 @@
from frappe import _
data = {
def get_data():
return {
'fieldname': 'material_request',
'transactions': [
{

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',