Bugfixed the Estimate Modal.

This commit is contained in:
rocketdebris 2025-11-07 14:11:52 -05:00
parent 918549a603
commit 721b50d058
2 changed files with 6 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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",