add sales order generation functionality

This commit is contained in:
Casey 2025-12-19 16:58:38 -06:00
parent 796b835c08
commit 9c9050c558
13 changed files with 289 additions and 143 deletions

View file

@ -212,6 +212,7 @@ import DataUtils from "../../utils";
import Api from "../../api";
import { useRouter } from "vue-router";
import { useNotificationStore } from "../../stores/notifications-primevue";
import { useCompanyStore } from "../../stores/company";
const props = defineProps({
clientData: {
@ -230,6 +231,7 @@ const props = defineProps({
const router = useRouter();
const notificationStore = useNotificationStore();
const companyStore = useCompanyStore();
const navigateTo = (path) => {
router.push(path);
@ -561,6 +563,7 @@ const handleSave = async () => {
const clientData = {
customerName: formData.value.customerName,
customerType: formData.value.customerType,
companyName: companyStore.currentCompany,
addressTitle: formData.value.addressTitle,
addressLine1: formData.value.addressLine1,
addressLine2: formData.value.addressLine2,