add scripts for doctype changes

This commit is contained in:
Casey 2025-11-10 09:51:01 -06:00
parent 80aae6f09b
commit a67e86af44
7 changed files with 115 additions and 76 deletions

View file

@ -38,10 +38,9 @@ const createButtons = ref([
},
},
{
label: "Job",
label: "On-Site Meeting",
command: () => {
//frappe.new_doc("Job");
modalStore.openModal("createJob");
modalStore.openModal("createOnsiteMeeting");
},
},
{
@ -51,6 +50,13 @@ const createButtons = ref([
modalStore.openModal("createEstimate");
},
},
{
label: "Job",
command: () => {
//frappe.new_doc("Job");
modalStore.openModal("createJob");
},
},
{
label: "Invoice",
command: () => {

View file

@ -122,18 +122,23 @@ const columns = [
},
{
label: "Appt. Scheduled",
fieldName: "appointmentScheduledStatus",
fieldName: "customOnsiteMeetingScheduled",
type: "status",
sortable: true,
},
{
label: "Estimate Sent",
fieldName: "customEstimateSentStatus",
type: "status",
sortable: true,
},
{ label: "Estimate Sent", fieldName: "estimateSentStatus", type: "status", sortable: true },
{
label: "Payment Received",
fieldName: "paymentReceivedStatus",
fieldName: "customPaymentReceivedStatus",
type: "status",
sortable: true,
},
{ label: "Job Status", fieldName: "jobStatus", type: "status", sortable: true },
{ label: "Job Status", fieldName: "customJobStatus", type: "status", sortable: true },
];
// Handle lazy loading events from DataTable
const handleLazyLoad = async (event) => {