Skip to content

Commit

Permalink
fix: change fieldtype from Currency to Float for the valuation rate i…
Browse files Browse the repository at this point in the history
…n the stock report
  • Loading branch information
rohitwaghchaure committed Jul 28, 2023
1 parent 89aa6f0 commit c82cb37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions erpnext/stock/report/stock_balance/stock_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,9 @@ def get_columns(self):
{
"label": _("Valuation Rate"),
"fieldname": "val_rate",
"fieldtype": "Currency",
"fieldtype": "Float",
"width": 90,
"convertible": "rate",
"options": "currency",
},
{
"label": _("Reserved Stock"),
Expand Down
4 changes: 2 additions & 2 deletions erpnext/stock/report/stock_ledger/stock_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,15 @@ def get_columns(filters):
{
"label": _("Avg Rate (Balance Stock)"),
"fieldname": "valuation_rate",
"fieldtype": "Currency",
"fieldtype": "Float",
"width": 180,
"options": "Company:company:default_currency",
"convertible": "rate",
},
{
"label": _("Valuation Rate"),
"fieldname": "in_out_rate",
"fieldtype": "Currency",
"fieldtype": "Float",
"width": 140,
"options": "Company:company:default_currency",
"convertible": "rate",
Expand Down

0 comments on commit c82cb37

Please sign in to comment.