Repository navigation
Fix: le sedi secondarie dell'azienda non compaiono nel selettore - #1930
Open
Andrea-Bruno wants to merge 1 commit into
Open
Andrea-Bruno wants to merge 1 commit into
Andrea-Bruno wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Quando si apre il menu a tendina che serve a scegliere la sede dell'azienda, per esempio nel modulo delle giacenze per sede, compariva solo la sede legale e non le altre sedi aggiuntive della stessa azienda.
Il motivo era un errore nel modo in cui il programma cercava le sedi nel database: le cercava con il numero identificativo sbagliato, quindi trovava solo la sede principale e scartava tutte le altre.
Con questa modifica la ricerca delle sedi viene fatta con l'identificativo corretto, quello che lega ogni sede alla sua azienda. Così ora il menu mostra la sede legale insieme a tutte le sedi secondarie, come ci si aspetta.
La modifica tocca un solo punto del codice ed è minima: cambia soltanto il criterio con cui le sedi vengono collegate all'azienda, senza toccare il resto del funzionamento.