<{if $subject}> <{t section="Mail"}>Kreditnota<{/t}> <{$order->getWebshopOrderId()}> <{t section="Mail"}>fra<{/t}> <{$webshop->getName()}> <{else}> <{t section="Mail"}>Kreditnota<{/t}>
<{t section="Mail"}>Kreditnota<{/t}>
#<{$order->getWebshopOrderId()}>
<{t section="Mail"}>Hej<{/t}> <{$order->getOrderFirstName()|escape}>,

<{t section="Mail"}>Vi har oprettet en kreditnota til dig på følgende varer:<{/t}>

<{t section="Mail"}>Krediterede produkter<{/t}>
<{assign var="products" value=$order->getProducts()}> <{section name="i" loop=$products}>
<{assign var="image" value=$products[i]->getImage()}> <{if $image}> <{$products[i]->getName()|escape}> <{/if}>
<{$products[i]->getName()|escape}>
<{assign var="attributes" value=$products[i]->getAttributes()}> <{if $attributes}>
<{section name="j" loop=$attributes}><{$attributes[j].name|escape}>: <{$attributes[j].val|escape}><{if !$smarty.section.j.last}>, <{/if}><{/section}>
<{/if}>
<{$products[i]->getAmount()}> <{t section="Mail"}>stk.<{/t}>
<{/section}>
<{t section="Mail"}>Varer<{/t}> <{$order->getPrice()|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}>
<{t section="Mail"}>Heraf moms<{/t}> <{$order->getVat()|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}>
<{assign var="vat_specification" value=$order->getVatSpecification()}> <{foreach from=$vat_specification item=vat_row}>
<{t section="Mail"}>Moms<{/t}> <{$vat_row.label}> <{t section="Mail"}>af<{/t}> <{$vat_row.net|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}> <{$vat_row.vat|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}>
<{/foreach}>
<{t section="Mail"}>Fragt<{/t}> <{$order->getShippingPrice()|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}>
<{t section="Mail"}>Total kreditnota<{/t}> <{$order->getTotalPrice()|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}>
<{t section="Mail"}>Bestillingsadresse<{/t}>
<{$order->getOrderName()|escape}>
<{if $order->getOrderCompanyName()}> <{$order->getOrderCompanyName()|escape}>
<{/if}> <{if $order->getVatNumber()}> <{t section="Mail"}>CVR-nummer:<{/t}> <{$order->getVatNumber()|escape}>
<{/if}> <{$order->getOrderAddress()|escape}>
<{$order->getOrderZipcode()|escape}> <{$order->getOrderCity()|escape}>
<{$order->getOrderCountry()|escape}>
<{t section="Mail"}>Se kreditnota online<{/t}>
<{/if}>