fix final invoice and certificatre
This commit is contained in:
		
							parent
							
								
									0cfa86bde3
								
							
						
					
					
						commit
						dd37ac3720
					
				
					 11 changed files with 120 additions and 66 deletions
				
			
		| 
						 | 
				
			
			@ -643,7 +643,7 @@ def export_requests_excel(request):
 | 
			
		|||
        ).select_related('process_instance')
 | 
			
		||||
        
 | 
			
		||||
        for invoice in invoices:
 | 
			
		||||
            if invoice.remaining_amount == 0:  # Fully settled
 | 
			
		||||
            if invoice.get_remaining_amount() == 0:  # Fully settled
 | 
			
		||||
                # Find the last payment date for this invoice
 | 
			
		||||
                last_payment = Payment.objects.filter(
 | 
			
		||||
                    invoice__process_instance=invoice.process_instance,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue