diff --git a/internal/services/quote.go b/internal/services/quote.go index 8185a3d..f7dc0db 100644 --- a/internal/services/quote.go +++ b/internal/services/quote.go @@ -289,6 +289,13 @@ func (s *QuoteService) CalculatePriceLevels(req *PriceLevelsRequest) (*PriceLeve result.ResolvedPricelistIDs[sourceKey] = latest.ID } } + if st.id == 0 && s.localDB != nil { + localPL, err := s.localDB.GetLatestLocalPricelistBySource(sourceKey) + if err == nil && localPL != nil { + st.id = localPL.ServerID + result.ResolvedPricelistIDs[sourceKey] = localPL.ServerID + } + } if st.id == 0 { continue }