(transaction) save location in transaction

This commit is contained in:
Julien Calixte
2020-03-14 11:31:20 +01:00
parent ec0395a491
commit 438a455468
5 changed files with 116 additions and 94 deletions

View File

@@ -126,7 +126,7 @@
</div>
<transaction-tag-update v-model="tag" />
</div>
<div class="column">
<div class="column" v-if="account.users.length > 1">
<div class="field is-horizontal">
<div class="field-label is-normal">
<label class="label">Payé par</label>
@@ -290,6 +290,7 @@ export default class TransactionCreate extends Vue {
mainCurrency: this.currency,
currencies: this.account.currencies,
transactionType: TransactionType.normal,
location: this.transaction.location,
exchange: await exchangeService.get(this.currency.code, date, currencies)
}
const response: PouchDB.Core.Response = hasId