mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-28 23:51:48 +01:00
fix: precision for newly allocated leaves
This commit is contained in:
@@ -100,8 +100,8 @@ class LeaveAllocation(Document):
|
|||||||
self.validate_leave_days_and_dates()
|
self.validate_leave_days_and_dates()
|
||||||
|
|
||||||
leaves_to_be_added = flt(
|
leaves_to_be_added = flt(
|
||||||
frappe.db.get_value("Leave Allocation", self.name, "new_leaves_allocated")
|
(self.new_leaves_allocated - self.get_existing_leave_count()),
|
||||||
- self.get_existing_leave_count()
|
self.precision("new_leaves_allocated"),
|
||||||
)
|
)
|
||||||
|
|
||||||
args = {
|
args = {
|
||||||
|
|||||||
Reference in New Issue
Block a user