task-h
This commit is contained in:
@@ -131,6 +131,10 @@ function mapQuotationRecord(row: typeof crmQuotations.$inferSelect): QuotationRe
|
||||
isSent: row.isSent,
|
||||
sentAt: row.sentAt?.toISOString() ?? null,
|
||||
sentVia: row.sentVia,
|
||||
approvedAt: row.approvedAt?.toISOString() ?? null,
|
||||
approvedPdfUrl: row.approvedPdfUrl,
|
||||
approvedSnapshot: row.approvedSnapshot ?? null,
|
||||
approvedTemplateVersionId: row.approvedTemplateVersionId,
|
||||
acceptedAt: row.acceptedAt?.toISOString() ?? null,
|
||||
rejectedAt: row.rejectedAt?.toISOString() ?? null,
|
||||
rejectionReason: row.rejectionReason,
|
||||
@@ -1024,6 +1028,10 @@ export async function createQuotation(
|
||||
salesmanId: payload.salesmanId ?? null,
|
||||
isSent: false,
|
||||
sentVia: payload.sentVia ?? null,
|
||||
approvedAt: null,
|
||||
approvedPdfUrl: null,
|
||||
approvedSnapshot: null,
|
||||
approvedTemplateVersionId: null,
|
||||
isActive: payload.isActive ?? true,
|
||||
createdBy: userId,
|
||||
updatedBy: userId
|
||||
@@ -1765,6 +1773,10 @@ export async function createQuotationRevision(
|
||||
salesmanId: parent.salesmanId,
|
||||
isSent: false,
|
||||
sentVia: parent.sentVia,
|
||||
approvedAt: null,
|
||||
approvedPdfUrl: null,
|
||||
approvedSnapshot: null,
|
||||
approvedTemplateVersionId: null,
|
||||
isActive: parent.isActive,
|
||||
createdBy: userId,
|
||||
updatedBy: userId
|
||||
|
||||
Reference in New Issue
Block a user