Skip to content

Commit

Permalink
fix: set None to not show value as 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanket322 committed Jan 27, 2025
1 parent 4f6018b commit 99745b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions erpnext/accounts/report/gross_profit/gross_profit.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,16 @@ def get_data_when_grouped_by_invoice(columns, gross_profit_data, filters, group_

data.append(row)

print(data, "data")

total_gross_profit = total_base_amount - total_buying_amount
data.append(
frappe._dict(
{
"sales_invoice": "Total",
"qty": None,
"avg._selling_rate": None,
"valuation_rate": None,
"selling_amount": total_base_amount,
"buying_amount": total_buying_amount,
"gross_profit": total_gross_profit,
Expand Down

0 comments on commit 99745b5

Please sign in to comment.