feat: Add non-negative constraint to completed qty fields in job card and time log (backport #48946) (#48989)

* feat: Add non-negative constraint to completed qty fields in job card and time log

(cherry picked from commit c30665fda7)

# Conflicts:
#	erpnext/manufacturing/doctype/job_card/job_card.json
#	erpnext/manufacturing/doctype/job_card_time_log/job_card_time_log.json

* chore: resolve conflicts

* chore: resolve conflicts

---------

Co-authored-by: KerollesFathy <kerolles.f@outlook.com>
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
This commit is contained in:
mergify[bot]
2025-08-05 11:06:43 +00:00
committed by GitHub
parent 3760ff8a7a
commit 84e91e0c7c
2 changed files with 6 additions and 4 deletions

View File

@@ -160,6 +160,7 @@
"fieldname": "total_completed_qty", "fieldname": "total_completed_qty",
"fieldtype": "Float", "fieldtype": "Float",
"label": "Total Completed Qty", "label": "Total Completed Qty",
"non_negative": 1,
"read_only": 1 "read_only": 1
}, },
{ {
@@ -510,7 +511,7 @@
], ],
"is_submittable": 1, "is_submittable": 1,
"links": [], "links": [],
"modified": "2025-03-17 15:55:11.143456", "modified": "2025-08-04 15:47:54.514290",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Manufacturing", "module": "Manufacturing",
"name": "Job Card", "name": "Job Card",

View File

@@ -42,7 +42,8 @@
"fieldname": "completed_qty", "fieldname": "completed_qty",
"fieldtype": "Float", "fieldtype": "Float",
"in_list_view": 1, "in_list_view": 1,
"label": "Completed Qty" "label": "Completed Qty",
"non_negative": 1
}, },
{ {
"fieldname": "employee", "fieldname": "employee",
@@ -63,7 +64,7 @@
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2024-05-21 12:40:55.765860", "modified": "2025-08-04 15:47:11.748937",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Manufacturing", "module": "Manufacturing",
"name": "Job Card Time Log", "name": "Job Card Time Log",