From: Jonathan Prykop Date: Thu, 19 Feb 2015 21:05:07 +0000 (-0600) Subject: RT#28246: Add more details to Change History for Discounts [better error handling] X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=a70498f14ae5d3be7f57ce81fef703b869ccdf0a RT#28246: Add more details to Change History for Discounts [better error handling] --- diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html index 9fc85aa53..c858ec123 100644 --- a/httemplate/elements/change_history_common.html +++ b/httemplate/elements/change_history_common.html @@ -191,6 +191,8 @@ my %h_table_labelsub = ( my $discounts = {}; my $discount_descripsub = sub { my($item) = @_; + die "Could not find part_pkg for pkgpart " . $item->pkgpart + unless $item->part_pkg; $pkgpart{$item->pkgpart} ||= $item->part_pkg->pkg; my $dnum = $item->discountnum; $discounts->{$dnum} ||= qsearchs({