From d7266ca8e704e708fd6c24d8a760948c27fbb868 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Wed, 9 Jul 2014 14:37:33 -0700 Subject: [PATCH] CRM-13973 - set cancelled class in line item listings for line items that have been de-selected - e.g. QTY = 0. ---------------------------------------- * CRM-13973: https://issues.civicrm.org/jira/browse/CRM-13973 --- templates/CRM/Price/Page/LineItem.tpl | 85 ++++++++++++++------------- 1 file changed, 44 insertions(+), 41 deletions(-) diff --git a/templates/CRM/Price/Page/LineItem.tpl b/templates/CRM/Price/Page/LineItem.tpl index feacbc347d..600e00826b 100644 --- a/templates/CRM/Price/Page/LineItem.tpl +++ b/templates/CRM/Price/Page/LineItem.tpl @@ -34,50 +34,53 @@ {ts}Participant {$priceset+1}{/ts} {$part.$priceset.info} {/if} - + - {if $context EQ "Membership"} - - {else} - - - - {/if} + {if $context EQ "Membership"} + + {else} + + + + {/if} - {if $pricesetFieldsCount} - {/if} - - {foreach from=$value item=line} - - - {if $context NEQ "Membership"} - - - {/if} - - {if $pricesetFieldsCount} {/if} - - {/foreach} + {if $pricesetFieldsCount} + + {/if} + + {foreach from=$value item=line} + + + {if $context NEQ "Membership"} + + + {/if} + + {if $pricesetFieldsCount} + + {/if} + + {/foreach}
{ts}Item{/ts}{ts}Fee{/ts}{ts}Qty{/ts}{ts}Unit Price{/ts}{ts}Total Price{/ts}{ts}Fee{/ts}{ts}Qty{/ts}{ts}Unit Price{/ts}{ts}Total Price{/ts}{ts}Total Participants{/ts}
{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}
{$line.description}
{/if}
{$line.qty}{$line.unit_price|crmMoney}{$line.line_total|crmMoney}{$line.participant_count}
{ts}Total Participants{/ts}
{if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}
{$line.description}
{/if}
{$line.qty}{$line.unit_price|crmMoney}{$line.line_total|crmMoney}{$line.participant_count}
- {/if} + {/if} {/foreach}
-
- {if $context EQ "Contribution"} - {ts}Contribution Total{/ts}: - {elseif $context EQ "Event"} - {ts}Event Total{/ts}: - {elseif $context EQ "Membership"} - {ts}Membership Fee Total{/ts}: - {else} - {ts}Total Amount{/ts}: - {/if} +
+ {if $context EQ "Contribution"} + {ts}Contribution Total{/ts}: + {elseif $context EQ "Event"} + {ts}Event Total{/ts}: + {elseif $context EQ "Membership"} + {ts}Membership Fee Total{/ts}: + {else} + {ts}Total Amount{/ts}: + {/if} {$totalAmount|crmMoney} -
-
-
- {if $pricesetFieldsCount} +
+
+
+ {if $pricesetFieldsCount} {ts}Total Participants{/ts}: {foreach from=$lineItem item=pcount} {if $pcount neq 'skip'} @@ -93,14 +96,14 @@ {/if} {/foreach} {$totalcount} - {/if} -
-
+ {/if} +
+
{if $hookDiscount.message}
- ({$hookDiscount.message}) + ({$hookDiscount.message})
{/if} {literal} -- 2.25.1