Compare commits
No commits in common. "120693b62b68d450cecfa6114f7e116bccdedd1c" and "38c2e67d382a15b27acdb55d73310601e6c84ab9" have entirely different histories.
120693b62b
...
38c2e67d38
6 changed files with 16 additions and 107 deletions
|
|
@ -1,8 +0,0 @@
|
||||||
// Copyright (c) 2026, Shiloh Code LLC and contributors
|
|
||||||
// For license information, please see license.txt
|
|
||||||
|
|
||||||
// frappe.ui.form.on("Bid Meeting Note", {
|
|
||||||
// refresh(frm) {
|
|
||||||
|
|
||||||
// },
|
|
||||||
// });
|
|
||||||
|
|
@ -1,76 +0,0 @@
|
||||||
{
|
|
||||||
"actions": [],
|
|
||||||
"allow_rename": 1,
|
|
||||||
"creation": "2026-02-09 03:55:26.035639",
|
|
||||||
"doctype": "DocType",
|
|
||||||
"engine": "InnoDB",
|
|
||||||
"field_order": [
|
|
||||||
"form_template",
|
|
||||||
"bid_meeting",
|
|
||||||
"notes",
|
|
||||||
"fields",
|
|
||||||
"quantities"
|
|
||||||
],
|
|
||||||
"fields": [
|
|
||||||
{
|
|
||||||
"fieldname": "form_template",
|
|
||||||
"fieldtype": "Link",
|
|
||||||
"in_list_view": 1,
|
|
||||||
"label": "Form Template",
|
|
||||||
"options": "Bid Meeting Note Form",
|
|
||||||
"reqd": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "bid_meeting",
|
|
||||||
"fieldtype": "Link",
|
|
||||||
"in_list_view": 1,
|
|
||||||
"label": "Bid Meeting",
|
|
||||||
"options": "On-Site Meeting",
|
|
||||||
"reqd": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "notes",
|
|
||||||
"fieldtype": "Small Text",
|
|
||||||
"label": "Notes"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "fields",
|
|
||||||
"fieldtype": "Table",
|
|
||||||
"label": "Fields",
|
|
||||||
"options": "Bid Meeting Note Field"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "quantities",
|
|
||||||
"fieldtype": "Table",
|
|
||||||
"label": "Quantities",
|
|
||||||
"options": "Bid Meeting Note Field Quantity"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"grid_page_length": 50,
|
|
||||||
"index_web_pages_for_search": 1,
|
|
||||||
"links": [],
|
|
||||||
"modified": "2026-02-09 10:22:58.938177",
|
|
||||||
"modified_by": "Administrator",
|
|
||||||
"module": "Custom UI",
|
|
||||||
"name": "Bid Meeting Note",
|
|
||||||
"owner": "Administrator",
|
|
||||||
"permissions": [
|
|
||||||
{
|
|
||||||
"create": 1,
|
|
||||||
"delete": 1,
|
|
||||||
"email": 1,
|
|
||||||
"export": 1,
|
|
||||||
"print": 1,
|
|
||||||
"read": 1,
|
|
||||||
"report": 1,
|
|
||||||
"role": "System Manager",
|
|
||||||
"share": 1,
|
|
||||||
"write": 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"row_format": "Dynamic",
|
|
||||||
"rows_threshold_for_grid_search": 20,
|
|
||||||
"sort_field": "modified",
|
|
||||||
"sort_order": "DESC",
|
|
||||||
"states": []
|
|
||||||
}
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
# Copyright (c) 2026, Shiloh Code LLC and contributors
|
|
||||||
# For license information, please see license.txt
|
|
||||||
|
|
||||||
# import frappe
|
|
||||||
from frappe.model.document import Document
|
|
||||||
|
|
||||||
|
|
||||||
class BidMeetingNote(Document):
|
|
||||||
pass
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
# Copyright (c) 2026, Shiloh Code LLC and Contributors
|
|
||||||
# See license.txt
|
|
||||||
|
|
||||||
# import frappe
|
|
||||||
from frappe.tests.utils import FrappeTestCase
|
|
||||||
|
|
||||||
|
|
||||||
class TestBidMeetingNote(FrappeTestCase):
|
|
||||||
pass
|
|
||||||
|
|
@ -48,9 +48,9 @@ def after_migrate():
|
||||||
# create_project_templates()
|
# create_project_templates()
|
||||||
create_task_types()
|
create_task_types()
|
||||||
# create_tasks()
|
# create_tasks()
|
||||||
create_companies()
|
|
||||||
create_accounts()
|
|
||||||
create_bid_meeting_note_form_templates()
|
create_bid_meeting_note_form_templates()
|
||||||
|
create_accounts()
|
||||||
|
create_companies()
|
||||||
# init_stripe_accounts()
|
# init_stripe_accounts()
|
||||||
|
|
||||||
# update_address_fields()
|
# update_address_fields()
|
||||||
|
|
@ -876,6 +876,17 @@ def create_companies():
|
||||||
'chart_of_accounts': 'Standard',
|
'chart_of_accounts': 'Standard',
|
||||||
'enable_perpetual_inventory': 1
|
'enable_perpetual_inventory': 1
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'company_name': 'sprinklersnorthwest (Demo)',
|
||||||
|
'abbr': 'SD',
|
||||||
|
'default_currency': 'USD',
|
||||||
|
'country': 'United States',
|
||||||
|
'is_group': 0,
|
||||||
|
'parent_company': None,
|
||||||
|
'create_chart_of_accounts_based_on': 'Standard Template',
|
||||||
|
'chart_of_accounts': 'Standard',
|
||||||
|
'enable_perpetual_inventory': 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'company_name': 'Lowe Fencing',
|
'company_name': 'Lowe Fencing',
|
||||||
'abbr': 'LF',
|
'abbr': 'LF',
|
||||||
|
|
@ -920,7 +931,7 @@ def create_companies():
|
||||||
doc = frappe.get_doc(data)
|
doc = frappe.get_doc(data)
|
||||||
doc.insert(ignore_permissions=True)
|
doc.insert(ignore_permissions=True)
|
||||||
set_default_accounts(doc)
|
set_default_accounts(doc)
|
||||||
|
|
||||||
def set_default_accounts(company_doc):
|
def set_default_accounts(company_doc):
|
||||||
"""Set default accounts for a company after creation."""
|
"""Set default accounts for a company after creation."""
|
||||||
abbr = company_doc.abbr
|
abbr = company_doc.abbr
|
||||||
|
|
@ -931,8 +942,8 @@ def set_default_accounts(company_doc):
|
||||||
company_doc.default_expense_account = f"Cost of Goods Sold - {abbr}"
|
company_doc.default_expense_account = f"Cost of Goods Sold - {abbr}"
|
||||||
company_doc.cost_center = f"Main - {abbr}"
|
company_doc.cost_center = f"Main - {abbr}"
|
||||||
company_doc.save(ignore_permissions=True)
|
company_doc.save(ignore_permissions=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def create_accounts():
|
def create_accounts():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue