Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,14 +1,15 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
from salesforce_integration import
|
| 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 =
|
| 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)
|