Repository navigation
Fix: nell'elenco dei seriali manca il tipo di documento - #1929
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
…s empty The serials list read the document type from a LEFT JOIN on the localized order-type table, so when that language row was missing the label lost its document word and showed only the number and the date. Both the purchase and the sale side now fall back to the source module name when the localized type is empty, so the label always names the document.
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.
Ciao e grazie per il progetto.
Ho letto la issue #1922 e ho preparato una correzione su una parte del problema segnalato, quella delle diciture sbagliate nell'elenco dei seriali.
Il difetto che ho sistemato e' questo: quando un seriale e' collegato a un ordine, il programma va a prendere il nome del tipo di documento da una tabella aggiuntiva delle traduzioni. Se quella riga di traduzione non c'e', il nome arriva vuoto, e la scritta che si legge nell'elenco perde la parola che indica il documento: resta solo il numero e la data, senza il tipo. E' esattamente il caso che segnali quando dici che manca la parola "Ordine".
La correzione aggiunge un controllo: se il tipo di documento arriva vuoto, al suo posto viene usato il nome del modulo di provenienza, che c'e' sempre. Cosi' la scritta mostra sempre il tipo di documento, e non resta mai monca. Ho messo questo controllo sia nell'elenco delle vendite sia in quello degli acquisti, perche' entrambi avevano la stessa fragilita'.
Per onesta' segnalo che questa proposta copre la parte delle diciture. La parte piu' delicata, cioe' il fatto che un seriale inserito in un documento resti ancora disponibile per altri documenti, tocca la logica di disponibilita' dei seriali e merita un lavoro a se', per non rischiare di rompere i movimenti di magazzino.