mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 22:07:33 -05:00 
			
		
		
		
	Don't push due date to next month if on the same day
This commit is contained in:
		
							parent
							
								
									6e59c4ede5
								
							
						
					
					
						commit
						9168372f4d
					
				@ -1034,7 +1034,7 @@ class Invoice extends EntityModel implements BalanceAffecting
 | 
			
		||||
                        $dueDay = $lastDayOfMonth;
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    if ($currentDay >= $dueDay) {
 | 
			
		||||
                    if ($currentDay > $dueDay) {
 | 
			
		||||
                        // Wait until next month
 | 
			
		||||
                        // We don't need to handle the December->January wraparaound, since PHP handles month 13 as January of next year
 | 
			
		||||
                        $dueMonth++;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user