|
@@ -13,14 +13,14 @@
|
|
|
<div class="summary-container" id="producttotal"></div>
|
|
<div class="summary-container" id="producttotal"></div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="text-center">
|
|
<div class="text-center">
|
|
|
- {capture name=currentDate} {$smarty.now|date_format:"%Y-%m-%d"} {/capture}
|
|
|
|
|
|
|
+{*} {capture name=currentDate} {$smarty.now|date_format:"%Y-%m-%d"} {/capture}
|
|
|
{capture name=dayOfMonth} {$smarty.now|date_format:"%e"|trim} {/capture}
|
|
{capture name=dayOfMonth} {$smarty.now|date_format:"%e"|trim} {/capture}
|
|
|
{capture name=endOfMonth} {date("t")} {/capture}
|
|
{capture name=endOfMonth} {date("t")} {/capture}
|
|
|
- {assign var=daysInBetween value="`$smarty.capture.endOfMonth-$smarty.capture.dayOfMonth`"}
|
|
|
|
|
|
|
+ {assign var=daysInBetween value="`$smarty.capture.endOfMonth-$smarty.capture.dayOfMonth`"} *}
|
|
|
|
|
|
|
|
- {if $smarty.capture.dayOfMonth < 20}
|
|
|
|
|
|
|
+ {if date("t") < 20}
|
|
|
Der Preis bezieht sich auf die verbleibende<br />
|
|
Der Preis bezieht sich auf die verbleibende<br />
|
|
|
- Anzahl der Tage ({$daysInBetween}) zwischen der<br />
|
|
|
|
|
|
|
+ Anzahl der Tage ({date("t") - $smarty.now|date_format:"%e"|trim}) zwischen der<br />
|
|
|
Bestellung und dem Ende des Monats<br />
|
|
Bestellung und dem Ende des Monats<br />
|
|
|
{else}
|
|
{else}
|
|
|
Da die Bestellung nach dem 20. des Monats <br />
|
|
Da die Bestellung nach dem 20. des Monats <br />
|