Skip to content

Commit

Permalink
Making base doctypes (the core doctypes of the app) Tender / business…
Browse files Browse the repository at this point in the history
… clause / costing note & it's child tables (doctypes) => materials costs / labor costs / equipment costs / contractors costs / expense schedule / totals
  • Loading branch information
Andro0o0o0w-Romany committed Jul 18, 2024
1 parent 52c5c7e commit 9fa9827
Show file tree
Hide file tree
Showing 32 changed files with 891 additions and 0 deletions.
Empty file.
Empty file.
92 changes: 92 additions & 0 deletions contracta/contracta/doctype/business_clause/business_clause.json
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": []
}
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.
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": []
}
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.
8 changes: 8 additions & 0 deletions contracta/contracta/doctype/costing_note/costing_note.js
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 contracta/contracta/doctype/costing_note/costing_note.json
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": []
}
9 changes: 9 additions & 0 deletions contracta/contracta/doctype/costing_note/costing_note.py
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 contracta/contracta/doctype/costing_note/test_costing_note.py
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.
Loading

0 comments on commit 9fa9827

Please sign in to comment.