killbill-avatax 4.0.1 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b263a4d896c26574d8e7a742168a2c2cfaf924fc539c5c7b9cfbc4df5cd175a5
4
- data.tar.gz: e47a2bdba0ea75e4fce7ae1bb96856359a33d166b42e65f536b38074edb8fe80
3
+ metadata.gz: 3f493b9c2fb5737a4588cf84e614906bf3ad1e447e18d9170c650b6998a5282d
4
+ data.tar.gz: 7f19d8bae83e72861291a3a38e157f615f6ce5982315bcf603447a597df30b25
5
5
  SHA512:
6
- metadata.gz: 43d711845fd63db20cc85895729ffcaa5583eda766c3bf64d0ff88adf2261e5d74271704d2fdbdbe9d79cfe7b06ab43c0af352fea411fa5f4be2dae463f61ca2
7
- data.tar.gz: 31d171adba5dc3909d52b1eb319ab79001e52d79d178ef854b2f5393bbb1cd5ced56db1ec046d719a420fc39d387e22cb5809c7d637a054726c30b6de8c7d256
6
+ metadata.gz: 9ac0ab49600de3219ef377e949e0863cb2bb0f69e61252259798fa7ebbb6d6878c843c245dfb9fb81505e019583c0a411c068ed1752b0de9d32dde42ce6850df
7
+ data.tar.gz: 50c02addbb10d467ab80f4b49e04fa3784242453130cf044a6ff90067705460f1c9f14cdd62091b73c235cb89ace548b280449333fe1ad53388125a206b11454
@@ -1,3 +1,3 @@
1
1
  //= link_tree ../images
2
- //= link_directory ../javascripts .js
3
- //= link_directory ../stylesheets .css
2
+ //= link avatax/avatax.js
3
+ //= link avatax/avatax.css
@@ -99,7 +99,7 @@ module Avatax
99
99
  plugin_config = "org.killbill.billing.plugin.avatax.accountId=#{params.require(:account_id)}
100
100
  org.killbill.billing.plugin.avatax.licenseKey=#{params.require(:license_key)}\n"
101
101
  plugin_config << "org.killbill.billing.plugin.avatax.commitDocuments=#{params[:commit_documents] == '1'}\n"
102
- plugin_config << "org.killbill.billing.plugin.avatax.companyCode=#{params[:company_code]}\n" unless params[:company_code].blank?
102
+ plugin_config << "org.killbill.billing.plugin.avatax.companyCode=#{params[:company_code]}\n" if params[:company_code].present?
103
103
 
104
104
  # Merge the new values with the current config. The config will likely contain additional fields that we don't want to clobber.
105
105
  # The user should really use the more powerful /admin_tenants screen - this plugin screen was just created
@@ -9,75 +9,69 @@
9
9
  <div class="d-flex" style="gap: 4rem;">
10
10
  <%= render template: 'kaui/layouts/kaui_setting_sidebar' %>
11
11
 
12
- <div class="configuration" style="max-width: 80rem;">
13
- <div class="d-flex flex-column">
14
- <div class="configuration-header mb-4">
15
- <div class="d-flex align-items-center">
16
- <h2>Configured products</h2>
12
+ <div class="d-flex flex-column" style="max-width: 80rem; flex: 1; gap: 2rem;">
13
+ <div class="configuration">
14
+ <div class="d-flex flex-column">
15
+ <div class="configuration-header mb-4">
16
+ <div class="d-flex align-items-center">
17
+ <h2>Configured products</h2>
18
+ </div>
19
+ <span>
20
+ <%= link_to set_tax_code_configuration_path do %>
21
+ <%= render "kaui/components/button/button", {
22
+ label: "Add Product",
23
+ icon: "kaui/plus.svg",
24
+ variant: "outline-secondary d-inline-flex align-items-center gap-1",
25
+ type: "button",
26
+ html_class: "kaui-dropdown custom-hover",
27
+ } %>
28
+ <% end %>
29
+ </span>
17
30
  </div>
18
- <span>
19
- <%= link_to set_tax_code_configuration_path do %>
20
- <%= render "kaui/components/button/button", {
21
- label: "Add Product",
22
- icon: "kaui/plus.svg",
23
- variant: "outline-secondary d-inline-flex align-items-center gap-1",
24
- type: "button",
25
- html_class: "kaui-dropdown custom-hover",
26
- } %>
27
- <% end %>
28
- </span>
31
+ <%= render :partial => 'avatax/configuration/products_table', :locals => {:tax_codes => @tax_codes} %>
29
32
  </div>
30
- <%= render :partial => 'avatax/configuration/products_table', :locals => {:tax_codes => @tax_codes} %>
31
33
  </div>
32
- </div>
33
- </div>
34
- </div>
35
34
 
36
- <div class="kaui-container configuration-index">
37
- <div class="d-flex" style="gap: 4rem;">
38
- <div class="configuration" style="max-width: 80rem;">
39
- <div class="d-flex flex-column">
40
- <div class="configuration-header mb-4">
41
- <div class="d-flex align-items-center">
42
- <h2>Exempt accounts</h2>
35
+ <div class="configuration">
36
+ <div class="d-flex flex-column">
37
+ <div class="configuration-header mb-4">
38
+ <div class="d-flex align-items-center">
39
+ <h2>Exempt accounts</h2>
40
+ </div>
41
+ <span>
42
+ <%= link_to set_exemption_configuration_path do %>
43
+ <%= render "kaui/components/button/button", {
44
+ label: "Add Exemption",
45
+ icon: "kaui/plus.svg",
46
+ variant: "outline-secondary d-inline-flex align-items-center gap-1",
47
+ type: "button",
48
+ html_class: "kaui-dropdown custom-hover",
49
+ } %>
50
+ <% end %>
51
+ </span>
43
52
  </div>
