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