[minor] [fix] doctype_dasboard.py files, move data to get_data
This commit is contained in:
parent
401be3f49b
commit
17f6874450
@ -1,31 +1,32 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'fieldname': 'purchase_invoice',
|
return {
|
||||||
'non_standard_fieldnames': {
|
'fieldname': 'purchase_invoice',
|
||||||
'Delivery Note': 'against_sales_invoice',
|
'non_standard_fieldnames': {
|
||||||
'Journal Entry': 'reference_name',
|
'Delivery Note': 'against_sales_invoice',
|
||||||
'Payment Entry': 'reference_name',
|
'Journal Entry': 'reference_name',
|
||||||
'Payment Request': 'reference_name',
|
'Payment Entry': 'reference_name',
|
||||||
'Landed Cost Voucher': 'receipt_document',
|
'Payment Request': 'reference_name',
|
||||||
'Purchase Invoice': 'return_against'
|
'Landed Cost Voucher': 'receipt_document',
|
||||||
},
|
'Purchase Invoice': 'return_against'
|
||||||
'internal_links': {
|
|
||||||
'Purchase Order': ['items', 'sales_order'],
|
|
||||||
'Purchase Receipt': ['items', 'delivery_note'],
|
|
||||||
},
|
|
||||||
'transactions': [
|
|
||||||
{
|
|
||||||
'label': _('Payment'),
|
|
||||||
'items': ['Payment Entry', 'Payment Request', 'Journal Entry']
|
|
||||||
},
|
},
|
||||||
{
|
'internal_links': {
|
||||||
'label': _('Reference'),
|
'Purchase Order': ['items', 'sales_order'],
|
||||||
'items': ['Purchase Order', 'Purchase Receipt', 'Asset', 'Landed Cost Voucher']
|
'Purchase Receipt': ['items', 'delivery_note'],
|
||||||
},
|
},
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Returns'),
|
{
|
||||||
'items': ['Purchase Invoice']
|
'label': _('Payment'),
|
||||||
},
|
'items': ['Payment Entry', 'Payment Request', 'Journal Entry']
|
||||||
]
|
},
|
||||||
}
|
{
|
||||||
|
'label': _('Reference'),
|
||||||
|
'items': ['Purchase Order', 'Purchase Receipt', 'Asset', 'Landed Cost Voucher']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'label': _('Returns'),
|
||||||
|
'items': ['Purchase Invoice']
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
@ -1,30 +1,31 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'fieldname': 'sales_invoice',
|
return {
|
||||||
'non_standard_fieldnames': {
|
'fieldname': 'sales_invoice',
|
||||||
'Delivery Note': 'against_sales_invoice',
|
'non_standard_fieldnames': {
|
||||||
'Journal Entry': 'reference_name',
|
'Delivery Note': 'against_sales_invoice',
|
||||||
'Payment Entry': 'reference_name',
|
'Journal Entry': 'reference_name',
|
||||||
'Payment Request': 'reference_name',
|
'Payment Entry': 'reference_name',
|
||||||
'Sales Invoice': 'return_against'
|
'Payment Request': 'reference_name',
|
||||||
},
|
'Sales Invoice': 'return_against'
|
||||||
'internal_links': {
|
|
||||||
'Sales Order': ['items', 'sales_order'],
|
|
||||||
'Delivery Note': ['items', 'delivery_note'],
|
|
||||||
},
|
|
||||||
'transactions': [
|
|
||||||
{
|
|
||||||
'label': _('Payment'),
|
|
||||||
'items': ['Payment Entry', 'Payment Request', 'Journal Entry']
|
|
||||||
},
|
},
|
||||||
{
|
'internal_links': {
|
||||||
'label': _('Reference'),
|
'Sales Order': ['items', 'sales_order'],
|
||||||
'items': ['Timesheet', 'Delivery Note', 'Sales Order']
|
'Delivery Note': ['items', 'delivery_note'],
|
||||||
},
|
},
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Returns'),
|
{
|
||||||
'items': ['Sales Invoice']
|
'label': _('Payment'),
|
||||||
},
|
'items': ['Payment Entry', 'Payment Request', 'Journal Entry']
|
||||||
]
|
},
|
||||||
}
|
{
|
||||||
|
'label': _('Reference'),
|
||||||
|
'items': ['Timesheet', 'Delivery Note', 'Sales Order']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'label': _('Returns'),
|
||||||
|
'items': ['Sales Invoice']
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
@ -1,24 +1,25 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'fieldname': 'purchase_order',
|
return {
|
||||||
'internal_links': {
|
'fieldname': 'purchase_order',
|
||||||
'Material Request': ['items', 'material_request'],
|
'internal_links': {
|
||||||
'Supplier Quotation': ['items', 'supplier_quotation'],
|
'Material Request': ['items', 'material_request'],
|
||||||
'Project': ['project'],
|
'Supplier Quotation': ['items', 'supplier_quotation'],
|
||||||
},
|
'Project': ['project'],
|
||||||
'transactions': [
|
|
||||||
{
|
|
||||||
'label': _('Related'),
|
|
||||||
'items': ['Purchase Receipt', 'Purchase Invoice']
|
|
||||||
},
|
},
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Reference'),
|
{
|
||||||
'items': ['Material Request', 'Supplier Quotation', 'Project']
|
'label': _('Related'),
|
||||||
},
|
'items': ['Purchase Receipt', 'Purchase Invoice']
|
||||||
{
|
},
|
||||||
'label': _('Sub-contracting'),
|
{
|
||||||
'items': ['Stock Entry']
|
'label': _('Reference'),
|
||||||
},
|
'items': ['Material Request', 'Supplier Quotation', 'Project']
|
||||||
]
|
},
|
||||||
}
|
{
|
||||||
|
'label': _('Sub-contracting'),
|
||||||
|
'items': ['Stock Entry']
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
@ -1,12 +1,13 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'docstatus': 1,
|
return {
|
||||||
'fieldname': 'request_for_quotation',
|
'docstatus': 1,
|
||||||
'transactions': [
|
'fieldname': 'request_for_quotation',
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Related'),
|
{
|
||||||
'items': ['Supplier Quotation']
|
'label': _('Related'),
|
||||||
},
|
'items': ['Supplier Quotation']
|
||||||
]
|
},
|
||||||
}
|
]
|
||||||
|
}
|
@ -1,17 +1,18 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'heatmap': True,
|
return {
|
||||||
'heatmap_message': _('This is based on transactions against this Supplier. See timeline below for details'),
|
'heatmap': True,
|
||||||
'fieldname': 'supplier',
|
'heatmap_message': _('This is based on transactions against this Supplier. See timeline below for details'),
|
||||||
'transactions': [
|
'fieldname': 'supplier',
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Procurement'),
|
{
|
||||||
'items': ['Request for Quotation', 'Supplier Quotation']
|
'label': _('Procurement'),
|
||||||
},
|
'items': ['Request for Quotation', 'Supplier Quotation']
|
||||||
{
|
},
|
||||||
'label': _('Orders'),
|
{
|
||||||
'items': ['Purchase Order', 'Purchase Receipt', 'Purchase Invoice']
|
'label': _('Orders'),
|
||||||
}
|
'items': ['Purchase Order', 'Purchase Receipt', 'Purchase Invoice']
|
||||||
]
|
}
|
||||||
}
|
]
|
||||||
|
}
|
@ -1,20 +1,21 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'fieldname': 'supplier_quotation',
|
return {
|
||||||
'internal_links': {
|
'fieldname': 'supplier_quotation',
|
||||||
'Material Request': ['items', 'material_request'],
|
'internal_links': {
|
||||||
'Request for Quotation': ['items', 'request_for_quotation'],
|
'Material Request': ['items', 'material_request'],
|
||||||
'Project': ['items', 'project'],
|
'Request for Quotation': ['items', 'request_for_quotation'],
|
||||||
},
|
'Project': ['items', 'project'],
|
||||||
'transactions': [
|
|
||||||
{
|
|
||||||
'label': _('Related'),
|
|
||||||
'items': ['Purchase Order']
|
|
||||||
},
|
},
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Reference'),
|
{
|
||||||
'items': ['Material Request', 'Request for Quotation', 'Project']
|
'label': _('Related'),
|
||||||
},
|
'items': ['Purchase Order']
|
||||||
]
|
},
|
||||||
}
|
{
|
||||||
|
'label': _('Reference'),
|
||||||
|
'items': ['Material Request', 'Request for Quotation', 'Project']
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'fieldname': 'prevdoc_docname',
|
return {
|
||||||
'transactions': [
|
'fieldname': 'prevdoc_docname',
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Related'),
|
{
|
||||||
'items': ['Quotation']
|
'label': _('Related'),
|
||||||
},
|
'items': ['Quotation']
|
||||||
]
|
},
|
||||||
}
|
]
|
||||||
|
}
|
@ -1,25 +1,26 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'heatmap': True,
|
return {
|
||||||
'heatmap_message': _('This is based on the attendance of this Employee'),
|
'heatmap': True,
|
||||||
'fieldname': 'employee',
|
'heatmap_message': _('This is based on the attendance of this Employee'),
|
||||||
'transactions': [
|
'fieldname': 'employee',
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Leave and Attendance'),
|
{
|
||||||
'items': ['Attendance', 'Leave Application', 'Leave Allocation']
|
'label': _('Leave and Attendance'),
|
||||||
},
|
'items': ['Attendance', 'Leave Application', 'Leave Allocation']
|
||||||
{
|
},
|
||||||
'label': _('Payroll'),
|
{
|
||||||
'items': ['Salary Structure', 'Salary Slip', 'Timesheet']
|
'label': _('Payroll'),
|
||||||
},
|
'items': ['Salary Structure', 'Salary Slip', 'Timesheet']
|
||||||
{
|
},
|
||||||
'label': _('Expense'),
|
{
|
||||||
'items': ['Expense Claim']
|
'label': _('Expense'),
|
||||||
},
|
'items': ['Expense Claim']
|
||||||
{
|
},
|
||||||
'label': _('Evaluation'),
|
{
|
||||||
'items': ['Appraisal']
|
'label': _('Evaluation'),
|
||||||
}
|
'items': ['Appraisal']
|
||||||
]
|
}
|
||||||
}
|
]
|
||||||
|
}
|
@ -1,25 +1,26 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'heatmap': True,
|
return {
|
||||||
'heatmap_message': _('This is based on the Time Sheets created against this project'),
|
'heatmap': True,
|
||||||
'fieldname': 'project',
|
'heatmap_message': _('This is based on the Time Sheets created against this project'),
|
||||||
'transactions': [
|
'fieldname': 'project',
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Project'),
|
{
|
||||||
'items': ['Task', 'Timesheet', 'Expense Claim', 'Issue']
|
'label': _('Project'),
|
||||||
},
|
'items': ['Task', 'Timesheet', 'Expense Claim', 'Issue']
|
||||||
{
|
},
|
||||||
'label': _('Material'),
|
{
|
||||||
'items': ['Material Request', 'BOM', 'Stock Entry']
|
'label': _('Material'),
|
||||||
},
|
'items': ['Material Request', 'BOM', 'Stock Entry']
|
||||||
{
|
},
|
||||||
'label': _('Sales'),
|
{
|
||||||
'items': ['Sales Order', 'Delivery Note', 'Sales Invoice']
|
'label': _('Sales'),
|
||||||
},
|
'items': ['Sales Order', 'Delivery Note', 'Sales Invoice']
|
||||||
{
|
},
|
||||||
'label': _('Purchase'),
|
{
|
||||||
'items': ['Purchase Order', 'Purchase Receipt', 'Purchase Invoice']
|
'label': _('Purchase'),
|
||||||
},
|
'items': ['Purchase Order', 'Purchase Receipt', 'Purchase Invoice']
|
||||||
]
|
},
|
||||||
}
|
]
|
||||||
|
}
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'heatmap': True,
|
{
|
||||||
'heatmap_message': _('This is based on the attendance of this Student'),
|
'heatmap': True,
|
||||||
'fieldname': 'student',
|
'heatmap_message': _('This is based on the attendance of this Student'),
|
||||||
'transactions': [
|
'fieldname': 'student',
|
||||||
{
|
'transactions': [
|
||||||
'items': ['Student Log', 'Student Group', 'Student Attendance']
|
{
|
||||||
},
|
'items': ['Student Log', 'Student Group', 'Student Attendance']
|
||||||
{
|
},
|
||||||
'items': ['Program Enrollment', 'Fees', 'Assessment', 'Guardian']
|
{
|
||||||
}
|
'items': ['Program Enrollment', 'Fees', 'Assessment', 'Guardian']
|
||||||
]
|
}
|
||||||
}
|
]
|
||||||
|
}
|
@ -1,25 +1,26 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'heatmap': True,
|
return {
|
||||||
'heatmap_message': _('This is based on transactions against this Customer. See timeline below for details'),
|
'heatmap': True,
|
||||||
'fieldname': 'customer',
|
'heatmap_message': _('This is based on transactions against this Customer. See timeline below for details'),
|
||||||
'transactions': [
|
'fieldname': 'customer',
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Pre Sales'),
|
{
|
||||||
'items': ['Opportunity', 'Quotation']
|
'label': _('Pre Sales'),
|
||||||
},
|
'items': ['Opportunity', 'Quotation']
|
||||||
{
|
},
|
||||||
'label': _('Orders'),
|
{
|
||||||
'items': ['Sales Order', 'Delivery Note', 'Sales Invoice']
|
'label': _('Orders'),
|
||||||
},
|
'items': ['Sales Order', 'Delivery Note', 'Sales Invoice']
|
||||||
{
|
},
|
||||||
'label': _('Support'),
|
{
|
||||||
'items': ['Issue']
|
'label': _('Support'),
|
||||||
},
|
'items': ['Issue']
|
||||||
{
|
},
|
||||||
'label': _('Projects'),
|
{
|
||||||
'items': ['Project']
|
'label': _('Projects'),
|
||||||
}
|
'items': ['Project']
|
||||||
]
|
}
|
||||||
}
|
]
|
||||||
|
}
|
@ -1,11 +1,12 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'fieldname': 'prevdoc_docname',
|
return {
|
||||||
'transactions': [
|
'fieldname': 'prevdoc_docname',
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Related'),
|
{
|
||||||
'items': ['Sales Order']
|
'label': _('Related'),
|
||||||
},
|
'items': ['Sales Order']
|
||||||
]
|
},
|
||||||
}
|
]
|
||||||
|
}
|
@ -1,33 +1,34 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'fieldname': 'sales_order',
|
return {
|
||||||
'non_standard_fieldnames': {
|
'fieldname': 'sales_order',
|
||||||
'Delivery Note': 'against_sales_order',
|
'non_standard_fieldnames': {
|
||||||
},
|
'Delivery Note': 'against_sales_order',
|
||||||
'internal_links': {
|
|
||||||
'Quotation': ['items', 'prevdoc_docname']
|
|
||||||
},
|
|
||||||
'transactions': [
|
|
||||||
{
|
|
||||||
'label': _('Fulfillment'),
|
|
||||||
'items': ['Sales Invoice', 'Delivery Note']
|
|
||||||
},
|
},
|
||||||
{
|
'internal_links': {
|
||||||
'label': _('Purchasing'),
|
'Quotation': ['items', 'prevdoc_docname']
|
||||||
'items': ['Material Request', 'Purchase Order']
|
|
||||||
},
|
},
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Projects'),
|
{
|
||||||
'items': ['Project']
|
'label': _('Fulfillment'),
|
||||||
},
|
'items': ['Sales Invoice', 'Delivery Note']
|
||||||
{
|
},
|
||||||
'label': _('Manufacturing'),
|
{
|
||||||
'items': ['Production Order']
|
'label': _('Purchasing'),
|
||||||
},
|
'items': ['Material Request', 'Purchase Order']
|
||||||
{
|
},
|
||||||
'label': _('Reference'),
|
{
|
||||||
'items': ['Quotation']
|
'label': _('Projects'),
|
||||||
},
|
'items': ['Project']
|
||||||
]
|
},
|
||||||
}
|
{
|
||||||
|
'label': _('Manufacturing'),
|
||||||
|
'items': ['Production Order']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'label': _('Reference'),
|
||||||
|
'items': ['Quotation']
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
@ -1,26 +1,27 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'fieldname': 'delivery_note_no',
|
return {
|
||||||
'non_standard_fieldnames': {
|
'fieldname': 'delivery_note_no',
|
||||||
'Sales Invoice': 'delivery_note',
|
'non_standard_fieldnames': {
|
||||||
'Packing Slip': 'delivery_note',
|
'Sales Invoice': 'delivery_note',
|
||||||
},
|
'Packing Slip': 'delivery_note',
|
||||||
'internal_links': {
|
|
||||||
'Sales Order': ['items', 'against_sales_order'],
|
|
||||||
},
|
|
||||||
'transactions': [
|
|
||||||
{
|
|
||||||
'label': _('Related'),
|
|
||||||
'items': ['Sales Invoice', 'Packing Slip']
|
|
||||||
},
|
},
|
||||||
{
|
'internal_links': {
|
||||||
'label': _('Reference'),
|
'Sales Order': ['items', 'against_sales_order'],
|
||||||
'items': ['Sales Order', 'Quality Inspection']
|
|
||||||
},
|
},
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Returns'),
|
{
|
||||||
'items': ['Stock Entry']
|
'label': _('Related'),
|
||||||
},
|
'items': ['Sales Invoice', 'Packing Slip']
|
||||||
]
|
},
|
||||||
}
|
{
|
||||||
|
'label': _('Reference'),
|
||||||
|
'items': ['Sales Order', 'Quality Inspection']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'label': _('Returns'),
|
||||||
|
'items': ['Stock Entry']
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
@ -1,45 +1,46 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'heatmap': True,
|
return {
|
||||||
'heatmap_message': _('This is based on stock movement. See {0} for details')\
|
'heatmap': True,
|
||||||
.format('<a href="#query-report/Stock Ledger">' + _('Stock Ledger') + '</a>'),
|
'heatmap_message': _('This is based on stock movement. See {0} for details')\
|
||||||
'fieldname': 'item_code',
|
.format('<a href="#query-report/Stock Ledger">' + _('Stock Ledger') + '</a>'),
|
||||||
'non_standard_fieldnames': {
|
'fieldname': 'item_code',
|
||||||
'Production Order': 'production_item',
|
'non_standard_fieldnames': {
|
||||||
'Product Bundle': 'new_item_code',
|
'Production Order': 'production_item',
|
||||||
'BOM': 'item',
|
'Product Bundle': 'new_item_code',
|
||||||
'Batch': 'item'
|
'BOM': 'item',
|
||||||
},
|
'Batch': 'item'
|
||||||
'transactions': [
|
|
||||||
{
|
|
||||||
'label': _('Groups'),
|
|
||||||
'items': ['BOM', 'Product Bundle']
|
|
||||||
},
|
},
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Pricing'),
|
{
|
||||||
'items': ['Item Price', 'Pricing Rule']
|
'label': _('Groups'),
|
||||||
},
|
'items': ['BOM', 'Product Bundle']
|
||||||
{
|
},
|
||||||
'label': _('Sell'),
|
{
|
||||||
'items': ['Quotation', 'Sales Order', 'Delivery Note', 'Sales Invoice']
|
'label': _('Pricing'),
|
||||||
},
|
'items': ['Item Price', 'Pricing Rule']
|
||||||
{
|
},
|
||||||
'label': _('Buy'),
|
{
|
||||||
'items': ['Material Request', 'Supplier Quotation', 'Request for Quotation',
|
'label': _('Sell'),
|
||||||
'Purchase Order', 'Purchase Invoice']
|
'items': ['Quotation', 'Sales Order', 'Delivery Note', 'Sales Invoice']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'label': _('Traceability'),
|
'label': _('Buy'),
|
||||||
'items': ['Serial No', 'Batch']
|
'items': ['Material Request', 'Supplier Quotation', 'Request for Quotation',
|
||||||
},
|
'Purchase Order', 'Purchase Invoice']
|
||||||
{
|
},
|
||||||
'label': _('Move'),
|
{
|
||||||
'items': ['Stock Entry']
|
'label': _('Traceability'),
|
||||||
},
|
'items': ['Serial No', 'Batch']
|
||||||
{
|
},
|
||||||
'label': _('Manufacture'),
|
{
|
||||||
'items': ['Production Order']
|
'label': _('Move'),
|
||||||
}
|
'items': ['Stock Entry']
|
||||||
]
|
},
|
||||||
}
|
{
|
||||||
|
'label': _('Manufacture'),
|
||||||
|
'items': ['Production Order']
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -1,11 +1,12 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'fieldname': 'material_request',
|
return {
|
||||||
'transactions': [
|
'fieldname': 'material_request',
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Related'),
|
{
|
||||||
'items': ['Request for Quotation', 'Supplier Quotation', 'Purchase Order']
|
'label': _('Related'),
|
||||||
},
|
'items': ['Request for Quotation', 'Supplier Quotation', 'Purchase Order']
|
||||||
]
|
},
|
||||||
}
|
]
|
||||||
|
}
|
@ -1,28 +1,29 @@
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
|
|
||||||
data = {
|
def get_data():
|
||||||
'fieldname': 'purchase_receipt_no',
|
return {
|
||||||
'non_standard_fieldnames': {
|
'fieldname': 'purchase_receipt_no',
|
||||||
'Purchase Invoice': 'purchase_receipt',
|
'non_standard_fieldnames': {
|
||||||
'Landed Cost Voucher': 'receipt_document'
|
'Purchase Invoice': 'purchase_receipt',
|
||||||
},
|
'Landed Cost Voucher': 'receipt_document'
|
||||||
'internal_links': {
|
|
||||||
'Purchase Order': ['items', 'purchase_order'],
|
|
||||||
'Project': ['items', 'project'],
|
|
||||||
'Quality Inspection': ['items', 'qa_no'],
|
|
||||||
},
|
|
||||||
'transactions': [
|
|
||||||
{
|
|
||||||
'label': _('Related'),
|
|
||||||
'items': ['Purchase Invoice', 'Landed Cost Voucher']
|
|
||||||
},
|
},
|
||||||
{
|
'internal_links': {
|
||||||
'label': _('Reference'),
|
'Purchase Order': ['items', 'purchase_order'],
|
||||||
'items': ['Purchase Order', 'Quality Inspection', 'Project']
|
'Project': ['items', 'project'],
|
||||||
|
'Quality Inspection': ['items', 'qa_no'],
|
||||||
},
|
},
|
||||||
{
|
'transactions': [
|
||||||
'label': _('Returns'),
|
{
|
||||||
'items': ['Stock Entry']
|
'label': _('Related'),
|
||||||
},
|
'items': ['Purchase Invoice', 'Landed Cost Voucher']
|
||||||
]
|
},
|
||||||
}
|
{
|
||||||
|
'label': _('Reference'),
|
||||||
|
'items': ['Purchase Order', 'Quality Inspection', 'Project']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'label': _('Returns'),
|
||||||
|
'items': ['Stock Entry']
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user