create new if import has no currency code
This commit is contained in:
		@@ -25,6 +25,7 @@ class BillTransactions extends Import
 | 
			
		||||
        $row['account_id'] = $this->getAccountId($row);
 | 
			
		||||
        $row['category_id'] = $this->getCategoryId($row, 'expense');
 | 
			
		||||
        $row['contact_id'] = $this->getContactId($row, 'vendor');
 | 
			
		||||
        $row['currency_code'] = $this->getCurrencyCode($row);
 | 
			
		||||
        $row['document_id'] = $this->getDocumentId($row);
 | 
			
		||||
        $row['number'] = $row['transaction_number'];
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -28,6 +28,7 @@ class Bills extends Import
 | 
			
		||||
        $row['issued_at'] = $row['billed_at'];
 | 
			
		||||
        $row['category_id'] = $this->getCategoryId($row, 'expense');
 | 
			
		||||
        $row['contact_id'] = $this->getContactId($row, 'vendor');
 | 
			
		||||
        $row['currency_code'] = $this->getCurrencyCode($row);
 | 
			
		||||
        $row['type'] = Model::BILL_TYPE;
 | 
			
		||||
        $row['contact_country'] = !empty($country) ? $country : null;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user