Index: order_list.msn =================================================================== --- order_list.msn (revision 269) +++ order_list.msn (revision 270) @@ -54,8 +54,12 @@ <% $order->sum_delivery %> +Скидка +<% $order->sum_discount || 0 %> + + Итого с доставкой -<% $total_sum + ($order->sum_delivery || 0) %> +<% $order->sum_total %> @@ -69,9 +73,25 @@ % } % } + +% if ( @coupons ) { + + + + + - +% foreach my $coupon ( @coupons ) { + + + + +% } + +
Использованные купоныСкидка
<% $coupon->code %><% $coupon->discount %>
+% } + % } else {
Заказ пустой
% } @@ -93,4 +113,10 @@ my $total_sum = 0; my $total_num = 0; + my @coupons = $keeper->get_documents ( + class => 'webshop::Coupon', + lclass => 'webshop::OrderCouponLink', + lsource => $order->id, + ) if $order->sum_discount; + \ No newline at end of file