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:
Ahmed Ejaz
2024-04-04 06:06:23 +05:00
parent 0bae5d67c6
commit 0887f0676f
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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