mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
12294 - Fix Wrong Tax Category Display
- Only display the tax_category name if the tax_category_id is present - tax_category is overriden in the variant model - if tax category is not present, then return the default tax category
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
%td.align-left
|
||||
.content= variant.primary_taxon&.name
|
||||
%td.align-left
|
||||
.content= variant.tax_category&.name || "None" # TODO: convert to dropdown, else translate hardcoded string.
|
||||
.content= (variant.tax_category_id ? variant.tax_category&.name : t('.none_tax_category')) # TODO: convert to dropdown
|
||||
%td.align-left
|
||||
-# empty
|
||||
%td.align-right
|
||||
|
||||
@@ -897,6 +897,8 @@ en:
|
||||
delete_variant:
|
||||
success: Successfully deleted the variant
|
||||
error: Unable to delete the variant
|
||||
variant_row:
|
||||
none_tax_category: None
|
||||
product_import:
|
||||
title: Product Import
|
||||
file_not_found: File not found or could not be opened
|
||||
|
||||
Reference in New Issue
Block a user