Sfoglia il codice sorgente

stock take block, created round created again hide another sldie create

stockTakeUpdate
CANCERYS\kw093 2 settimane fa
parent
commit
1ce4304616
1 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. +6
    -2
      src/main/java/com/ffii/fpsms/modules/stock/service/StockInLineService.kt

+ 6
- 2
src/main/java/com/ffii/fpsms/modules/stock/service/StockInLineService.kt Vedi File

@@ -1470,9 +1470,13 @@ open class StockInLineService(
val (warehouseId, qty) = targets.first()
stockInLine.pendingAutoPutawayWarehouseId = warehouseId
stockInLine.pendingAutoPutawayQty = qty
// Keep JO in STORING until releasePendingAutoPutaways actually puts away;
// do not mark COMPLETED here or the JO vanishes from Waiting QC Put Away.
stockInLine.jobOrder?.let { jo ->
jo.status = JobOrderStatus.COMPLETED
jobOrderRepository.save(jo)
if (jo.status != JobOrderStatus.STORING) {
jo.status = JobOrderStatus.STORING
jobOrderRepository.save(jo)
}
}
val saved = saveAndFlush(stockInLine)
val lineInfo = stockInLineRepository.findStockInLineInfoByIdAndDeletedFalse(saved.id!!)


Caricamento…
Annulla
Salva