refactor: clear quotationId on create credit and debit notes
This commit is contained in:
parent
415ea3853d
commit
d13a4769a5
2 changed files with 4 additions and 2 deletions
|
|
@ -88,6 +88,7 @@ async function triggerDelete(id: string) {
|
|||
}
|
||||
|
||||
async function triggerCreateCreditNote() {
|
||||
pageState.quotationId = '';
|
||||
pageState.creditDialog = true;
|
||||
}
|
||||
|
||||
|
|
@ -428,6 +429,8 @@ watch(
|
|||
}}
|
||||
</div>
|
||||
<nav class="col-4 row justify-end">
|
||||
{{ pageState.quotationId }}
|
||||
|
||||
<PaginationComponent
|
||||
v-model:current-page="page"
|
||||
v-model:max-page="pageMax"
|
||||
|
|
@ -455,7 +458,6 @@ watch(
|
|||
|
||||
<section class="q-pa-md col full-width">
|
||||
<div class="surface-1 rounded bordered q-pa-md full-height full-width">
|
||||
<!-- TODO: bind quotation id -->
|
||||
<FormCredit v-model:quotation-id="pageState.quotationId" />
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ async function triggerDelete(id: string) {
|
|||
}
|
||||
|
||||
async function triggerCreateDebitNote() {
|
||||
pageState.quotationId = '';
|
||||
pageState.debitDialog = true;
|
||||
}
|
||||
|
||||
|
|
@ -485,7 +486,6 @@ watch(
|
|||
|
||||
<section class="q-pa-md col full-width">
|
||||
<div class="surface-1 rounded bordered q-pa-md full-height full-width">
|
||||
<!-- TODO: bind quotation id -->
|
||||
<FormDebit v-model:quotation-id="pageState.quotationId" />
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue