Warmfix: packaging type field showing repetitive values #856
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#856
Loading…
Reference in New Issue
No description provided.
Delete Branch "Fix-CustomerSummaryTable"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR realizada para solucionar CAU https://cau.verdnatura.es/scp/tickets.php?number=162911
@ -159,2 +155,3 @@
if (!ticketSales || ticketSales.length === 0) return '-';
return dashIfEmpty(packagingType);
const packagingTypes = ticketSales
Com sols hi ha H i V. igual tiraria mes per un .some
algo com:
const packagingTypes = []
if(ticketSales.some(sale => sale.item.itemPackingTypeFk == 'H')) packagingTypes.push('H')
if(ticketSales.some(sale => sale.item.itemPackingTypeFk == 'V')) packagingTypes.push('V')