Compare commits
2 Commits
ed0ef04d10
...
2f0957ae4e
| Author | SHA1 | Date | |
|---|---|---|---|
| 2f0957ae4e | |||
| 65db9b37ea |
2
bible
2
bible
Submodule bible updated: 472c8a6918...34b457d654
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user