Have a test instance on 12.1.15. Created 2 batches 123 and 456. Received 123 first at $1/unit cost and 456 later at $0.50/unit.
Did 2 delivery notes for batch 123 which left quantity in batch 123 and correctly pulled cost at $1/unit.
Did third delivery for batch 456 and this is reflected correctly in stock balance for each lot BUT it pulled cost from Inventory to Cost of Goods sold of $1/unit NOT $0.50/unit.
Is this an incorrect setup on our end? ERPnext appears to be doing FIFO on costing, but when you can specific ID batches that is incorrect.