fix: round total quantity in job card

This commit is contained in:
Ankush Menat 2021-04-08 11:57:28 +05:30
parent e2da3cbc28
commit cb625d868c
No known key found for this signature in database
GPG Key ID: 8EA82E09BBD13AAF

View File

@ -47,6 +47,8 @@ class JobCard(Document):
if d.completed_qty: if d.completed_qty:
self.total_completed_qty += 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, check_next_available_slot=False): def get_overlap_for(self, args, check_next_available_slot=False):
production_capacity = 1 production_capacity = 1