qq1023 commited on
Commit
af746d0
·
1 Parent(s): 562323b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -262,15 +262,19 @@ def process_and_output_files(input_files):
262
  extracted_data = {
263
  "S.No.": item_no,
264
  "Nature of Expenditure": response_dict.get("summary"),
 
265
  "Bill/Invoice No.": response_dict.get("uids"),
266
- "Amount(Rs.)": response_dict.get("total")
 
267
  }
268
  else:
269
  extracted_data = {
270
  "S.No.": item_no,
271
  "Nature of Expenditure": category.name,
 
272
  "Bill/Invoice No.": response_dict.get("uids"),
273
  "Amount(Rs.)": response_dict.get("total")
 
274
  }
275
 
276
 
@@ -284,6 +288,7 @@ def process_and_output_files(input_files):
284
  total_data = {
285
  "S.No.": "",
286
  "Nature of Expenditure": "Total Amount",
 
287
  "Bill/Invoice No.": "",
288
  "Amount(Rs.)": total_amount
289
  }
 
262
  extracted_data = {
263
  "S.No.": item_no,
264
  "Nature of Expenditure": response_dict.get("summary"),
265
+ "Billing Date": response_dict.get("issue_date"),
266
  "Bill/Invoice No.": response_dict.get("uids"),
267
+ "Amount(Rs.)": response_dict.get("total"),
268
+
269
  }
270
  else:
271
  extracted_data = {
272
  "S.No.": item_no,
273
  "Nature of Expenditure": category.name,
274
+ "Billing Date": response_dict.get("issue_date"),
275
  "Bill/Invoice No.": response_dict.get("uids"),
276
  "Amount(Rs.)": response_dict.get("total")
277
+
278
  }
279
 
280
 
 
288
  total_data = {
289
  "S.No.": "",
290
  "Nature of Expenditure": "Total Amount",
291
+ "Billing Date": "",
292
  "Bill/Invoice No.": "",
293
  "Amount(Rs.)": total_amount
294
  }