From 33142b457061b64a3c8fd5148c9758f767953b1e Mon Sep 17 00:00:00 2001 From: Rene Krenn <rkrenn@sipwise.com> Date: Thu, 24 Sep 2015 10:37:06 +0200 Subject: [PATCH] MT#15367 rateomat updates CDRs with zones_history.id, not .bz_id retriggered+2 Change-Id: I15b6b01996a018e601936ff1150586c9a0915519 --- lib/NGCP/Schema/Result/cdr.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/NGCP/Schema/Result/cdr.pm b/lib/NGCP/Schema/Result/cdr.pm index 44a5e5b9..fb9266fc 100644 --- a/lib/NGCP/Schema/Result/cdr.pm +++ b/lib/NGCP/Schema/Result/cdr.pm @@ -252,7 +252,7 @@ for my $col (qw/init_time start_time/) { __PACKAGE__->belongs_to( "source_customer_billing_zones_history", "NGCP::Schema::Result::billing_zones_history", - { "bz_id" => "source_customer_billing_zone_id" }, + { "id" => "source_customer_billing_zone_id" }, { is_deferrable => 1, join_type => "LEFT", @@ -264,7 +264,7 @@ __PACKAGE__->belongs_to( __PACKAGE__->belongs_to( "destination_customer_billing_zones_history", "NGCP::Schema::Result::billing_zones_history", - { "bz_id" => "destination_customer_billing_zone_id" }, + { "id" => "destination_customer_billing_zone_id" }, { is_deferrable => 1, join_type => "LEFT",