mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-25 15:55:44 +00:00
fix: adjusment module depletion, chickin, recording refactor
This commit is contained in:
@@ -487,16 +487,12 @@ func (s *fifoStockV2Service) Reflow(ctx context.Context, req ReflowRequest) (*Re
|
||||
continue
|
||||
}
|
||||
|
||||
asOf := usableRow.SortAt
|
||||
if req.AsOf != nil && asOf.Before(*req.AsOf) {
|
||||
asOf = *req.AsOf
|
||||
}
|
||||
allocateRes, allocateErr := s.allocateInternal(ctx, tx, AllocateRequest{
|
||||
FlagGroupCode: req.FlagGroupCode,
|
||||
ProductWarehouseID: req.ProductWarehouseID,
|
||||
Usable: usableRow.Ref,
|
||||
NeedQty: desiredQty,
|
||||
AsOf: &asOf,
|
||||
AsOf: nil,
|
||||
})
|
||||
if allocateErr != nil {
|
||||
err = allocateErr
|
||||
|
||||
Reference in New Issue
Block a user