From 08570826e2978cec74adb303e87e0572ebaa71ad Mon Sep 17 00:00:00 2001 From: Gerhard Jungwirth Date: Fri, 16 May 2014 16:32:56 +0200 Subject: [PATCH] MT#3955 Add relation to cdr-billing_zones_history - destination_customer_billing_zones_history --- lib/NGCP/Schema/Result/cdr.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/NGCP/Schema/Result/cdr.pm b/lib/NGCP/Schema/Result/cdr.pm index 93b122c9..ac006e47 100644 --- a/lib/NGCP/Schema/Result/cdr.pm +++ b/lib/NGCP/Schema/Result/cdr.pm @@ -221,6 +221,18 @@ __PACKAGE__->belongs_to( }, ); +__PACKAGE__->belongs_to( + "destination_customer_billing_zones_history", + "NGCP::Schema::Result::billing_zones_history", + { "bz_id" => "destination_customer_billing_zone_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "SET NULL", + on_update => "NO ACTION", + }, +); + __PACKAGE__->belongs_to( "source_account", "NGCP::Schema::Result::contracts",