summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-12-07 15:27:49 -0800
committerMark Wells <mark@freeside.biz>2016-12-07 15:27:58 -0800
commit7a33cb6e4c3e33b7399d6574cbd3ee38ddcba5e0 (patch)
treeb46feaff7d6c842e2ee3be38d71b684d33d7b7f2 /httemplate/elements
parentecd038f7ae5c1ffc929f3c928ecd161eeb45d9be (diff)
specify Avalara tax product for per-line taxes, #73063
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/tr-part_pkg-taxproducts.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/elements/tr-part_pkg-taxproducts.html b/httemplate/elements/tr-part_pkg-taxproducts.html
index 5dcea09f1..50dace729 100644
--- a/httemplate/elements/tr-part_pkg-taxproducts.html
+++ b/httemplate/elements/tr-part_pkg-taxproducts.html
@@ -54,7 +54,8 @@ my %pkg_options;
if ($pkgpart) {
my $part_pkg = FS::part_pkg->by_key($pkgpart);
%pkg_options = $part_pkg->options;
- $curr_values{''} = $part_pkg->taxproductnum;
+ $curr_values{''} = $cgi->param('taxproductnum')
+ || $part_pkg->taxproductnum;
}
foreach my $usage_class (@classes) {
@@ -66,4 +67,5 @@ foreach my $usage_class (@classes) {
$curr_values{$classnum} = $curr_value;
$separate = 1 if ( length($classnum) and length($curr_value) );
}
+
</%init>