fix: set current qty as default qty for stock entry
This commit is contained in:
parent
c2cbd407c1
commit
f4c213379e
@ -75,7 +75,7 @@ erpnext.SerialNoBatchSelector = class SerialNoBatchSelector {
|
|||||||
fieldtype:'Float',
|
fieldtype:'Float',
|
||||||
read_only: me.has_batch && !me.has_serial_no,
|
read_only: me.has_batch && !me.has_serial_no,
|
||||||
label: __(me.has_batch && !me.has_serial_no ? 'Selected Qty' : 'Qty'),
|
label: __(me.has_batch && !me.has_serial_no ? 'Selected Qty' : 'Qty'),
|
||||||
default: flt(me.item.stock_qty),
|
default: flt(me.item.stock_qty) || flt(me.item.transfer_qty),
|
||||||
},
|
},
|
||||||
...get_pending_qty_fields(me),
|
...get_pending_qty_fields(me),
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user