diff --git a/src/types/index.ts b/src/types/index.ts
index db1444b..c8d8590 100644
--- a/src/types/index.ts
+++ b/src/types/index.ts
@@ -76,6 +76,8 @@ export interface OrderItem {
confirmedMeterage: number | null
supplyPrice: number | null
totalAmount: number | null
+ companyId?: string
+ companyName?: string
}
export interface Order {
diff --git a/src/views/orders/OrderPricingView.vue b/src/views/orders/OrderPricingView.vue
index e659ddf..1d4e1e1 100644
--- a/src/views/orders/OrderPricingView.vue
+++ b/src/views/orders/OrderPricingView.vue
@@ -71,6 +71,8 @@ async function loadOrder() {
confirmedMeterage: item.confirmedMeterage,
supplyPrice: item.supplyPrice,
totalAmount: item.totalAmount,
+ companyId: item.companyId,
+ companyName: item.companyName,
}))
shippingCost.value = data.shippingCost ?? 0
} catch (err) {
@@ -129,6 +131,8 @@ function submitAddProduct() {
confirmedMeterage: form.confirmedMeterage || form.requestedMeterage,
supplyPrice: null,
totalAmount: null,
+ companyId: order.value?.companyId,
+ companyName: order.value?.companyName,
})
closeAddModal()
@@ -163,6 +167,8 @@ async function savePricing() {
confirmedMeterage: item.confirmedMeterage,
supplyPrice: item.supplyPrice,
totalAmount: item.totalAmount,
+ companyId: item.companyId,
+ companyName: item.companyName,
}))
toast.success('قیمتگذاری ذخیره شد.')
} catch (err) {
@@ -270,6 +276,7 @@ async function sendInvoice() {
ردیف
+ شرکت
کالیته
محصول
رنگ / نوع
@@ -283,6 +290,7 @@ async function sendInvoice() {