Skip to content

Commit 61b770f

Browse files
committed
fix: allow direct creation of sales quotes by selecting items from the item master
1 parent b3e957d commit 61b770f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pages/ListView/ListView.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"
1717
class="relative"
1818
>
19-
<Button class="w-40" @click="toggleDropdown"> Create Invoice </Button>
19+
<Button class="w-40" @click="toggleDropdown"> Create </Button>
2020
<div
2121
v-if="showDropdown"
2222
class="
@@ -166,6 +166,7 @@ export default defineComponent({
166166
},
167167
actionOptions(): { value: string; label: string }[] {
168168
return [
169+
{ value: 'SalesQuote', label: 'Sales Quote' },
169170
{ value: 'SalesInvoice', label: 'Sales Invoice' },
170171
{ value: 'PurchaseInvoice', label: 'Purchase Invoice' },
171172
];
@@ -235,6 +236,7 @@ export default defineComponent({
235236
},
236237
async createInvoice(value: string) {
237238
if (
239+
value === ModelNameEnum.SalesQuote ||
238240
value === ModelNameEnum.SalesInvoice ||
239241
value === ModelNameEnum.PurchaseInvoice
240242
) {

0 commit comments

Comments
 (0)