jonels1988 commited on
Commit
ef8f62d
·
verified ·
1 Parent(s): c05424f

Delete streamlit.py

Browse files
Files changed (1) hide show
  1. streamlit.py +0 -135
streamlit.py DELETED
@@ -1,135 +0,0 @@
1
- import streamlit as st
2
-
3
- # Set page config MUST be first Streamlit command
4
- st.set_page_config(
5
- page_title="Business Knowledge Base",
6
- page_icon="📚",
7
- layout="wide",
8
- initial_sidebar_state="expanded"
9
- )
10
-
11
- # Initialize session state for knowledge base
12
- if 'knowledge_base' not in st.session_state:
13
- st.session_state.knowledge_base = {
14
- 'bookkeeping': [
15
- {
16
- 'subTopic': 'Accounts Receivable',
17
- 'title': 'GTM Medical Trading - Payments Tender',
18
- 'description': 'Streamlined 3-step process for GTM Medical Trading invoice payments using AgileSuite QuickBooks system to significantly reduce processing fees while maintaining accuracy.',
19
- 'steps': [
20
- 'Open AgileSuite Payment Form and input transaction date, total amount, and invoice count',
21
- 'Update multi-use link amount in QuickBooks and scan QR code with separate device',
22
- 'Process payment through customer checkout page and use action buttons to complete'
23
- ],
24
- 'benefits': [
25
- 'Cost Reduction: Saves $600-$1,000+ monthly in processing fees',
26
- 'Time Efficiency: Process 5-10 invoices simultaneously',
27
- 'Accuracy: Automated system matching prevents duplicates',
28
- 'Simplicity: Three straightforward steps replace complex manual processes'
29
- ]
30
- }
31
- ],
32
- 'quickbooks': [],
33
- 'paytrace': [],
34
- 'fishbowl': [],
35
- 'tax': [],
36
- 'business': [],
37
- 'budgeting': []
38
- }
39
-
40
- # Main app
41
- def main():
42
- st.title("📚 Business Knowledge Base")
43
- st.markdown("QuickBooks • PayTrace • Fishbowl • Tax Preparation • Business Solutions")
44
-
45
- # Sidebar for navigation
46
- with st.sidebar:
47
- st.header("Categories")
48
- selected_category = st.radio(
49
- "Select Category:",
50
- ["Bookkeeping - Operations", "QuickBooks", "PayTrace", "Fishbowl Inventory",
51
- "Tax Preparation", "Business Solutions", "Budgeting"],
52
- index=0
53
- )
54
-
55
- st.divider()
56
- if st.button("➕ Add New Content"):
57
- st.session_state.show_add_form = True
58
-
59
- # Main content area
60
- if selected_category == "Bookkeeping - Operations":
61
- display_bookkeeping_content()
62
-
63
- # Add content form (simplified version)
64
- if st.session_state.get('show_add_form', False):
65
- display_add_content_form()
66
-
67
- def display_bookkeeping_content():
68
- st.header("Bookkeeping - Operations")
69
-
70
- # Breadcrumb
71
- st.caption("Home > Bookkeeping - Operations > Accounts Receivable")
72
-
73
- # Article content
74
- article = st.session_state.knowledge_base['bookkeeping'][0]
75
-
76
- st.subheader(article['title'])
77
- st.write(article['description'])
78
-
79
- # Key points in columns
80
- col1, col2 = st.columns(2)
81
-
82
- with col1:
83
- st.info("**💰 Cost Savings:** $600-$1,000+ monthly")
84
- st.info("**⏱️ Time Savings:** Process 5-10 invoices together")
85
-
86
- with col2:
87
- st.info("**✅ Accuracy:** Automated matching")
88
- st.info("**📱 Simple:** 3-step process")
89
-
90
- # 3-Step Process
91
- st.subheader("3-Step Payment Process")
92
-
93
- steps = article['steps']
94
- for i, step in enumerate(steps, 1):
95
- with st.expander(f"Step {i}: {step.split(':')[0] if ':' in step else step}"):
96
- st.write(step)
97
-
98
- # Important Notes
99
- st.warning("""
100
- **Important Notes:**
101
- - Always use separate device/QR code for payment entry
102
- - Never manually match payments after processing
103
- - Include shipping costs in total amount
104
- - Contact support for issues rather than manual adjustments
105
- """)
106
-
107
- # Action buttons
108
- col1, col2, col3, col4 = st.columns(4)
109
- with col1:
110
- st.button("📧 Send Copy", use_container_width=True)
111
- with col2:
112
- st.button("🖨️ Print", use_container_width=True)
113
- with col3:
114
- st.button("💾 Save", use_container_width=True)
115
- with col4:
116
- st.button("🗑️ Clear Form", use_container_width=True)
117
-
118
- def display_add_content_form():
119
- st.sidebar.divider()
120
- st.sidebar.subheader("Add New Content")
121
-
122
- with st.sidebar.form("add_content_form"):
123
- category = st.selectbox("Category", list(st.session_state.knowledge_base.keys()))
124
- sub_topic = st.text_input("Subtopic")
125
- title = st.text_input("Article Title")
126
- description = st.text_area("Description")
127
-
128
- if st.form_submit_button("Add Article"):
129
- # Add validation and saving logic here
130
- st.success("Article added successfully!")
131
- st.session_state.show_add_form = False
132
- st.rerun()
133
-
134
- if __name__ == "__main__":
135
- main()