Compare commits
9 Commits
feature/ve
...
08ecfd0826
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08ecfd0826 | ||
|
|
42458455f7 | ||
| 2f0957ae4e | |||
| 65db9b37ea | |||
| ed0ef04d10 | |||
|
|
d1f65f6684 | ||
|
|
7b371add10 | ||
|
|
8d7fab39b4 | ||
|
|
1906a74759 |
2
bible
2
bible
Submodule bible updated: 472c8a6918...34b457d654
@@ -103,6 +103,8 @@ Database: `RFQ_LOG`
|
|||||||
| `lot_partnumbers` | Partnumber → lot mapping (pricelist enrichment) | SELECT |
|
| `lot_partnumbers` | Partnumber → lot mapping (pricelist enrichment) | SELECT |
|
||||||
| `stock_log` | Latest stock qty by partnumber (pricelist enrichment) | SELECT |
|
| `stock_log` | Latest stock qty by partnumber (pricelist enrichment) | SELECT |
|
||||||
| `qt_configurations` | Saved configurations (includes `line_no`) | SELECT, INSERT, UPDATE |
|
| `qt_configurations` | Saved configurations (includes `line_no`) | SELECT, INSERT, UPDATE |
|
||||||
|
| `lot_partnumbers` | Partnumber → lot mapping (pricelist enrichment) | SELECT |
|
||||||
|
| `stock_log` | Latest stock qty by partnumber (pricelist enrichment) | SELECT |
|
||||||
| `qt_projects` | Projects | SELECT, INSERT, UPDATE |
|
| `qt_projects` | Projects | SELECT, INSERT, UPDATE |
|
||||||
| `qt_client_local_migrations` | Migration catalog | SELECT only |
|
| `qt_client_local_migrations` | Migration catalog | SELECT only |
|
||||||
| `qt_client_schema_state` | Applied migrations state | SELECT, INSERT, UPDATE |
|
| `qt_client_schema_state` | Applied migrations state | SELECT, INSERT, UPDATE |
|
||||||
|
|||||||
@@ -289,6 +289,13 @@ func (s *QuoteService) CalculatePriceLevels(req *PriceLevelsRequest) (*PriceLeve
|
|||||||
result.ResolvedPricelistIDs[sourceKey] = latest.ID
|
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 {
|
if st.id == 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user