Mtkhang90 commited on
Commit
87a7c72
Β·
verified Β·
1 Parent(s): 8727cff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -85,10 +85,10 @@ if quantity_file and cost_file:
85
  if st.button("Generate Estimate"):
86
  computed_df = compute_total_quantities(base_df, covered_area, floors)
87
  boq = computed_df.merge(cost_df, on="Material", how="left")
88
- boq["Amount"] = boq["Total Qty"] * boq["Rate"]
89
 
90
  st.subheader("πŸ“‹ Bill of Quantities (BOQ)")
91
- st.dataframe(boq[["Material", "Total Qty", "Unit", "Rate", "Amount"]])
92
 
93
  total_cost = boq["Amount"].sum()
94
  st.metric("Total Estimated Cost (Rs)", f"{total_cost:,.0f}")
 
85
  if st.button("Generate Estimate"):
86
  computed_df = compute_total_quantities(base_df, covered_area, floors)
87
  boq = computed_df.merge(cost_df, on="Material", how="left")
88
+ boq["Amount"] = boq["Total Qty"] * boq["Rate_per_Unit"]
89
 
90
  st.subheader("πŸ“‹ Bill of Quantities (BOQ)")
91
+ st.dataframe(boq[["Material", "Total Qty", "Unit", "Rate_per_Unit", "Amount"]])
92
 
93
  total_cost = boq["Amount"].sum()
94
  st.metric("Total Estimated Cost (Rs)", f"{total_cost:,.0f}")