diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-09-06 11:20:50 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-09-06 11:20:50 -0700 |
commit | 0bca43616911f2b48d9a0617e70a3bf0f30b92db (patch) | |
tree | 94e37ed2f90335988feba643307e39127abb3611 | |
parent | 962cf31c328dddb11b3fa6af37ae3c31d4c67e7d (diff) |
warning if product/service code import wasn't run, RT#77163, RT#75262
-rw-r--r-- | httemplate/browse/part_pkg_taxproduct/compliance_solutions.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/httemplate/browse/part_pkg_taxproduct/compliance_solutions.html b/httemplate/browse/part_pkg_taxproduct/compliance_solutions.html index bbcb6877f..b5936daef 100644 --- a/httemplate/browse/part_pkg_taxproduct/compliance_solutions.html +++ b/httemplate/browse/part_pkg_taxproduct/compliance_solutions.html @@ -53,6 +53,9 @@ function category_changed(what) { jopt( $('#product_code'), '', 'Select product code' ); var part_pkg_taxproduct = reply.part_pkg_taxproduct; + if ( part_pkg_taxproduct.length == 0 ) { + alert('No compliance solutions product codes found; did you run freeside-compliance_solutions-import?'); + } for ( var s = 0; s < part_pkg_taxproduct.length; s=s+2 ) { var product_code = part_pkg_taxproduct[s]; var description = part_pkg_taxproduct[s+1]; |