@@ -591,7 +591,7 @@ class SellingController(StockController):
|
|||||||
if self.doctype in ["Sales Order", "Quotation"]:
|
if self.doctype in ["Sales Order", "Quotation"]:
|
||||||
for item in self.items:
|
for item in self.items:
|
||||||
item.gross_profit = flt(
|
item.gross_profit = flt(
|
||||||
((item.base_rate - flt(item.valuation_rate)) * item.stock_qty),
|
((flt(item.stock_uom_rate) - flt(item.valuation_rate)) * item.stock_qty),
|
||||||
self.precision("amount", item),
|
self.precision("amount", item),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user