List<DraftInventory> draftList = inventoryRepository.queryAllDraft();
for (InventoryViewModel viewModel : inventoryViewModelList) {
for (DraftInventory draftInventory : draftList) {
if (viewModel.getStockCardId() == draftInventory.getStockCard().getId()) {
((PhysicalInventoryViewModel) viewModel).setDraftInventory(draftInventory);
<BUG>viewModel.initExpiryDates(draftInventory.getExpireDates());
viewModel.setQuantity(formatQuantity(draftInventory.getQuantity()));</BUG>
populateLotMovementModelWithDraftLotItem(viewModel, draftInventory);
}
}

List<DraftInventory> draftList = inventoryRepository.queryAllDraft();
for (InventoryViewModel viewModel : inventoryViewModelList) {
for (DraftInventory draftInventory : draftList) {
if (viewModel.getStockCardId() == draftInventory.getStockCard().getId()) {
((PhysicalInventoryViewModel) viewModel).setDraftInventory(draftInventory);
populateLotMovementModelWithDraftLotItem(viewModel, draftInventory);
}
}
