James Cole 2024-03-15 06:13:40 +01:00
parent f4b066add1
commit 5a0af5c93b
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -652,7 +652,7 @@ export default {
}
}
// set foreign currency info:
if (row.foreign_amount.amount.toString() !== '' && parseFloat(row.foreign_amount.amount) !== .00) {
if (typeof row.foreign_amount.amount !== 'undefined' && row.foreign_amount.amount.toString() !== '' && parseFloat(row.foreign_amount.amount) !== .00) {
foreignAmount = row.foreign_amount.amount;
foreignCurrency = row.foreign_amount.currency_id;
}