diff --git a/forms/admin_plan_info.rb b/forms/admin_plan_info.rb index 21c2a3e1f9cb6761d735c82b42bec08df7e230fe..871046ad1fb661378febdcac86a66e0bc0f0d926 100644 --- a/forms/admin_plan_info.rb +++ b/forms/admin_plan_info.rb @@ -4,3 +4,9 @@ field( description: @plan_info.relative_start_date, value: @plan_info.formatted_start_date ) + +field( + var: "billing_customer_id", + label: "Billing Customer Id", + value: @plan_info.billing_customer_id +) diff --git a/lib/customer_info.rb b/lib/customer_info.rb index 2369e39e3a797739db5651289bcf672e140bcd3f..db7868548e792728233369508ceba184f24f50ed 100644 --- a/lib/customer_info.rb +++ b/lib/customer_info.rb @@ -24,7 +24,8 @@ class PlanInfo PromiseHash.all( customer: customer, start_date: customer.activation_date, - calling_charges_this_month: customer.calling_charges_this_month + calling_charges_this_month: customer.calling_charges_this_month, + billing_customer_id: customer.billing_customer_id ).then(method(:new)) end @@ -46,6 +47,7 @@ class PlanInfo method_missing :customer, Customer start_date Time calling_charges_this_month BigDecimal + billing_customer_id String end def template @@ -122,8 +124,7 @@ class AdminInfo backend_repo: TrivialBackendSgxRepo.new ) PromiseHash.all( - jid: customer.jid, - customer_id: customer.customer_id, + jid: customer.jid, customer_id: customer.customer_id, fwd: customer.fwd, info: CustomerInfo.for(customer), api: API.for(customer),