From 52068576860aeecc398937c36106501f0183d52f Mon Sep 17 00:00:00 2001 From: Marc-Constantin Enke Date: Fri, 24 Apr 2026 09:30:24 +0200 Subject: [PATCH 1/3] feat(Catch Log Entry): add set_only_once --- .../doctype/catch_log_entry/catch_log_entry.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.json b/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.json index 08f849b0..918ef224 100644 --- a/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.json +++ b/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.json @@ -32,7 +32,8 @@ "label": "Water Body", "options": "Water Body", "reqd": 1, - "search_index": 1 + "search_index": 1, + "set_only_once": 1 }, { "fieldname": "year", @@ -47,7 +48,8 @@ "fieldname": "fishing_days", "fieldtype": "Int", "label": "Fishing Days", - "reqd": 1 + "reqd": 1, + "set_only_once": 1 }, { "fieldname": "column_break_5", @@ -62,7 +64,8 @@ "label": "Organization", "options": "Organization", "remember_last_selected_value": 1, - "reqd": 1 + "reqd": 1, + "set_only_once": 1 }, { "fetch_from": "organization.organization_name", @@ -79,7 +82,8 @@ "fieldname": "fish_catches", "fieldtype": "Table", "label": "Fish Catches", - "options": "Catch Log Fish Table" + "options": "Catch Log Fish Table", + "set_only_once": 1 }, { "fetch_from": "water_body.fishing_area", From 4ddcf9586ef664bdd17937bea0188ce647d94222 Mon Sep 17 00:00:00 2001 From: Marc-Constantin Enke Date: Fri, 24 Apr 2026 09:42:43 +0200 Subject: [PATCH 2/3] fix(Catch Log Entry): change button to primary --- .../doctype/catch_log_entry/catch_log_entry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.js b/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.js index 52d6eea3..63a42287 100644 --- a/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.js +++ b/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.js @@ -24,7 +24,7 @@ frappe.ui.form.on("Catch Log Entry", { year: frm.doc.year, }); }); - + frm.change_custom_button_type(__("New Catch Log Entry"), null, "primary"); frm.add_custom_button(__("Delete"), () => frm.savetrash()); } }, From e9547cdbf8dfb1752775c99b5a34312be1b0ea1e Mon Sep 17 00:00:00 2001 From: Marc-Constantin Enke Date: Wed, 6 May 2026 10:55:58 +0200 Subject: [PATCH 3/3] refactor(Catch Log Entry): apply set_only_once only to water body --- .../doctype/catch_log_entry/catch_log_entry.json | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.json b/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.json index 918ef224..48521361 100644 --- a/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.json +++ b/landa/water_body_management/doctype/catch_log_entry/catch_log_entry.json @@ -48,8 +48,7 @@ "fieldname": "fishing_days", "fieldtype": "Int", "label": "Fishing Days", - "reqd": 1, - "set_only_once": 1 + "reqd": 1 }, { "fieldname": "column_break_5", @@ -64,8 +63,7 @@ "label": "Organization", "options": "Organization", "remember_last_selected_value": 1, - "reqd": 1, - "set_only_once": 1 + "reqd": 1 }, { "fetch_from": "organization.organization_name", @@ -82,8 +80,7 @@ "fieldname": "fish_catches", "fieldtype": "Table", "label": "Fish Catches", - "options": "Catch Log Fish Table", - "set_only_once": 1 + "options": "Catch Log Fish Table" }, { "fetch_from": "water_body.fishing_area", @@ -151,7 +148,7 @@ ], "grid_page_length": 50, "links": [], - "modified": "2026-03-18 22:15:30.654778", + "modified": "2026-05-06 10:55:03.010668", "modified_by": "Administrator", "module": "Water Body Management", "name": "Catch Log Entry",