mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-29 14:48:26 +00:00
fix: adapt to query builder
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
@@ -1320,7 +1320,7 @@ class StockController(AccountsController):
|
||||
total_returned += flt(item.returned_qty * item.rate)
|
||||
|
||||
if total_returned < total_amount:
|
||||
target_ref_field = "(amount - (returned_qty * rate))"
|
||||
target_ref_field = {"SUB": ["amount", {"MUL": ["returned_qty", "rate"]}], "as": "ref_amount"}
|
||||
|
||||
self._update_percent_field(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user