Merge pull request #23709 from marination/cashier-closing-type-issue
fix: Cashier Closing Type Issue
This commit is contained in:
		
						commit
						99dfbfc365
					
				| @ -29,7 +29,7 @@ class CashierClosing(Document): | |||||||
| 		for i in self.payments: | 		for i in self.payments: | ||||||
| 			total += flt(i.amount) | 			total += flt(i.amount) | ||||||
| 
 | 
 | ||||||
| 		self.net_amount = total + self.outstanding_amount + self.expense - self.custody + self.returns | 		self.net_amount = total + self.outstanding_amount + flt(self.expense) - flt(self.custody) + flt(self.returns) | ||||||
| 
 | 
 | ||||||
| 	def validate_time(self): | 	def validate_time(self): | ||||||
| 		if self.from_time >= self.time: | 		if self.from_time >= self.time: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user