From fbe459752159399ccf212e06c0ccdbe7b5a77a75 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Wed, 30 Oct 2024 13:18:59 -0400 Subject: [PATCH] Partially migrated accounting app to webpack --- corehq/apps/accounting/static/accounting/js/widgets.js | 1 + .../templates/accounting/trigger_accounting_tests.html | 2 +- .../accounting/templates/accounting/trigger_bookkeeper.html | 2 +- .../templates/accounting/trigger_customer_invoice.html | 2 +- .../apps/accounting/templates/accounting/trigger_invoice.html | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/corehq/apps/accounting/static/accounting/js/widgets.js b/corehq/apps/accounting/static/accounting/js/widgets.js index 3a7f3bb3644a..0bf26c21fd54 100644 --- a/corehq/apps/accounting/static/accounting/js/widgets.js +++ b/corehq/apps/accounting/static/accounting/js/widgets.js @@ -5,6 +5,7 @@ hqDefine('accounting/js/widgets', [ 'underscore', 'hqwebapp/js/utils/email', 'select2/dist/js/select2.full.min', + 'commcarehq_b3', ], function ( $, ko, diff --git a/corehq/apps/accounting/templates/accounting/trigger_accounting_tests.html b/corehq/apps/accounting/templates/accounting/trigger_accounting_tests.html index 30a64420e52b..0cdd13d996f0 100644 --- a/corehq/apps/accounting/templates/accounting/trigger_accounting_tests.html +++ b/corehq/apps/accounting/templates/accounting/trigger_accounting_tests.html @@ -2,7 +2,7 @@ {% load crispy_forms_tags %} {% load hq_shared_tags %} -{% requirejs_main "accounting/js/widgets" %} +{% js_entry_b3 "accounting/js/widgets" %} {% block page_content %} {% crispy trigger_form %} diff --git a/corehq/apps/accounting/templates/accounting/trigger_bookkeeper.html b/corehq/apps/accounting/templates/accounting/trigger_bookkeeper.html index 7772b5dbdc82..d8a1e13122e0 100644 --- a/corehq/apps/accounting/templates/accounting/trigger_bookkeeper.html +++ b/corehq/apps/accounting/templates/accounting/trigger_bookkeeper.html @@ -2,7 +2,7 @@ {% load crispy_forms_tags %} {% load hq_shared_tags %} -{% requirejs_main "accounting/js/widgets" %} +{% js_entry_b3 "accounting/js/widgets" %} {% block page_content %} {% crispy trigger_email_form %} diff --git a/corehq/apps/accounting/templates/accounting/trigger_customer_invoice.html b/corehq/apps/accounting/templates/accounting/trigger_customer_invoice.html index 4ef4f459acc4..5acee69b0985 100644 --- a/corehq/apps/accounting/templates/accounting/trigger_customer_invoice.html +++ b/corehq/apps/accounting/templates/accounting/trigger_customer_invoice.html @@ -2,7 +2,7 @@ {% load crispy_forms_tags %} {% load hq_shared_tags %} -{% requirejs_main "accounting/js/widgets" %} +{% js_entry_b3 "accounting/js/widgets" %} {% block page_content %} {% crispy trigger_customer_form %} diff --git a/corehq/apps/accounting/templates/accounting/trigger_invoice.html b/corehq/apps/accounting/templates/accounting/trigger_invoice.html index 30a64420e52b..0cdd13d996f0 100644 --- a/corehq/apps/accounting/templates/accounting/trigger_invoice.html +++ b/corehq/apps/accounting/templates/accounting/trigger_invoice.html @@ -2,7 +2,7 @@ {% load crispy_forms_tags %} {% load hq_shared_tags %} -{% requirejs_main "accounting/js/widgets" %} +{% js_entry_b3 "accounting/js/widgets" %} {% block page_content %} {% crispy trigger_form %}