mirror of
https://github.com/frappe/books.git
synced 2026-08-24 02:24:17 -05:00
Merge pull request #1307 from frappe/fix-transfer-quantity-return
fix: match quantity with UOM conversion in return invoice
This commit is contained in:
@@ -706,6 +706,10 @@ export abstract class Invoice extends Transactional {
|
||||
...docItem,
|
||||
name: undefined,
|
||||
quantity: -(totalQtyOfReturnedItems[docItem.item as string] || 0),
|
||||
transferQuantity: -(
|
||||
(totalQtyOfReturnedItems[docItem.item as string] as number) /
|
||||
(item.unitConversionFactor as number)
|
||||
),
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user