Skip to content

Commit

Permalink
fix: incoming rate zero for supplied items in returned SCR (#42314)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Jul 13, 2024
1 parent 7656220 commit 61daa31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/controllers/subcontracting_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,7 @@ def make_sl_entries_for_supplier_warehouse(self, sl_entries):
item,
{
"item_code": item.rm_item_code,
"incoming_rate": item.rate if self.is_return else 0,
"warehouse": self.supplier_warehouse,
"actual_qty": -1 * flt(item.consumed_qty, item.precision("consumed_qty")),
"dependant_sle_voucher_detail_no": item.reference_name,
Expand Down

0 comments on commit 61daa31

Please sign in to comment.