diff --git a/src/views/dashboards/superUserDashboard/InvoicingBillingPeriod/components/ProductAggregatesCard.vue b/src/views/dashboards/superUserDashboard/InvoicingBillingPeriod/components/ProductAggregatesCard.vue new file mode 100644 index 00000000..2e840442 --- /dev/null +++ b/src/views/dashboards/superUserDashboard/InvoicingBillingPeriod/components/ProductAggregatesCard.vue @@ -0,0 +1,439 @@ + + + + + diff --git a/src/views/dashboards/superUserDashboard/InvoicingBillingPeriod/services/invoicingPeriodTranslation.js b/src/views/dashboards/superUserDashboard/InvoicingBillingPeriod/services/invoicingPeriodTranslation.js index a22457ee..7b2cb9b9 100644 --- a/src/views/dashboards/superUserDashboard/InvoicingBillingPeriod/services/invoicingPeriodTranslation.js +++ b/src/views/dashboards/superUserDashboard/InvoicingBillingPeriod/services/invoicingPeriodTranslation.js @@ -109,6 +109,26 @@ const REVIEW_WORKSPACE_TRANSLATORS = { composer.t("invoicing_period.review_workspace.states.refreshing", params), "states.retained_error": (composer, params) => composer.t("invoicing_period.review_workspace.states.retained_error", params), + "aggregates.heading": (composer, params) => + composer.t("invoicing_period.review_workspace.aggregates.heading", params), + "aggregates.primary_products": (composer, params) => + composer.t("invoicing_period.review_workspace.aggregates.primary_products", params), + "aggregates.addons": (composer, params) => + composer.t("invoicing_period.review_workspace.aggregates.addons", params), + "aggregates.empty": (composer, params) => + composer.t("invoicing_period.review_workspace.aggregates.empty", params), + "aggregates.loading": (composer, params) => + composer.t("invoicing_period.review_workspace.aggregates.loading", params), + "aggregates.error": (composer, params) => + composer.t("invoicing_period.review_workspace.aggregates.error", params), + "aggregates.refresh": (composer, params) => + composer.t("invoicing_period.review_workspace.aggregates.refresh", params), + "aggregates.total": (composer, params) => + composer.t("invoicing_period.review_workspace.aggregates.total", params), + "aggregates.for_customer": (composer, params) => + composer.t("invoicing_period.review_workspace.aggregates.for_customer", params), + "aggregates.using_mock_notice": (composer, params) => + composer.t("invoicing_period.review_workspace.aggregates.using_mock_notice", params), "toolbar.all_departments": (composer, params) => composer.t("invoicing_period.review_workspace.toolbar.all_departments", params), "toolbar.all_invoice_states": (composer, params) => diff --git a/src/views/dashboards/superUserDashboard/InvoicingBillingPeriod/views/InvoicingBillingPeriodViewAll.vue b/src/views/dashboards/superUserDashboard/InvoicingBillingPeriod/views/InvoicingBillingPeriodViewAll.vue index 2a55ad0b..5ca14bf9 100644 --- a/src/views/dashboards/superUserDashboard/InvoicingBillingPeriod/views/InvoicingBillingPeriodViewAll.vue +++ b/src/views/dashboards/superUserDashboard/InvoicingBillingPeriod/views/InvoicingBillingPeriodViewAll.vue @@ -23,6 +23,7 @@ import InvoicingBillingPeriodFilters from "@/views/dashboards/superUserDashboard import InvoicingBillingPeriodCustomerAttributes from "@/views/dashboards/superUserDashboard/InvoicingBillingPeriod/displays/layout/InvoicingBillingPeriodCustomerAttributes.vue"; import InvoicingPeriodFlagList from "@/views/dashboards/superUserDashboard/InvoicingBillingPeriod/components/InvoicingPeriodFlagList.vue"; import InvoicingPeriodObjectTree from "@/views/dashboards/superUserDashboard/InvoicingBillingPeriod/components/InvoicingPeriodObjectTree.vue"; +import ProductAggregatesCard from "@/views/dashboards/superUserDashboard/InvoicingBillingPeriod/components/ProductAggregatesCard.vue"; import PaginationNavigation from "@/components/displays/pagination/PaginationNavigation.vue"; import { buildMultiMonthInvoiceContext, @@ -977,6 +978,10 @@ const getTransactionQueryParameters = () => { show_fixed_pricing: true, }; }; + +// TRU-185: Backend product aggregate endpoint (TRU-182) is not yet merged. +// Set to true once `/superuser/invoicing/period/customer-aggregates` is live. +const isProductAggregatesEndpointAvailable = false;