<{if $subject}>

	Kreditnota <{$order->getWebshopOrderId()}> fra <{$webshop->getName()}>

<{else}>

	<html>

	<head>
		<title>Din ordre er sendt</title>
		<style type="text/css">
			html, body {
				background:#f2f2f2;
				font-family:helvetica, sans-serif;
				margin:0px;
				padding:0px;
			}

			#main {
				margin:50px;
				padding:20px;
				background:#fff;
			}

			fieldset {
				border:1px solid #eee;
				margin: 20px 0px 20px 0px;
			}

			fieldset legend {
				font-weight:bold;
			}

			a {
				color:#00a;
				text-decoration:none;
			}

			.product {
				margin-bottom:20px;
			}

			.product .img {
				width:70px;
				float:left;
			}

			.product .inner-product {
				padding:0px 0px 0px 0px;
				float:left;
			}
		</style>
	</head>

	<body>

		<div id="main">

			<{if $settings.design.logo}>
				<h1><a href="/"><img src="<{$settings.design.logo->getInline(300, 300, 'fit')}>" alt="<{$webshop->getName()|escape}>" /></a></h1>
			<{else}>
				<h1><a href="/"><{$webshop->getName()|escape}></a></h1>
			<{/if}>

			<h1>Kreditnota <{$order->getWebshopOrderId()}></h1>

			<p><strong>Hej <{$order->getOrderFirstName()|escape}></strong></p>

			<p>Vi har oprettet en kreditnota til dig på følgende varer:</p>

			<{assign var="products" value=$order->getProducts()}>
			<{section name="i" loop=$products}>
				<div class="product">
					<div class="img">
						<{assign var="image" value=$products[i]->getImage()}>
						<{if $image}>
							<a href="<{$products[i]->getRemoteUrl()|escape}>" target="_blank"><img src="<{$image->getInline(60, 60, 'box')}>" style="border-radius:5px; float:left;"></a>
						<{/if}>
					</div>

					<div class="inner-product">
						<div><strong><{$products[i]->getAmount()}> stk. <a href="<{$products[i]->getRemoteUrl()|escape}>" target="_blank"><{$products[i]->getName()|escape}></a></strong></div>

						<{assign var="attributes" value=$products[i]->getAttributes()}>
						<{if $attributes}>
							<{section name="j" loop=$attributes}>
								<div style="font-size:0.9em;"><{$attributes[j].name}>: <{$attributes[j].val}></div>
							<{/section}>
						<{/if}>

					</div>

					<div style="clear:both;"></div>
				</div>
			<{/section}>

			<p>
				<strong>Pris:</strong> <{$order->getPrice()|number_format:2:",":"."}> <{$webshop->getCurrency()}><br>
				<small>Heraf moms: <{$order->getVat()|number_format:2:",":"."}> <{$webshop->getCurrency()}></small>
			</p>

			<p><strong>Fragt:</strong> <{$order->getShippingPrice()|number_format:2:",":"."}> <{$webshop->getCurrency()}></p>

			<fieldset>
				<legend>Bestillingsadresse</legend>
				<p>
					<{$order->getOrderName()|escape}><br>
					<{if $order->getOrderCompanyName()}>
						<{$order->getOrderCompanyName()|escape}><br>
					<{/if}>
					<{if $order->getVatNumber()}>
						CVR-nummer: <{$order->getVatNumber()|escape}><br>
					<{/if}>
					<{$order->getOrderAddress()|escape}><br>
					<{$order->getOrderZipcode()|escape}> <{$order->getOrderCity()|escape}><br>
					<{$order->getOrderCountry()|escape}>
				</p>
			</fieldset>

			<p>Se også din kreditnota på <a href="<{$order->getPublicUrl()|escape}>"><{$order->getPublicUrl()|escape}></a></p>

		</div>

	</body>

	</html>

<{/if}>