fix: update percentage on creation of invoice for zero amt transaction (#18382)
This commit is contained in:
		
							parent
							
								
									5be91173a1
								
							
						
					
					
						commit
						64c780e8c7
					
				| @ -336,6 +336,7 @@ class PurchaseInvoice(BuyingController): | ||||
| 
 | ||||
| 		if not self.is_return: | ||||
| 			self.update_against_document_in_jv() | ||||
| 			self.update_billing_status_for_zero_amount_refdoc("Purchase Receipt") | ||||
| 			self.update_billing_status_for_zero_amount_refdoc("Purchase Order") | ||||
| 
 | ||||
| 		self.update_billing_status_in_pr() | ||||
| @ -774,6 +775,7 @@ class PurchaseInvoice(BuyingController): | ||||
| 		self.update_prevdoc_status() | ||||
| 
 | ||||
| 		if not self.is_return: | ||||
| 			self.update_billing_status_for_zero_amount_refdoc("Purchase Receipt") | ||||
| 			self.update_billing_status_for_zero_amount_refdoc("Purchase Order") | ||||
| 
 | ||||
| 		self.update_billing_status_in_pr() | ||||
|  | ||||
| @ -166,6 +166,7 @@ class SalesInvoice(SellingController): | ||||
| 		self.make_gl_entries() | ||||
| 
 | ||||
| 		if not self.is_return: | ||||
| 			self.update_billing_status_for_zero_amount_refdoc("Delivery Note") | ||||
| 			self.update_billing_status_for_zero_amount_refdoc("Sales Order") | ||||
| 			self.check_credit_limit() | ||||
| 
 | ||||
| @ -220,6 +221,7 @@ class SalesInvoice(SellingController): | ||||
| 		self.update_billing_status_in_dn() | ||||
| 
 | ||||
| 		if not self.is_return: | ||||
| 			self.update_billing_status_for_zero_amount_refdoc("Delivery Note") | ||||
| 			self.update_billing_status_for_zero_amount_refdoc("Sales Order") | ||||
| 			self.update_serial_no(in_cancel=True) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user