fix(project settings): add checkbox to auto fetch timesheet in sales invoice

This commit is contained in:
venkat102
2025-02-13 23:05:34 +05:30
parent e6176db2c9
commit 876082ea2f
2 changed files with 11 additions and 2 deletions

View File

@@ -8,7 +8,8 @@
"timesheet_sb", "timesheet_sb",
"ignore_workstation_time_overlap", "ignore_workstation_time_overlap",
"ignore_user_time_overlap", "ignore_user_time_overlap",
"ignore_employee_time_overlap" "ignore_employee_time_overlap",
"fetch_timesheet_in_sales_invoice"
], ],
"fields": [ "fields": [
{ {
@@ -33,11 +34,18 @@
"fieldname": "ignore_employee_time_overlap", "fieldname": "ignore_employee_time_overlap",
"fieldtype": "Check", "fieldtype": "Check",
"label": "Ignore Employee Time Overlap" "label": "Ignore Employee Time Overlap"
},
{
"default": "0",
"description": "Enabling the check box will fetch timesheet on select of a Project in Sales Invoice",
"fieldname": "fetch_timesheet_in_sales_invoice",
"fieldtype": "Check",
"label": "Fetch Timesheet in Sales Invoice"
} }
], ],
"issingle": 1, "issingle": 1,
"links": [], "links": [],
"modified": "2024-03-27 13:10:21.984404", "modified": "2025-02-13 23:01:27.321902",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Projects", "module": "Projects",
"name": "Projects Settings", "name": "Projects Settings",

View File

@@ -14,6 +14,7 @@ class ProjectsSettings(Document):
if TYPE_CHECKING: if TYPE_CHECKING:
from frappe.types import DF from frappe.types import DF
fetch_timesheet_in_sales_invoice: DF.Check
ignore_employee_time_overlap: DF.Check ignore_employee_time_overlap: DF.Check
ignore_user_time_overlap: DF.Check ignore_user_time_overlap: DF.Check
ignore_workstation_time_overlap: DF.Check ignore_workstation_time_overlap: DF.Check