corretto bug GruppoMacro la lista veniva salvata ma anche aggiornata in memoria con solo gli ID... in questo caso TABLES_NON_AGGIORNARE_IN_MEMORIA_PERCHE_DIVERSA_STRUTTURA gli dice che alcune tabelle non devono essere aggiornate in memoria.

This commit is contained in:
Surya Paolo
2025-11-18 11:19:32 +01:00
parent b8df3ea721
commit 4eb8838dbc
103 changed files with 3593943 additions and 426 deletions

View File

@@ -140,7 +140,7 @@ export default defineComponent({
const optionscatalogo = ref(<any>{ maxlength: 0 });
function handleUpdate(newList) {
function handleUpdate(newList: any) {
internalProducts.value = newList;
riaggiornaListaProdAlGenitore();
}
@@ -164,8 +164,10 @@ export default defineComponent({
() => props.lista_prodotti,
(newVal) => {
internalProducts.value = [...newVal];
internalProducts.value.forEach((p: IProduct) => {
p.myorder = ProductStore.createMyOrder();
internalProducts.value.forEach((p: any) => {
if (typeof p === 'object' && p !== null) {
p.myorder = ProductStore.createMyOrder();
}
});
}
),