|  | @@ -138,7 +138,7 @@ class TransactionObserver
 | 
		
	
		
			
			| 138 | 138 |  
 | 
		
	
		
			
			| 139 | 139 |                  // Fall back to conversion if metadata is not available
 | 
		
	
		
			
			| 140 | 140 |                  $bankAccountCurrency = $transaction->bankAccount->account->currency_code;
 | 
		
	
		
			
			| 141 |  | -                $amountCents = (int) $transaction->getRawOriginal('amount');
 | 
		
	
		
			
			|  | 141 | +                $amountCents = (int) $transaction->amount;
 | 
		
	
		
			
			| 142 | 142 |  
 | 
		
	
		
			
			| 143 | 143 |                  return CurrencyConverter::convertBalance($amountCents, $bankAccountCurrency, $invoiceCurrency);
 | 
		
	
		
			
			| 144 | 144 |              });
 | 
		
	
	
		
			
			|  | @@ -158,14 +158,14 @@ class TransactionObserver
 | 
		
	
		
			
			| 158 | 158 |  
 | 
		
	
		
			
			| 159 | 159 |                  // Fall back to conversion if metadata is not available
 | 
		
	
		
			
			| 160 | 160 |                  $bankAccountCurrency = $transaction->bankAccount->account->currency_code;
 | 
		
	
		
			
			| 161 |  | -                $amountCents = (int) $transaction->getRawOriginal('amount');
 | 
		
	
		
			
			|  | 161 | +                $amountCents = (int) $transaction->amount;
 | 
		
	
		
			
			| 162 | 162 |  
 | 
		
	
		
			
			| 163 | 163 |                  return CurrencyConverter::convertBalance($amountCents, $bankAccountCurrency, $invoiceCurrency);
 | 
		
	
		
			
			| 164 | 164 |              });
 | 
		
	
		
			
			| 165 | 165 |  
 | 
		
	
		
			
			| 166 | 166 |          $totalPaidInInvoiceCurrencyCents = $depositTotalInInvoiceCurrencyCents - $withdrawalTotalInInvoiceCurrencyCents;
 | 
		
	
		
			
			| 167 | 167 |  
 | 
		
	
		
			
			| 168 |  | -        $invoiceTotalInInvoiceCurrencyCents = (int) $invoice->getRawOriginal('total');
 | 
		
	
		
			
			|  | 168 | +        $invoiceTotalInInvoiceCurrencyCents = (int) $invoice->total;
 | 
		
	
		
			
			| 169 | 169 |  
 | 
		
	
		
			
			| 170 | 170 |          $newStatus = match (true) {
 | 
		
	
		
			
			| 171 | 171 |              $totalPaidInInvoiceCurrencyCents > $invoiceTotalInInvoiceCurrencyCents => InvoiceStatus::Overpaid,
 | 
		
	
	
		
			
			|  | @@ -212,14 +212,14 @@ class TransactionObserver
 | 
		
	
		
			
			| 212 | 212 |  
 | 
		
	
		
			
			| 213 | 213 |                  // Fall back to conversion if metadata is not available
 | 
		
	
		
			
			| 214 | 214 |                  $bankAccountCurrency = $transaction->bankAccount->account->currency_code;
 | 
		
	
		
			
			| 215 |  | -                $amountCents = (int) $transaction->getRawOriginal('amount');
 | 
		
	
		
			
			|  | 215 | +                $amountCents = (int) $transaction->amount;
 | 
		
	
		
			
			| 216 | 216 |  
 | 
		
	
		
			
			| 217 | 217 |                  return CurrencyConverter::convertBalance($amountCents, $bankAccountCurrency, $billCurrency);
 | 
		
	
		
			
			| 218 | 218 |              });
 | 
		
	
		
			
			| 219 | 219 |  
 | 
		
	
		
			
			| 220 | 220 |          $totalPaidInBillCurrencyCents = $withdrawalTotalInBillCurrencyCents;
 | 
		
	
		
			
			| 221 | 221 |  
 | 
		
	
		
			
			| 222 |  | -        $billTotalInBillCurrencyCents = (int) $bill->getRawOriginal('total');
 | 
		
	
		
			
			|  | 222 | +        $billTotalInBillCurrencyCents = (int) $bill->total;
 | 
		
	
		
			
			| 223 | 223 |  
 | 
		
	
		
			
			| 224 | 224 |          $newStatus = match (true) {
 | 
		
	
		
			
			| 225 | 225 |              $totalPaidInBillCurrencyCents >= $billTotalInBillCurrencyCents => BillStatus::Paid,
 |