feat: get_valuation_rate batch wise

This function is used to show valuation rate on frontend and also as
fallback in case values aren't available. Add "batch_no" param to get
batch specific valuation rates.

Co-Authored-By: Alan Tom <2.alan.tom@gmail.com>
This commit is contained in:
Ankush Menat
2022-02-19 14:28:51 +05:30
committed by Ankush Menat
parent ce0514c8db
commit 342d09a671
9 changed files with 79 additions and 15 deletions

View File

@@ -719,6 +719,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
'posting_time': posting_time,
'qty': item.qty * item.conversion_factor,
'serial_no': item.serial_no,
'batch_no': item.batch_no,
'voucher_type': voucher_type,
'company': company,
'allow_zero_valuation_rate': item.allow_zero_valuation_rate