mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-24 23:35:43 +00:00
fixing filter product warehouse transfer, cannot take from population
This commit is contained in:
@@ -2409,15 +2409,10 @@ func (s *recordingService) reflowResetRecordingDepletionsOut(
|
||||
return errors.New("stock log repository is not available")
|
||||
}
|
||||
logState := newRecordingStockLogState()
|
||||
stockAllocationRepo := commonRepo.NewStockAllocationRepository(tx)
|
||||
|
||||
for _, depletion := range depletions {
|
||||
if depletion.Id == 0 {
|
||||
continue
|
||||
}
|
||||
if err := stockAllocationRepo.ReleaseByUsable(ctx, fifo.UsableKeyRecordingDepletion.String(), depletion.Id, nil, nil); err != nil {
|
||||
return err
|
||||
}
|
||||
s.logDepletionTrace("reflow_reset:start", depletion, "")
|
||||
|
||||
sourceWarehouseID := uint(0)
|
||||
|
||||
Reference in New Issue
Block a user