Bugfixed the Estimate Modal.
This commit is contained in:
parent
918549a603
commit
721b50d058
@ -396,6 +396,7 @@ class Api {
|
|||||||
|
|
||||||
static async getCompanyNames() {
|
static async getCompanyNames() {
|
||||||
const companies = await this.getDocsList("Company", ["name"]);
|
const companies = await this.getDocsList("Company", ["name"]);
|
||||||
|
const companyNames = companies.map((company) => company.name);
|
||||||
console.log("DEBUG: API - Fetched Company Names: ", companyNames);
|
console.log("DEBUG: API - Fetched Company Names: ", companyNames);
|
||||||
return companyNames;
|
return companyNames;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -94,7 +94,7 @@ const formFields = computed(() => [
|
|||||||
{
|
{
|
||||||
name: "company",
|
name: "company",
|
||||||
label: "Company Name",
|
label: "Company Name",
|
||||||
type: "select", // Changed from 'select' to 'autocomplete'
|
type: "autocomplete", // Changed from 'select' to 'autocomplete'
|
||||||
required: true,
|
required: true,
|
||||||
placeholder: "Select Company",
|
placeholder: "Select Company",
|
||||||
cols: 12,
|
cols: 12,
|
||||||
@ -122,7 +122,10 @@ const formFields = computed(() => [
|
|||||||
placeholder: "Select Customer or Business",
|
placeholder: "Select Customer or Business",
|
||||||
cols: 12,
|
cols: 12,
|
||||||
md: 6,
|
md: 6,
|
||||||
options: ["Customer", "Business"],
|
options: [
|
||||||
|
{"label": "Customer", "value": "Customer"},
|
||||||
|
{"label": "Business", "value": "Business"}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "partyName",
|
name: "partyName",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user