Bansari Akhani commited on
Commit
bed6346
·
1 Parent(s): d4bef81

remove ai description from invoice

Browse files
src/controllers/invoice/invoice.controller.ts CHANGED
@@ -44,6 +44,9 @@ export const createInvoice = async (req: AuthenticatedRequest, res: Response) =>
44
  const aiServiceResponse = await parseInvoice(formData);
45
  const aiServiceData = aiServiceResponse[0];
46
 
 
 
 
47
  // validate if parsed workorderID exists in propertyware workorders
48
  let portfolioId: number | null = null;
49
  let buildingId: number | null = null;
@@ -97,7 +100,7 @@ export const createInvoice = async (req: AuthenticatedRequest, res: Response) =>
97
  invoice_date: invoiceDate,
98
  due_date: dueDate,
99
  total: totalAmount,
100
- description: aiServiceData.description,
101
  status: "Pending",
102
  amount_paid: 0,
103
  term: aiServiceData.terms,
 
44
  const aiServiceResponse = await parseInvoice(formData);
45
  const aiServiceData = aiServiceResponse[0];
46
 
47
+ console.log("file name ", file.originalname);
48
+ console.log("aiServiceData ", aiServiceData);
49
+
50
  // validate if parsed workorderID exists in propertyware workorders
51
  let portfolioId: number | null = null;
52
  let buildingId: number | null = null;
 
100
  invoice_date: invoiceDate,
101
  due_date: dueDate,
102
  total: totalAmount,
103
+ description: '',
104
  status: "Pending",
105
  amount_paid: 0,
106
  term: aiServiceData.terms,