Skip to content

Commit

Permalink
fix: RecordBone's formatstring (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
sveneberth authored Dec 11, 2024
1 parent 6b1353b commit fbd7975
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/viur/shop/skeletons/cart.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class CartNodeSkel(TreeSkel): # STATE: Complete (as in model)
vat = RecordBone(
using=VatIncludedSkel,
multiple=True,
format="$(category) ($(percentage)) : $(value)",
format="$(dest.category) ($(dest.percentage)) : $(dest.value)",
compute=Compute(
get_vat_for_node,
ComputeInterval(ComputeMethod.Always),
Expand Down
2 changes: 1 addition & 1 deletion src/viur/shop/skeletons/vat_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ class VatRateSkel(Skeleton):
using=VatSkel,
required=True,
multiple=True,
format="$(category): $(percentage) %",
format="$(dest.category): $(dest.percentage) %",
)

0 comments on commit fbd7975

Please sign in to comment.