- sistemato "Pare che selezionando una condizione, non sempre viene aggiornato il record !"

- Aggiunto filtro "Escludi Editoriale"
This commit is contained in:
Surya Paolo
2025-06-04 15:46:39 +02:00
parent f85b8d0637
commit 28a4fe1952
3 changed files with 65 additions and 61 deletions

View File

@@ -55,76 +55,75 @@ html
tr tr
td(class="whitespace", height="10") td
p  
- var totalPrice = orders.totalPrice - var totalPrice = orders.totalPrice
- var note = orders.note - var note = orders.note
- var index = 0 - var index = 0
each rec in orders.items each rec in orders.items
- var descr = rec.order.product.productInfo.name - var descr = rec.order.product.productInfo.name
- var code = rec.order.product.productInfo.code - var code = rec.order.product.productInfo.code
- var img = dirimg + rec.order.product.productInfo.imagefile - var img = dirimg + rec.order.product.productInfo.imagefile
- var price = rec.order.price - var price = rec.order.price
- var after_price = rec.order.after_price - var after_price = rec.order.after_price
- var TotalPriceProduct = rec.order.TotalPriceProductstr - var TotalPriceProduct = rec.order.TotalPriceProductstr
if (rec.order.gasordine) if (rec.order.gasordine)
- var gasordine = rec.order.gasordine.name - var gasordine = rec.order.gasordine.name
else else
- var gasordine = '' - var gasordine = ''
- var qty = rec.order.quantity - var qty = rec.order.quantity
- var qtypreordered = rec.order.quantitypreordered - var qtypreordered = rec.order.quantitypreordered
if (rec.order.product.productInfo.sfuso && rec.order.product.productInfo.weight) if (rec.order.product.productInfo.sfuso && rec.order.product.productInfo.weight)
- qtypreordered = qtypreordered * rec.order.product.productInfo.weight - qtypreordered = qtypreordered * rec.order.product.productInfo.weight
else if (rec.order.product.productInfo.weight) else if (rec.order.product.productInfo.weight)
- qtypreordered = qtypreordered + ' x ' + rec.order.product.productInfo.weight - qtypreordered = qtypreordered + ' x ' + rec.order.product.productInfo.weight
- var unit = rec.order.product.productInfo.unitstr - var unit = rec.order.product.productInfo.unitstr
- index = index + 1 - index = index + 1
table(cellpadding="0", cellspacing="0", width="100%", summary="", border="0", align="center") table(cellpadding="0", cellspacing="0", width="100%", summary="", border="0", align="center")
tr tr
td(class="column", valign="center" width="40") td(class="column", valign="center" width="40")
p.boldhigh #{index}. p.boldhigh #{index}.
td(class="column sectionArticleImage", valign="top" width="150") td(class="column sectionArticleImage", valign="top" width="150")
table(cellpadding="0", cellspacing="0", summary="", border="0") table(cellpadding="0", cellspacing="0", summary="", border="0")
tr tr
td td
img(src=baseimg + img, alt="", width="150") img(src=baseimg + img, alt="", width="150")
td(class="column", valign="top") td(class="column", valign="top")
table(cellpadding="0", cellspacing="0", summary="", border="0") table(cellpadding="0", cellspacing="0", summary="", border="0")
if (qtypreordered > 0) if (qtypreordered > 0)
tr
td(class="sectionContent", valign="top")
p Gas Ordine: #{gasordine}
p  
tr
td(class="sectionContentTitle boldhigh", valign="top")
p #{descr}
tr tr
td(class="sectionContent", valign="top") td(class="sectionContent", valign="top")
p Gas Ordine: #{gasordine} p Codice: #{code}
p   tr
tr td(class="sectionContent", valign="top")
td(class="sectionContentTitle boldhigh", valign="top") p Prezzo: #{price} € #{after_price}
p #{descr} if (qty > 0)
tr td(class="sectionContent", valign="top")
td(class="sectionContent", valign="top") p Quantità: #{qty} #{unit}
p Codice: #{code} if (qtypreordered > 0)
tr td(class="sectionContent", valign="top")
td(class="sectionContent", valign="top") p Quantità Prenotata: #{qtypreordered} #{unit}
p Prezzo: #{price} € #{after_price} tr
if (qty > 0) td(class="sectionContent", valign="top")
td(class="sectionContent", valign="top") p Totale: #{TotalPriceProduct} €
p Quantità: #{qty} #{unit}
if (qtypreordered > 0)
td(class="sectionContent", valign="top")
p Quantità Prenotata: #{qtypreordered} #{unit}
tr
td(class="sectionContent", valign="top")
p Totale: #{TotalPriceProduct} €
if (note) if (note)
p Note Aggiuntive: #{note}<br> p Note Aggiuntive: #{note}<br>
p.sectionContentTitle.boldhigh.sectionTotal Totale Ordine: #{totalPrice} € p.sectionContentTitle.boldhigh.sectionTotal Totale Ordine: #{totalPrice} €
tr tr
td(class="whitespace", height="10") td(class="whitespace", height="10")

View File

@@ -52,7 +52,7 @@ html
if (miordconfirmed) if (miordconfirmed)
p!= miordconfirmed p!= miordconfirmed
else else
p Puoi pertanto venire a ritirarli direttamente in sede, negli orari che ti sono stati indicati. p Puoi venire a ritirarli direttamente in sede, negli orari che ti sono stati indicati.
p &nbsp; p &nbsp;
@@ -62,6 +62,7 @@ html
each rec in orders.items each rec in orders.items
- var descr = rec.order.product.productInfo.name - var descr = rec.order.product.productInfo.name
- var code = rec.order.product.productInfo.code
- var img = dirimg + rec.order.product.productInfo.imagefile - var img = dirimg + rec.order.product.productInfo.imagefile
- var price = rec.order.product.price - var price = rec.order.product.price
- var after_price = rec.order.product.after_price - var after_price = rec.order.product.after_price
@@ -101,6 +102,9 @@ html
tr tr
td(class="sectionContentTitle boldhigh", valign="top") td(class="sectionContentTitle boldhigh", valign="top")
p #{descr} p #{descr}
tr
td(class="sectionContent", valign="top")
p Codice: #{code}
tr tr
td(class="sectionContent", valign="top") td(class="sectionContent", valign="top")
p Prezzo: #{price} € #{after_price} p Prezzo: #{price} € #{after_price}

View File

@@ -50,6 +50,7 @@ const CatalogSchema = new Schema({
}, },
editore: [{ type: String }], editore: [{ type: String }],
editore_escludi: [{ type: String }],
descr_introduttiva: { descr_introduttiva: {
type: String, type: String,