-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making base doctypes (the core doctypes of the app) Tender / business…
… clause / costing note & it's child tables (doctypes) => materials costs / labor costs / equipment costs / contractors costs / expense schedule / totals
- Loading branch information
1 parent
52c5c7e
commit 9fa9827
Showing
32 changed files
with
891 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Empty file.
92 changes: 92 additions & 0 deletions
92
contracta/contracta/doctype/business_clause/business_clause.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"actions": [], | ||
"allow_rename": 1, | ||
"creation": "2024-07-17 17:24:17.584874", | ||
"doctype": "DocType", | ||
"editable_grid": 1, | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"group", | ||
"series", | ||
"project_classification", | ||
"clause", | ||
"uom", | ||
"column_break_cawa", | ||
"qty", | ||
"costing_note", | ||
"total_cost", | ||
"default_profit_margin", | ||
"default_selling_price" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "group", | ||
"fieldtype": "Link", | ||
"label": "Group", | ||
"options": "Item Group" | ||
}, | ||
{ | ||
"fieldname": "series", | ||
"fieldtype": "Data", | ||
"label": "Series" | ||
}, | ||
{ | ||
"fieldname": "project_classification", | ||
"fieldtype": "Data", | ||
"label": "Project classification" | ||
}, | ||
{ | ||
"fieldname": "clause", | ||
"fieldtype": "Data", | ||
"label": "Clause" | ||
}, | ||
{ | ||
"fieldname": "uom", | ||
"fieldtype": "Link", | ||
"label": "UOM", | ||
"options": "UOM" | ||
}, | ||
{ | ||
"fieldname": "column_break_cawa", | ||
"fieldtype": "Column Break" | ||
}, | ||
{ | ||
"fieldname": "qty", | ||
"fieldtype": "Int", | ||
"label": "Qty" | ||
}, | ||
{ | ||
"fieldname": "costing_note", | ||
"fieldtype": "Link", | ||
"label": "Costing Note", | ||
"options": "Costing Note" | ||
}, | ||
{ | ||
"fieldname": "total_cost", | ||
"fieldtype": "Int", | ||
"label": "Total Cost" | ||
}, | ||
{ | ||
"fieldname": "default_profit_margin", | ||
"fieldtype": "Int", | ||
"label": "Default profit margin" | ||
}, | ||
{ | ||
"fieldname": "default_selling_price", | ||
"fieldtype": "Int", | ||
"label": "Default selling price" | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"istable": 1, | ||
"links": [], | ||
"modified": "2024-07-18 18:09:59.184676", | ||
"modified_by": "Administrator", | ||
"module": "Contracta", | ||
"name": "Business Clause", | ||
"owner": "Administrator", | ||
"permissions": [], | ||
"sort_field": "modified", | ||
"sort_order": "DESC", | ||
"states": [] | ||
} |
9 changes: 9 additions & 0 deletions
9
contracta/contracta/doctype/business_clause/business_clause.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2024, Andrew Romany and contributors | ||
# For license information, please see license.txt | ||
|
||
# import frappe | ||
from frappe.model.document import Document | ||
|
||
|
||
class BusinessClause(Document): | ||
pass |
Empty file.
73 changes: 73 additions & 0 deletions
73
contracta/contracta/doctype/contractors_costs/contractors_costs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"actions": [], | ||
"allow_rename": 1, | ||
"creation": "2024-07-18 17:16:38.096908", | ||
"doctype": "DocType", | ||
"editable_grid": 1, | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"contractor", | ||
"uom", | ||
"qty", | ||
"unit_cost", | ||
"total_cost", | ||
"tax", | ||
"tax_value", | ||
"total_after_tax" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "contractor", | ||
"fieldtype": "Data", | ||
"label": "Contractor" | ||
}, | ||
{ | ||
"fieldname": "uom", | ||
"fieldtype": "Link", | ||
"label": "UOM", | ||
"options": "UOM" | ||
}, | ||
{ | ||
"fieldname": "qty", | ||
"fieldtype": "Int", | ||
"label": "Qty" | ||
}, | ||
{ | ||
"fieldname": "unit_cost", | ||
"fieldtype": "Int", | ||
"label": "Unit Cost" | ||
}, | ||
{ | ||
"fieldname": "total_cost", | ||
"fieldtype": "Int", | ||
"label": "Total Cost" | ||
}, | ||
{ | ||
"fieldname": "tax", | ||
"fieldtype": "Percent", | ||
"label": "Tax" | ||
}, | ||
{ | ||
"fieldname": "tax_value", | ||
"fieldtype": "Int", | ||
"label": "Tax Value" | ||
}, | ||
{ | ||
"fieldname": "total_after_tax", | ||
"fieldtype": "Int", | ||
"label": "Total After Tax" | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"istable": 1, | ||
"links": [], | ||
"modified": "2024-07-18 17:32:00.947922", | ||
"modified_by": "Administrator", | ||
"module": "Contracta", | ||
"name": "Contractors Costs", | ||
"owner": "Administrator", | ||
"permissions": [], | ||
"sort_field": "modified", | ||
"sort_order": "DESC", | ||
"states": [] | ||
} |
9 changes: 9 additions & 0 deletions
9
contracta/contracta/doctype/contractors_costs/contractors_costs.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2024, Andrew Romany and contributors | ||
# For license information, please see license.txt | ||
|
||
# import frappe | ||
from frappe.model.document import Document | ||
|
||
|
||
class ContractorsCosts(Document): | ||
pass |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Copyright (c) 2024, Andrew Romany and contributors | ||
// For license information, please see license.txt | ||
|
||
// frappe.ui.form.on("Costing Note", { | ||
// refresh(frm) { | ||
|
||
// }, | ||
// }); |
163 changes: 163 additions & 0 deletions
163
contracta/contracta/doctype/costing_note/costing_note.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
{ | ||
"actions": [], | ||
"allow_rename": 1, | ||
"creation": "2024-07-18 11:00:47.551123", | ||
"doctype": "DocType", | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"section_break_qawr", | ||
"amended_from", | ||
"basic_classification", | ||
"clause", | ||
"uom", | ||
"qty", | ||
"holder", | ||
"column_break_ytai", | ||
"project_serial", | ||
"starting_date", | ||
"ending_date", | ||
"expected_time_to_deliver", | ||
"section_break_llma", | ||
"material_costs", | ||
"labor_costs", | ||
"equipment_costs", | ||
"contractors_costs", | ||
"expense_schedule", | ||
"totals" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "section_break_qawr", | ||
"fieldtype": "Section Break" | ||
}, | ||
{ | ||
"fieldname": "amended_from", | ||
"fieldtype": "Link", | ||
"label": "Amended From", | ||
"no_copy": 1, | ||
"options": "Costing Note", | ||
"print_hide": 1, | ||
"read_only": 1, | ||
"search_index": 1 | ||
}, | ||
{ | ||
"fieldname": "basic_classification", | ||
"fieldtype": "Link", | ||
"label": "Basic Classification", | ||
"options": "Item Group" | ||
}, | ||
{ | ||
"fieldname": "clause", | ||
"fieldtype": "Link", | ||
"label": "business clause name and it's ID", | ||
"options": "Business Clause" | ||
}, | ||
{ | ||
"fieldname": "uom", | ||
"fieldtype": "Link", | ||
"label": "UOM", | ||
"options": "UOM" | ||
}, | ||
{ | ||
"fieldname": "qty", | ||
"fieldtype": "Int", | ||
"label": "Qty" | ||
}, | ||
{ | ||
"fieldname": "holder", | ||
"fieldtype": "Data", | ||
"label": "Holder" | ||
}, | ||
{ | ||
"fieldname": "column_break_ytai", | ||
"fieldtype": "Column Break" | ||
}, | ||
{ | ||
"fieldname": "project_serial", | ||
"fieldtype": "Link", | ||
"label": "Project Serial", | ||
"options": "Project" | ||
}, | ||
{ | ||
"fieldname": "starting_date", | ||
"fieldtype": "Date", | ||
"label": "Starting Date" | ||
}, | ||
{ | ||
"fieldname": "ending_date", | ||
"fieldtype": "Date", | ||
"label": "Ending Date" | ||
}, | ||
{ | ||
"fieldname": "expected_time_to_deliver", | ||
"fieldtype": "Data", | ||
"label": "Expected Time to deliver" | ||
}, | ||
{ | ||
"fieldname": "section_break_llma", | ||
"fieldtype": "Section Break" | ||
}, | ||
{ | ||
"fieldname": "material_costs", | ||
"fieldtype": "Table", | ||
"label": "Material Costs", | ||
"options": "Materials Costs" | ||
}, | ||
{ | ||
"fieldname": "equipment_costs", | ||
"fieldtype": "Table", | ||
"label": "Equipment Costs", | ||
"options": "Equipment Costs" | ||
}, | ||
{ | ||
"fieldname": "labor_costs", | ||
"fieldtype": "Table", | ||
"label": "Labor Costs", | ||
"options": "Labor Costs" | ||
}, | ||
{ | ||
"fieldname": "contractors_costs", | ||
"fieldtype": "Table", | ||
"label": "Contractors Costs", | ||
"options": "Contractors Costs" | ||
}, | ||
{ | ||
"fieldname": "expense_schedule", | ||
"fieldtype": "Table", | ||
"label": "Expense Schedule", | ||
"options": "Expense Schedule" | ||
}, | ||
{ | ||
"fieldname": "totals", | ||
"fieldtype": "Table", | ||
"label": "Totals", | ||
"options": "Totals" | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"is_submittable": 1, | ||
"links": [], | ||
"modified": "2024-07-18 18:04:48.707723", | ||
"modified_by": "Administrator", | ||
"module": "Contracta", | ||
"name": "Costing Note", | ||
"owner": "Administrator", | ||
"permissions": [ | ||
{ | ||
"create": 1, | ||
"delete": 1, | ||
"email": 1, | ||
"export": 1, | ||
"print": 1, | ||
"read": 1, | ||
"report": 1, | ||
"role": "System Manager", | ||
"share": 1, | ||
"submit": 1, | ||
"write": 1 | ||
} | ||
], | ||
"sort_field": "modified", | ||
"sort_order": "DESC", | ||
"states": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2024, Andrew Romany and contributors | ||
# For license information, please see license.txt | ||
|
||
# import frappe | ||
from frappe.model.document import Document | ||
|
||
|
||
class CostingNote(Document): | ||
pass |
9 changes: 9 additions & 0 deletions
9
contracta/contracta/doctype/costing_note/test_costing_note.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2024, Andrew Romany and Contributors | ||
# See license.txt | ||
|
||
# import frappe | ||
from frappe.tests.utils import FrappeTestCase | ||
|
||
|
||
class TestCostingNote(FrappeTestCase): | ||
pass |
Empty file.
Oops, something went wrong.