mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 11:07:31 -04:00 
			
		
		
		
	Improve export CSV import
This commit is contained in:
		
							parent
							
								
									2ee346ddee
								
							
						
					
					
						commit
						7a2ff46c89
					
				| @ -287,10 +287,9 @@ class ImportService | |||||||
|                     $this->addExpenseCategoryToMaps($category); |                     $this->addExpenseCategoryToMaps($category); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|             if ( ! empty($row->vendor)) { |             if ( ! empty($row->vendor) && ($vendorName = trim($row->vendor))) { | ||||||
|                 $vendorId = $transformer->getVendorId($row->vendor); |                 if ( ! $transformer->getVendorId($vendorName)) { | ||||||
|                 if ( ! $vendorId) { |                     $vendor = $this->vendorRepo->save(['name' => $vendorName, 'vendor_contact' => []]); | ||||||
|                     $vendor = $this->vendorRepo->save(['name' => $row->vendor, 'vendor_contact' => []]); |  | ||||||
|                     $this->addVendorToMaps($vendor); |                     $this->addVendorToMaps($vendor); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user