gopichandra commited on
Commit
2abc114
·
verified ·
1 Parent(s): 3788292

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,14 +1,15 @@
1
  import streamlit as st
2
- from salesforce_integration import sf # Import Salesforce integration
3
  from generate_pdf import create_pdf # Import PDF generation function
4
  from send_email import send_email # Import email sending function
5
  from send_whatsapp import send_whatsapp # Import WhatsApp sending function
6
 
 
7
  st.title('Generate and Send Quote Invoice')
8
 
9
  if st.button('Generate PDF and Send'):
10
  # Fetch the quote data from Salesforce
11
- quote_data = sf.query("SELECT Customer_Name__c, Quote_Date__c, Origination_Location__c, Total_Amount__c FROM Quote__c WHERE Id = 'YOUR_QUOTE_ID'")
12
 
13
  # Generate the PDF
14
  pdf_file = create_pdf(quote_data)
 
1
  import streamlit as st
2
+ from salesforce_integration import get_quote_data # Import Salesforce integration
3
  from generate_pdf import create_pdf # Import PDF generation function
4
  from send_email import send_email # Import email sending function
5
  from send_whatsapp import send_whatsapp # Import WhatsApp sending function
6
 
7
+ # Title of the app
8
  st.title('Generate and Send Quote Invoice')
9
 
10
  if st.button('Generate PDF and Send'):
11
  # Fetch the quote data from Salesforce
12
+ quote_data = get_quote_data()
13
 
14
  # Generate the PDF
15
  pdf_file = create_pdf(quote_data)