fix: round total quantity in job card (#25246)

Co-authored-by: Marica <maricadsouza221197@gmail.com>
This commit is contained in:
Ankush Menat
2021-04-13 18:58:42 +05:30
committed by GitHub
parent 061c82a5cf
commit d2d025b586

View File

@@ -39,6 +39,8 @@ class JobCard(Document):
if d.completed_qty:
self.total_completed_qty += d.completed_qty
self.total_completed_qty = flt(self.total_completed_qty, self.precision("total_completed_qty"))
def get_overlap_for(self, args):
existing = frappe.db.sql("""select jc.name as name from
`tabJob Card Time Log` jctl, `tabJob Card` jc where jctl.parent = jc.name and