James Cole
2024-01-02 21:22:42 +01:00
parent 5b5b8008b0
commit 6dafa89a15
4 changed files with 14 additions and 4 deletions

View File

@@ -451,7 +451,7 @@ export default {
if (typeof window.expectedSourceTypes === 'undefined') {
console.error('window.expectedSourceTypes is unexpectedly empty.')
}
this.transactions.push({
let result = {
transaction_journal_id: transaction.transaction_journal_id,
description: transaction.description,
date: transaction.date.substring(0, 16),
@@ -521,7 +521,11 @@ export default {
currency_decimal_places: transaction.currency_decimal_places,
allowed_types: window.expectedSourceTypes.destination[this.ucFirst(transaction.type)]
}
});
};
if(null === transaction.foreign_amount) {
result.foreign_amount.amount = '';
}
this.transactions.push(result);
},
limitSourceType: function (type) {
// let i;