mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 21:49:18 +00:00
fix for leave application test
This commit is contained in:
@@ -12,6 +12,8 @@ class LeaveAllocation(Document):
|
|||||||
def validate(self):
|
def validate(self):
|
||||||
self.validate_new_leaves_allocated_value()
|
self.validate_new_leaves_allocated_value()
|
||||||
self.check_existing_leave_allocation()
|
self.check_existing_leave_allocation()
|
||||||
|
if not self.total_leaves_allocated:
|
||||||
|
self.total_leaves_allocated = self.new_leaves_allocated
|
||||||
|
|
||||||
def on_update_after_submit(self):
|
def on_update_after_submit(self):
|
||||||
self.validate_new_leaves_allocated_value()
|
self.validate_new_leaves_allocated_value()
|
||||||
|
|||||||
Reference in New Issue
Block a user