fix: error popup for submitted doc
This commit is contained in:
		
							parent
							
								
									6afa83f2c7
								
							
						
					
					
						commit
						a81519f557
					
				| @ -214,6 +214,7 @@ frappe.ui.form.on('Salary Slip Timesheet', { | |||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
| var calculate_totals = function(frm) { | var calculate_totals = function(frm) { | ||||||
|  | 	if (frm.doc.docstatus === 0) { | ||||||
| 		if (frm.doc.earnings || frm.doc.deductions) { | 		if (frm.doc.earnings || frm.doc.deductions) { | ||||||
| 			frappe.call({ | 			frappe.call({ | ||||||
| 				method: "set_totals", | 				method: "set_totals", | ||||||
| @ -223,6 +224,7 @@ var calculate_totals = function(frm) { | |||||||
| 				} | 				} | ||||||
| 			}); | 			}); | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| frappe.ui.form.on('Salary Detail', { | frappe.ui.form.on('Salary Detail', { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user