mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 17:18:29 -04:00 
			
		
		
		
	Fixes for generated numbers
This commit is contained in:
		
							parent
							
								
									0912e39759
								
							
						
					
					
						commit
						c388a1b3e7
					
				| @ -419,7 +419,7 @@ trait GeneratesCounter | |||||||
|         $check_counter = 1; |         $check_counter = 1; | ||||||
| 
 | 
 | ||||||
|         do { |         do { | ||||||
|             $number = $this->getFormattedEntityNumber($entity, $counter, $padding, $pattern); |             $number = $this->getFormattedEntityNumber($entity, $counter, $padding, $pattern, $prefix); | ||||||
| 
 | 
 | ||||||
|             $check = $class::where('company_id', $entity->company_id)->where('number', $number)->withTrashed()->exists(); |             $check = $class::where('company_id', $entity->company_id)->where('number', $number)->withTrashed()->exists(); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user