[fix] Options must be a valid DocType for field Asset Category in row 18 (#11773)
* [fix] Options must be a valid DocType for field Asset Category in row 18 * test cases
This commit is contained in:
parent
2a4fefc6ff
commit
2fb8cc5f2c
@ -10,6 +10,7 @@ Stock
|
|||||||
Support
|
Support
|
||||||
Utilities
|
Utilities
|
||||||
Shopping Cart
|
Shopping Cart
|
||||||
|
Assets
|
||||||
Hub Node
|
Hub Node
|
||||||
Portal
|
Portal
|
||||||
Maintenance
|
Maintenance
|
||||||
@ -18,4 +19,3 @@ Regional
|
|||||||
Healthcare
|
Healthcare
|
||||||
Restaurant
|
Restaurant
|
||||||
ERPNext Integrations
|
ERPNext Integrations
|
||||||
Assets
|
|
@ -84,7 +84,9 @@ def get_item_details(args):
|
|||||||
|
|
||||||
if out.has_batch_no and not args.get("batch_no"):
|
if out.has_batch_no and not args.get("batch_no"):
|
||||||
out.batch_no = get_batch_no(out.item_code, out.warehouse, out.qty)
|
out.batch_no = get_batch_no(out.item_code, out.warehouse, out.qty)
|
||||||
out.update(get_batch_qty(out.batch_no, out.warehouse, out.item_code))
|
actual_batch_qty = get_batch_qty(out.batch_no, out.warehouse, out.item_code)
|
||||||
|
if actual_batch_qty:
|
||||||
|
out.update(actual_batch_qty)
|
||||||
|
|
||||||
if args.transaction_date and item.lead_time_days:
|
if args.transaction_date and item.lead_time_days:
|
||||||
out.schedule_date = out.lead_time_date = add_days(args.transaction_date,
|
out.schedule_date = out.lead_time_date = add_days(args.transaction_date,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user