Change catalog filters fetching order
This commit is contained in:
parent
c72bfdc100
commit
851d97f321
|
@ -617,7 +617,7 @@ const getItemFamilies = async () => {
|
|||
JOIN vn.itemTypeL10n l ON l.id = t.id
|
||||
WHERE t.order >= 0
|
||||
AND t.categoryFk = #category
|
||||
ORDER BY t.order, l.name;
|
||||
ORDER BY t.order, l.name ASC;
|
||||
DROP TEMPORARY TABLE tmp.itemAvailable`,
|
||||
{
|
||||
category: selectedCategory.value,
|
||||
|
@ -641,7 +641,7 @@ const getItemColors = async () => {
|
|||
JOIN tmp.itemAvailable a ON a.id = i.id
|
||||
JOIN vn.inkL10n l ON l.id = i.inkFk
|
||||
WHERE (${queryFilter.value})
|
||||
ORDER BY name;
|
||||
ORDER BY name ASC;
|
||||
DROP TEMPORARY TABLE tmp.itemAvailable;`,
|
||||
{
|
||||
orderId: basketOrderId.value
|
||||
|
@ -674,7 +674,7 @@ const getProducers = async () => {
|
|||
JOIN tmp.itemAvailable a ON a.id = i.id
|
||||
JOIN vn.producer p ON p.id = i.producerFk
|
||||
WHERE (${queryFilter.value})
|
||||
ORDER BY name;
|
||||
ORDER BY name ASC;
|
||||
DROP TEMPORARY TABLE tmp.itemAvailable;`,
|
||||
{ orderId: basketOrderId.value }
|
||||
);
|
||||
|
@ -695,7 +695,7 @@ const getOrigins = async () => {
|
|||
JOIN vn.origin o ON o.id = i.originFk
|
||||
JOIN vn.originL10n l ON l.id = o.id
|
||||
WHERE (${queryFilter.value})
|
||||
ORDER BY name;
|
||||
ORDER BY name ASC;
|
||||
DROP TEMPORARY TABLE tmp.itemAvailable;`,
|
||||
{ orderId: basketOrderId.value }
|
||||
);
|
||||
|
@ -714,7 +714,7 @@ const getSubcategories = async () => {
|
|||
JOIN vn.itemType t ON t.id = i.typeFk
|
||||
JOIN tmp.itemAvailable a ON a.id = i.id
|
||||
WHERE (${queryFilter.value})
|
||||
ORDER BY category;
|
||||
ORDER BY category ASC;
|
||||
DROP TEMPORARY TABLE tmp.itemAvailable;`,
|
||||
{ orderId: basketOrderId.value }
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue