Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +4 -0
src/streamlit_app.py
CHANGED
|
@@ -2068,6 +2068,10 @@ elif len(st.session_state.batch_results) > 0:
|
|
| 2068 |
height=DATA_EDITOR_HEIGHT - 50, # Reduce height slightly for totals below
|
| 2069 |
column_config=column_config,
|
| 2070 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2071 |
|
| 2072 |
for col in ["Amount", "Discount Amount Per Item", "Tax Amount Per Item"]:
|
| 2073 |
if col not in edited_df.columns:
|
|
|
|
| 2068 |
height=DATA_EDITOR_HEIGHT - 50, # Reduce height slightly for totals below
|
| 2069 |
column_config=column_config,
|
| 2070 |
)
|
| 2071 |
+
edited_df = fill_line_item_missing_fields_ui(
|
| 2072 |
+
edited_df,
|
| 2073 |
+
summary_total_discount_amount=form_data.get("Total Discount Amount", 0.0)
|
| 2074 |
+
)
|
| 2075 |
|
| 2076 |
for col in ["Amount", "Discount Amount Per Item", "Tax Amount Per Item"]:
|
| 2077 |
if col not in edited_df.columns:
|