Explorar el Código

no message

master
Fai Luk hace 9 horas
padre
commit
e741d0ad51
Se han modificado 2 ficheros con 3 adiciones y 4 borrados
  1. +1
    -1
      src/main/java/com/ffii/fpsms/modules/common/scheduler/service/SchedulerService.kt
  2. +2
    -3
      src/main/java/com/ffii/fpsms/modules/stock/service/StockInLineService.kt

+ 1
- 1
src/main/java/com/ffii/fpsms/modules/common/scheduler/service/SchedulerService.kt Ver fichero

@@ -152,7 +152,7 @@ open class SchedulerService(
commonSchedule(
scheduledPostCompletedDnGrn,
SettingNames.SCHEDULE_POST_COMPLETED_DN_GRN,
"0 37 0 * * *",
"0 57 0 * * *",
{ getPostCompletedDnAndProcessGrn(receiptDate = getPostCompletedDnGrnReceiptDate()) }
)
}


+ 2
- 3
src/main/java/com/ffii/fpsms/modules/stock/service/StockInLineService.kt Ver fichero

@@ -552,8 +552,7 @@ open class StockInLineService(
val totalQtyM18 = silList.sumOf {
it.acceptedQtyM18?.let { qty -> BigDecimal.valueOf(qty.toLong()) } ?: BigDecimal.ZERO
}
val unitIdM18 = pol.uomM18?.m18Id?.toInt()
?: throw IllegalStateException("Missing uomIdM18 mapping for POL id=${pol.id}, PO=${po.code}")
val unitIdFromDataLog = (pol.m18DataLog?.dataLog?.get("unitId") as? Number)?.toLong()?.toInt()
val itemName = (sil.item?.name ?: pol.item?.name).orEmpty() // always non-null for M18 bDesc/bDesc_en
GoodsReceiptNoteAntValue(
sourceType = "po",
@@ -561,7 +560,7 @@ open class StockInLineService(
sourceLot = pol.m18Lot ?: "",
proId = (sil.item?.m18Id ?: pol.item?.m18Id ?: 0L).toInt(),
locId = 155,
unitId = unitIdM18,
unitId = unitIdFromDataLog ?: (pol.uomM18?.m18Id ?: 0L).toInt(),
qty = totalQtyM18.toDouble(),
up = pol.up?.toDouble() ?: 0.0,
amt = CommonUtils.getAmt(


Cargando…
Cancelar
Guardar