mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 00:07:31 -04:00 
			
		
		
		
	Fix for invoice counter
This commit is contained in:
		
							parent
							
								
									1efa715905
								
							
						
					
					
						commit
						637cf49e1e
					
				| @ -1021,8 +1021,10 @@ class Account extends Eloquent | |||||||
| 
 | 
 | ||||||
|             // update the invoice counter to be caught up
 |             // update the invoice counter to be caught up
 | ||||||
|             if ($counterOffset > 1) { |             if ($counterOffset > 1) { | ||||||
|                 if ($invoice->isType(INVOICE_TYPE_QUOTE) && !$this->share_counter) { |                 if ($invoice->isType(INVOICE_TYPE_QUOTE)) { | ||||||
|                     $this->quote_number_counter += $counterOffset - 1; |                     if ( ! $this->share_counter) { | ||||||
|  |                         $this->quote_number_counter += $counterOffset - 1; | ||||||
|  |                     } | ||||||
|                 } else { |                 } else { | ||||||
|                     $this->invoice_number_counter += $counterOffset - 1; |                     $this->invoice_number_counter += $counterOffset - 1; | ||||||
|                 } |                 } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user