@@ -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
+)
@@ -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),