Skip to content

Commit

Permalink
feat:Job time childtable and duration field made read only
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakkiyathLulu committed May 10, 2024
1 parent 2abce53 commit 22b7d20
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ frappe.ui.form.on("Jewellery Job Card", {
if (frm.doc.docstatus === 1) {
frm.remove_custom_button('Start');
}
frm.set_df_property("duration", "read_only", 1);
frm.set_df_property("job_time", "read_only",frm.doc.__islocal ? 0 : 1);
},
onload: function(frm) {
frm.get_field('item_details').grid.cannot_add_rows = true;
}
});

Expand Down Expand Up @@ -107,6 +112,7 @@ frappe.ui.form.on('Raw Materiel Item',{
item_details_remove : function(frm, cdt, cdn){
calculate_total_weight(frm);
}

});

function calculate_total_weight(frm, cdt, cdn){
Expand Down

0 comments on commit 22b7d20

Please sign in to comment.