44
- <span>
45
- <%= link_to set_exemption_configuration_path do %>
46
- <%= render "kaui/components/button/button", {
47
- label: "Add Exemption",
48
- icon: "kaui/plus.svg",
49
- variant: "outline-secondary d-inline-flex align-items-center gap-1",
50
- type: "button",
51
- html_class: "kaui-dropdown custom-hover",
52
- } %>
53
- <% end %>
54
- </span>
53
+ <%= render :partial => 'avatax/configuration/exemptions_table', :locals => {:exemptions => @exemptions} %>
55
54
  </div>
56
- <%= render :partial => 'avatax/configuration/exemptions_table', :locals => {:exemptions => @exemptions} %>
57
55
  </div>
58
- </div>
59
- </div>
60
- </div>
61
56
 
62
- <div class="kaui-container configuration-index">
63
- <div class="d-flex" style="gap: 4rem;">
64
- <div class="configuration" style="max-width: 80rem;">
65
- <div class="d-flex flex-column">
66
- <div class="configuration-header mb-4">
67
- <div class="d-flex align-items-center">
68
- <h2>Plugin configuration</h2>
57
+ <div class="configuration">
58
+ <div class="d-flex flex-column">
59
+ <div class="configuration-header mb-4">
60
+ <div class="d-flex align-items-center">
61
+ <h2>Plugin configuration</h2>
62
+ </div>
63
+ <span>
64
+ <%= link_to plugin_configuration_path do %>
65
+ <%= render "kaui/components/button/button", {
66
+ label: "Update Plugin Configuration",
67
+ icon: "kaui/plus.svg",
68
+ variant: "outline-secondary d-inline-flex align-items-center gap-1",
69
+ type: "button",
70
+ html_class: "kaui-dropdown custom-hover",
71
+ } %>
72
+ <% end %>
73
+ </span>
69
74
  </div>
70
- <span>
71
- <%= link_to plugin_configuration_path do %>
72
- <%= render "kaui/components/button/button", {
73
- label: "Update Plugin Configuration",
74
- icon: "kaui/plus.svg",
75
- variant: "outline-secondary d-inline-flex align-items-center gap-1",
76
- type: "button",
77
- html_class: "kaui-dropdown custom-hover",
78
- } %>
79
- <% end %>
80
- </span>
81
75
  </div>
82
76
  </div>
83
77
  </div>
data/config/routes.rb CHANGED
@@ -6,15 +6,15 @@ Avatax::Engine.routes.draw do
6
6
  resources :configuration, only: [:index]
7
7
 
8
8
  scope '/configuration' do
9
- match '/tax_code' => 'configuration#set_tax_code', :via => :get, :as => 'set_tax_code_configuration'
10
- match '/tax_code' => 'configuration#do_set_tax_code', :via => :post, :as => 'do_set_tax_code_configuration'
11
- match '/tax_code' => 'configuration#remove_tax_code', :via => :delete, :as => 'remove_tax_code_configuration'
9
+ get '/tax_code' => 'configuration#set_tax_code', :as => 'set_tax_code_configuration'
10
+ post '/tax_code' => 'configuration#do_set_tax_code', :as => 'do_set_tax_code_configuration'
11
+ delete '/tax_code' => 'configuration#remove_tax_code', :as => 'remove_tax_code_configuration'
12
12
 
13
- match '/exemption' => 'configuration#set_exemption', :via => :get, :as => 'set_exemption_configuration'
14
- match '/exemption' => 'configuration#do_set_exemption', :via => :post, :as => 'do_set_exemption_configuration'
15
- match '/exemption' => 'configuration#remove_exemption', :via => :delete, :as => 'remove_exemption_configuration'
13
+ get '/exemption' => 'configuration#set_exemption', :as => 'set_exemption_configuration'
14
+ post '/exemption' => 'configuration#do_set_exemption', :as => 'do_set_exemption_configuration'
15
+ delete '/exemption' => 'configuration#remove_exemption', :as => 'remove_exemption_configuration'
16
16
 
17
- match '/plugin' => 'configuration#plugin_configuration', :via => :get, :as => 'plugin_configuration'
18
- match '/plugin' => 'configuration#update_plugin_configuration', :via => :post, :as => 'update_plugin_configuration'
17
+ get '/plugin' => 'configuration#plugin_configuration', :as => 'plugin_configuration'
18
+ post '/plugin' => 'configuration#update_plugin_configuration', :as => 'update_plugin_configuration'
19
19
  end
20
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avatax
4
- VERSION = '4.0.1'
4
+ VERSION = '4.0.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-avatax
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kill Bill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-11 00:00:00.000000000 Z
11
+ date: 2026-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: killbill-assets-ui
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '7.0'
47
+ version: '7.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '7.0'
54
+ version: '7.2'
55
55
  description: Rails UI plugin for the Avatax plugin.
56
56
  email: killbilling-users@googlegroups.com
57
57
  executables: []
@@ -103,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
104
  - - ">="
105
105
  - !ruby/object:Gem::Version
106
- version: '0'
106
+ version: 3.1.0
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - ">="