@@ -691,16 +711,17 @@ onMounted(async () => {
"
:label="$t('quotation.refNo')"
/>
-
diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue
index 7b293524..4db3c51a 100644
--- a/src/pages/05_quotation/QuotationForm.vue
+++ b/src/pages/05_quotation/QuotationForm.vue
@@ -2009,6 +2009,7 @@ function covertToNode() {
view !== View.Receipt &&
view !== View.Complete
"
+ :branch-id="quotationFull.registeredBranchId"
:readonly="
isRoleInclude(['sale', 'head_of_sale']) ||
!canAccess('quotation', 'edit')
diff --git a/src/stores/branch/index.ts b/src/stores/branch/index.ts
index 7225fb7d..6bcae077 100644
--- a/src/stores/branch/index.ts
+++ b/src/stores/branch/index.ts
@@ -447,6 +447,17 @@ const useBranchStore = defineStore('api-branch', () => {
return false;
}
+ async function fetchListBankByBranch(branchId: string) {
+ const res = await api.get(`/branch/${branchId}/bank`, {
+ headers: { 'X-Rtid': flowStore.rtid },
+ });
+
+ if (!res) return false;
+ if (res.status === 200) return res.data;
+
+ return false;
+ }
+
return {
data,
map,
@@ -475,6 +486,8 @@ const useBranchStore = defineStore('api-branch', () => {
fetchByIdAttachment,
putAttachment,
deleteByIdAttachment,
+
+ fetchListBankByBranch,
};
});