James Cole
2024-03-15 06:13:40 +01:00
parent f4b066add1
commit 5a0af5c93b

View File

@@ -652,7 +652,7 @@ export default {
} }
} }
// set foreign currency info: // 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; foreignAmount = row.foreign_amount.amount;
foreignCurrency = row.foreign_amount.currency_id; foreignCurrency = row.foreign_amount.currency_id;
} }