Rucha Mahabal
5 years ago
79 changed files with 1494 additions and 3059 deletions
@ -0,0 +1,11 @@ |
|||
from __future__ import unicode_literals |
|||
|
|||
def get_data(): |
|||
return { |
|||
'fieldname': 'reference_name', |
|||
'transactions': [ |
|||
{ |
|||
'items': ['Journal Entry'] |
|||
} |
|||
] |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,60 @@ |
|||
{ |
|||
"custom_fields": [ |
|||
{ |
|||
"_assign": null, |
|||
"_comments": null, |
|||
"_liked_by": null, |
|||
"_user_tags": null, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"collapsible_depends_on": null, |
|||
"columns": 0, |
|||
"creation": "2019-12-02 11:00:03.432994", |
|||
"default": null, |
|||
"depends_on": null, |
|||
"description": null, |
|||
"docstatus": 0, |
|||
"dt": "Contact", |
|||
"fetch_from": null, |
|||
"fetch_if_empty": 0, |
|||
"fieldname": "is_billing_contact", |
|||
"fieldtype": "Check", |
|||
"hidden": 0, |
|||
"idx": 27, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 0, |
|||
"in_standard_filter": 0, |
|||
"insert_after": "is_primary_contact", |
|||
"label": "Is Billing Contact", |
|||
"length": 0, |
|||
"modified": "2019-12-02 11:00:03.432994", |
|||
"modified_by": "Administrator", |
|||
"name": "Contact-is_billing_contact", |
|||
"no_copy": 0, |
|||
"options": null, |
|||
"owner": "Administrator", |
|||
"parent": null, |
|||
"parentfield": null, |
|||
"parenttype": null, |
|||
"permlevel": 0, |
|||
"precision": "", |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"print_width": null, |
|||
"read_only": 0, |
|||
"report_hide": 0, |
|||
"reqd": 0, |
|||
"search_index": 0, |
|||
"translatable": 0, |
|||
"unique": 0, |
|||
"width": null |
|||
} |
|||
], |
|||
"custom_perms": [], |
|||
"doctype": "Contact", |
|||
"property_setters": [], |
|||
"sync_on_migrate": 1 |
|||
} |
@ -1,385 +1,123 @@ |
|||
{ |
|||
"allow_copy": 0, |
|||
"allow_guest_to_view": 0, |
|||
"allow_import": 0, |
|||
"allow_rename": 1, |
|||
"autoname": "HR-APP-.YYYY.-.#####", |
|||
"beta": 0, |
|||
"creation": "2013-01-29 19:25:37", |
|||
"custom": 0, |
|||
"description": "Applicant for a Job", |
|||
"docstatus": 0, |
|||
"doctype": "DocType", |
|||
"document_type": "Document", |
|||
"editable_grid": 0, |
|||
"engine": "InnoDB", |
|||
"actions": [], |
|||
"allow_rename": 1, |
|||
"autoname": "HR-APP-.YYYY.-.#####", |
|||
"creation": "2013-01-29 19:25:37", |
|||
"description": "Applicant for a Job", |
|||
"doctype": "DocType", |
|||
"document_type": "Document", |
|||
"email_append_to": 1, |
|||
"engine": "InnoDB", |
|||
"field_order": [ |
|||
"applicant_name", |
|||
"email_id", |
|||
"status", |
|||
"column_break_3", |
|||
"job_title", |
|||
"source", |
|||
"source_name", |
|||
"section_break_6", |
|||
"notes", |
|||
"cover_letter", |
|||
"resume_attachment" |
|||
], |
|||
"fields": [ |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 1, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "applicant_name", |
|||
"fieldtype": "Data", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 1, |
|||
"in_list_view": 0, |
|||
"in_standard_filter": 0, |
|||
"label": "Applicant Name", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"permlevel": 0, |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 1, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"bold": 1, |
|||
"fieldname": "applicant_name", |
|||
"fieldtype": "Data", |
|||
"in_global_search": 1, |
|||
"label": "Applicant Name", |
|||
"reqd": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 1, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "email_id", |
|||
"fieldtype": "Data", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 0, |
|||
"in_standard_filter": 0, |
|||
"label": "Email Address", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"options": "Email", |
|||
"permlevel": 0, |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 1, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"bold": 1, |
|||
"fieldname": "email_id", |
|||
"fieldtype": "Data", |
|||
"label": "Email Address", |
|||
"options": "Email", |
|||
"reqd": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "status", |
|||
"fieldtype": "Select", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 1, |
|||
"in_standard_filter": 1, |
|||
"label": "Status", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"options": "Open\nReplied\nRejected\nHold\nAccepted", |
|||
"permlevel": 0, |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 1, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"fieldname": "status", |
|||
"fieldtype": "Select", |
|||
"in_list_view": 1, |
|||
"in_standard_filter": 1, |
|||
"label": "Status", |
|||
"options": "Open\nReplied\nRejected\nHold\nAccepted", |
|||
"reqd": 1 |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "column_break_3", |
|||
"fieldtype": "Column Break", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 0, |
|||
"in_standard_filter": 0, |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"permlevel": 0, |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 0, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0, |
|||
"fieldname": "column_break_3", |
|||
"fieldtype": "Column Break", |
|||
"width": "50%" |
|||
}, |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "job_title", |
|||
"fieldtype": "Link", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 1, |
|||
"in_standard_filter": 0, |
|||
"label": "Job Opening", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"options": "Job Opening", |
|||
"permlevel": 0, |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 0, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"fieldname": "job_title", |
|||
"fieldtype": "Link", |
|||
"in_list_view": 1, |
|||
"label": "Job Opening", |
|||
"options": "Job Opening" |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "source", |
|||
"fieldtype": "Link", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 0, |
|||
"in_standard_filter": 0, |
|||
"label": "Source", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"options": "Job Applicant Source", |
|||
"permlevel": 0, |
|||
"precision": "", |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 0, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"fieldname": "source", |
|||
"fieldtype": "Link", |
|||
"label": "Source", |
|||
"options": "Job Applicant Source" |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"depends_on": "eval: doc.source==\"Employee Referral\" ", |
|||
"fieldname": "source_name", |
|||
"fieldtype": "Link", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 0, |
|||
"in_standard_filter": 0, |
|||
"label": "Source Name", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"options": "Employee", |
|||
"permlevel": 0, |
|||
"precision": "", |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 0, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"depends_on": "eval: doc.source==\"Employee Referral\" ", |
|||
"fieldname": "source_name", |
|||
"fieldtype": "Link", |
|||
"label": "Source Name", |
|||
"options": "Employee" |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "section_break_6", |
|||
"fieldtype": "Section Break", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 0, |
|||
"in_standard_filter": 0, |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"permlevel": 0, |
|||
"precision": "", |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 0, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"fieldname": "section_break_6", |
|||
"fieldtype": "Section Break" |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "cover_letter", |
|||
"fieldtype": "Text", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 0, |
|||
"in_standard_filter": 0, |
|||
"label": "Cover Letter", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"permlevel": 0, |
|||
"precision": "", |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 0, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
}, |
|||
"fieldname": "cover_letter", |
|||
"fieldtype": "Text", |
|||
"label": "Cover Letter" |
|||
}, |
|||
{ |
|||
"allow_bulk_edit": 0, |
|||
"allow_in_quick_entry": 0, |
|||
"allow_on_submit": 0, |
|||
"bold": 0, |
|||
"collapsible": 0, |
|||
"columns": 0, |
|||
"fieldname": "resume_attachment", |
|||
"fieldtype": "Attach", |
|||
"hidden": 0, |
|||
"ignore_user_permissions": 0, |
|||
"ignore_xss_filter": 0, |
|||
"in_filter": 0, |
|||
"in_global_search": 0, |
|||
"in_list_view": 0, |
|||
"in_standard_filter": 0, |
|||
"label": "Resume Attachment", |
|||
"length": 0, |
|||
"no_copy": 0, |
|||
"permlevel": 0, |
|||
"precision": "", |
|||
"print_hide": 0, |
|||
"print_hide_if_no_value": 0, |
|||
"read_only": 0, |
|||
"remember_last_selected_value": 0, |
|||
"report_hide": 0, |
|||
"reqd": 0, |
|||
"search_index": 0, |
|||
"set_only_once": 0, |
|||
"translatable": 0, |
|||
"unique": 0 |
|||
"fieldname": "resume_attachment", |
|||
"fieldtype": "Attach", |
|||
"label": "Resume Attachment" |
|||
}, |
|||
{ |
|||
"fieldname": "notes", |
|||
"fieldtype": "Data", |
|||
"label": "Notes", |
|||
"read_only": 1 |
|||
} |
|||
], |
|||
"has_web_view": 0, |
|||
"hide_heading": 0, |
|||
"hide_toolbar": 0, |
|||
"icon": "fa fa-user", |
|||
"idx": 1, |
|||
"image_view": 0, |
|||
"in_create": 0, |
|||
"is_submittable": 0, |
|||
"issingle": 0, |
|||
"istable": 0, |
|||
"max_attachments": 0, |
|||
"modified": "2019-07-21 16:15:43.552049", |
|||
"modified_by": "Administrator", |
|||
"module": "HR", |
|||
"name": "Job Applicant", |
|||
"owner": "Administrator", |
|||
], |
|||
"icon": "fa fa-user", |
|||
"idx": 1, |
|||
"links": [], |
|||
"modified": "2020-01-13 16:19:39.113330", |
|||
"modified_by": "Administrator", |
|||
"module": "HR", |
|||
"name": "Job Applicant", |
|||
"owner": "Administrator", |
|||
"permissions": [ |
|||
{ |
|||
"amend": 0, |
|||
"cancel": 0, |
|||
"create": 1, |
|||
"delete": 1, |
|||
"email": 1, |
|||
"export": 0, |
|||
"if_owner": 0, |
|||
"import": 0, |
|||
"permlevel": 0, |
|||
"print": 1, |
|||
"read": 1, |
|||
"report": 1, |
|||
"role": "HR User", |
|||
"set_user_permissions": 0, |
|||
"share": 1, |
|||
"submit": 0, |
|||
"create": 1, |
|||
"delete": 1, |
|||
"email": 1, |
|||
"print": 1, |
|||
"read": 1, |
|||
"report": 1, |
|||
"role": "HR User", |
|||
"share": 1, |
|||
"write": 1 |
|||
} |
|||
], |
|||
"quick_entry": 0, |
|||
"read_only": 0, |
|||
"read_only_onload": 0, |
|||
"search_fields": "applicant_name", |
|||
"show_name_in_global_search": 0, |
|||
"sort_order": "ASC", |
|||
"title_field": "applicant_name", |
|||
"track_changes": 0, |
|||
"track_seen": 0, |
|||
"track_views": 0 |
|||
], |
|||
"search_fields": "applicant_name", |
|||
"sender_field": "email_id", |
|||
"sort_field": "modified", |
|||
"sort_order": "ASC", |
|||
"subject_field": "notes", |
|||
"title_field": "applicant_name" |
|||
} |
@ -1,12 +1,9 @@ |
|||
import frappe |
|||
from frappe.permissions import add_permission, update_permission_property |
|||
from erpnext.regional.india.setup import add_permissions |
|||
|
|||
def execute(): |
|||
company = frappe.get_all('Company', filters = {'country': 'India'}) |
|||
if not company: |
|||
return |
|||
|
|||
for doctype in ('GST HSN Code', 'GST Settings'): |
|||
add_permission(doctype, 'Accounts Manager', 0) |
|||
update_permission_property(doctype, 'Accounts Manager', 0, 'write', 1) |
|||
update_permission_property(doctype, 'Accounts Manager', 0, 'create', 1) |
|||
add_permissions() |
@ -0,0 +1,13 @@ |
|||
from __future__ import unicode_literals |
|||
import frappe |
|||
from erpnext.stock.stock_balance import update_bin_qty, get_indented_qty |
|||
|
|||
def execute(): |
|||
bin_details = frappe.db.sql(""" |
|||
SELECT item_code, warehouse |
|||
FROM `tabBin`""",as_dict=1) |
|||
|
|||
for entry in bin_details: |
|||
update_bin_qty(entry.get("item_code"), entry.get("warehouse"), { |
|||
"indented_qty": get_indented_qty(entry.get("item_code"), entry.get("warehouse")) |
|||
}) |
@ -0,0 +1,30 @@ |
|||
from __future__ import unicode_literals |
|||
import frappe |
|||
|
|||
def execute(): |
|||
purchase_receipts = frappe.db.sql(""" |
|||
SELECT |
|||
parent from `tabPurchase Receipt Item` |
|||
WHERE |
|||
material_request is not null |
|||
AND docstatus=1 |
|||
""",as_dict=1) |
|||
|
|||
purchase_receipts = set([d.parent for d in purchase_receipts]) |
|||
|
|||
for pr in purchase_receipts: |
|||
doc = frappe.get_doc("Purchase Receipt", pr) |
|||
doc.status_updater = [ |
|||
{ |
|||
'source_dt': 'Purchase Receipt Item', |
|||
'target_dt': 'Material Request Item', |
|||
'join_field': 'material_request_item', |
|||
'target_field': 'received_qty', |
|||
'target_parent_dt': 'Material Request', |
|||
'target_parent_field': 'per_received', |
|||
'target_ref_field': 'stock_qty', |
|||
'source_field': 'stock_qty', |
|||
'percent_join_field': 'material_request' |
|||
} |
|||
] |
|||
doc.update_qty() |
File diff suppressed because it is too large
Loading…
Reference in new issue