spree_cm_commissioner 2.13.4.pre.pre1 → 2.13.4

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.
Files changed (236) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/app/assets/config/spree_cm_commissioner_manifest.js +0 -1
  4. data/app/assets/javascripts/spree_cm_commissioner/backend.js +0 -8
  5. data/app/assets/stylesheets/spree_cm_commissioner/backend/commissioner_admin.css.scss +0 -1
  6. data/app/controllers/spree/admin/base_controller_decorator.rb +0 -12
  7. data/app/helpers/spree/{billing → admin}/navigation_helper_decorator.rb +2 -9
  8. data/config/routes.rb +0 -113
  9. data/lib/spree_cm_commissioner/version.rb +1 -1
  10. metadata +5 -231
  11. data/app/assets/javascripts/spree_cm_commissioner/address_hide_form.js +0 -17
  12. data/app/assets/javascripts/spree_cm_commissioner/location_checkbox_manager.js +0 -45
  13. data/app/assets/javascripts/spree_cm_commissioner/report_hide_filter.js +0 -37
  14. data/app/assets/javascripts/spree_cm_commissioner/role_form.js +0 -51
  15. data/app/assets/javascripts/spree_cm_commissioner/selected_field_filter_origin_destination.js +0 -37
  16. data/app/assets/javascripts/spree_cm_commissioner/trip_stop_selection.js +0 -41
  17. data/app/assets/javascripts/spree_cm_commissioner/update_popup_confirmation.js +0 -42
  18. data/app/assets/javascripts/spree_cm_commissioner/vehicle_seat.js +0 -291
  19. data/app/assets/stylesheets/spree_cm_commissioner/backend/invoice.scss +0 -92
  20. data/app/assets/stylesheets/spree_cm_commissioner/backend/vehicle_seat.scss +0 -28
  21. data/app/controllers/concerns/spree/billing/order_parents_concern.rb +0 -31
  22. data/app/controllers/concerns/spree/billing/payment_creatable.rb +0 -64
  23. data/app/controllers/concerns/spree/billing/payment_fireable.rb +0 -35
  24. data/app/controllers/concerns/spree_cm_commissioner/billing/role_authorization.rb +0 -53
  25. data/app/controllers/spree/billing/addresses_controller.rb +0 -32
  26. data/app/controllers/spree/billing/adjustments_controller.rb +0 -72
  27. data/app/controllers/spree/billing/base_controller.rb +0 -82
  28. data/app/controllers/spree/billing/businesses_controller.rb +0 -135
  29. data/app/controllers/spree/billing/customers_controller.rb +0 -107
  30. data/app/controllers/spree/billing/errors_controller.rb +0 -14
  31. data/app/controllers/spree/billing/invoice_controller.rb +0 -36
  32. data/app/controllers/spree/billing/option_types_controller.rb +0 -32
  33. data/app/controllers/spree/billing/orders_controller.rb +0 -90
  34. data/app/controllers/spree/billing/payment_qrcodes_controller.rb +0 -14
  35. data/app/controllers/spree/billing/payments_controller.rb +0 -148
  36. data/app/controllers/spree/billing/places_controller.rb +0 -35
  37. data/app/controllers/spree/billing/products_controller.rb +0 -56
  38. data/app/controllers/spree/billing/refunds_controller.rb +0 -9
  39. data/app/controllers/spree/billing/reports_controller.rb +0 -202
  40. data/app/controllers/spree/billing/roles_controller.rb +0 -107
  41. data/app/controllers/spree/billing/store_credits_controller.rb +0 -117
  42. data/app/controllers/spree/billing/subscriptions_controller.rb +0 -49
  43. data/app/controllers/spree/billing/users_controller.rb +0 -19
  44. data/app/controllers/spree/billing/variants_controller.rb +0 -36
  45. data/app/controllers/spree/billing/vendors_controller.rb +0 -83
  46. data/app/controllers/spree/transit/amenities_controller.rb +0 -79
  47. data/app/controllers/spree/transit/amenity_values_controller.rb +0 -16
  48. data/app/controllers/spree/transit/base_controller.rb +0 -53
  49. data/app/controllers/spree/transit/branches_controller.rb +0 -35
  50. data/app/controllers/spree/transit/locations_controller.rb +0 -38
  51. data/app/controllers/spree/transit/places_controller.rb +0 -151
  52. data/app/controllers/spree/transit/reservations_controller.rb +0 -15
  53. data/app/controllers/spree/transit/routes_controller.rb +0 -66
  54. data/app/controllers/spree/transit/service_calendars_controller.rb +0 -109
  55. data/app/controllers/spree/transit/stops_controller.rb +0 -32
  56. data/app/controllers/spree/transit/trip_stops_controller.rb +0 -35
  57. data/app/controllers/spree/transit/trips_controller.rb +0 -90
  58. data/app/controllers/spree/transit/vectors/amenity_values_controller.rb +0 -40
  59. data/app/controllers/spree/transit/vectors/icons_controller.rb +0 -26
  60. data/app/controllers/spree/transit/vehicle_photos_controller.rb +0 -52
  61. data/app/controllers/spree/transit/vehicle_seats_controller.rb +0 -29
  62. data/app/controllers/spree/transit/vehicle_types_controller.rb +0 -81
  63. data/app/controllers/spree/transit/vehicles_controller.rb +0 -54
  64. data/app/controllers/spree/transit/vendors_controller.rb +0 -83
  65. data/app/helpers/spree/billing/sortable_tree_helper.rb +0 -32
  66. data/app/helpers/spree/transit/navigation_helper_decorator.rb +0 -14
  67. data/app/helpers/spree/transit/sortable_tree_helper.rb +0 -32
  68. data/app/helpers/spree_cm_commissioner/billing/monthly_orders_helper.rb +0 -66
  69. data/app/helpers/spree_cm_commissioner/billing/qrcodes_helper.rb +0 -11
  70. data/app/helpers/spree_cm_commissioner/transit/service_calendars_helper.rb +0 -17
  71. data/app/views/spree/billing/addresses/_form.html.erb +0 -38
  72. data/app/views/spree/billing/addresses/index.html.erb +0 -19
  73. data/app/views/spree/billing/adjustments/_adjustment.html.erb +0 -34
  74. data/app/views/spree/billing/adjustments/_adjustments_table.html.erb +0 -32
  75. data/app/views/spree/billing/adjustments/_form.html.erb +0 -12
  76. data/app/views/spree/billing/adjustments/edit.html.erb +0 -13
  77. data/app/views/spree/billing/adjustments/index.html.erb +0 -32
  78. data/app/views/spree/billing/adjustments/new.html.erb +0 -9
  79. data/app/views/spree/billing/businesses/_assets_form.html.erb +0 -8
  80. data/app/views/spree/billing/businesses/_form.html.erb +0 -88
  81. data/app/views/spree/billing/businesses/edit.html.erb +0 -21
  82. data/app/views/spree/billing/businesses/index.html.erb +0 -32
  83. data/app/views/spree/billing/businesses/new.html.erb +0 -16
  84. data/app/views/spree/billing/customers/_form.html.erb +0 -44
  85. data/app/views/spree/billing/customers/edit.html.erb +0 -23
  86. data/app/views/spree/billing/customers/index.html.erb +0 -160
  87. data/app/views/spree/billing/customers/new.html.erb +0 -15
  88. data/app/views/spree/billing/errors/forbidden.html.erb +0 -7
  89. data/app/views/spree/billing/invoice/show.html.erb +0 -21
  90. data/app/views/spree/billing/option_types/_form.html.erb +0 -29
  91. data/app/views/spree/billing/option_types/_option_value_fields.html.erb +0 -13
  92. data/app/views/spree/billing/option_types/edit.html.erb +0 -56
  93. data/app/views/spree/billing/option_types/index.html.erb +0 -50
  94. data/app/views/spree/billing/option_types/new.html.erb +0 -13
  95. data/app/views/spree/billing/orders/_form.html.erb +0 -54
  96. data/app/views/spree/billing/orders/_line_item.html.erb +0 -57
  97. data/app/views/spree/billing/orders/_search.html.erb +0 -62
  98. data/app/views/spree/billing/orders/edit.html.erb +0 -16
  99. data/app/views/spree/billing/orders/index.html.erb +0 -84
  100. data/app/views/spree/billing/orders/show.html.erb +0 -1
  101. data/app/views/spree/billing/payments/_list.html.erb +0 -49
  102. data/app/views/spree/billing/payments/_state_changes.html.erb +0 -33
  103. data/app/views/spree/billing/payments/index.html.erb +0 -35
  104. data/app/views/spree/billing/payments/new.html.erb +0 -24
  105. data/app/views/spree/billing/payments/show.html.erb +0 -15
  106. data/app/views/spree/billing/places/_form.html.erb +0 -16
  107. data/app/views/spree/billing/places/edit.html.erb +0 -12
  108. data/app/views/spree/billing/places/index.html.erb +0 -72
  109. data/app/views/spree/billing/places/new.html.erb +0 -15
  110. data/app/views/spree/billing/products/_add_stock_form.html.erb +0 -40
  111. data/app/views/spree/billing/products/_filters.html.erb +0 -31
  112. data/app/views/spree/billing/products/_form.html.erb +0 -123
  113. data/app/views/spree/billing/products/edit.html.erb +0 -8
  114. data/app/views/spree/billing/products/index.html.erb +0 -72
  115. data/app/views/spree/billing/products/new.html.erb +0 -85
  116. data/app/views/spree/billing/products/stock.html.erb +0 -77
  117. data/app/views/spree/billing/reports/_date_range_picker.html.erb +0 -78
  118. data/app/views/spree/billing/reports/_overview.html.erb +0 -48
  119. data/app/views/spree/billing/reports/active_subscribers.html.erb +0 -97
  120. data/app/views/spree/billing/reports/balance_due.html.erb +0 -188
  121. data/app/views/spree/billing/reports/export.html.erb +0 -70
  122. data/app/views/spree/billing/reports/failed_orders.html.erb +0 -58
  123. data/app/views/spree/billing/reports/index.html.erb +0 -62
  124. data/app/views/spree/billing/reports/overdue.html.erb +0 -61
  125. data/app/views/spree/billing/reports/paid.html.erb +0 -60
  126. data/app/views/spree/billing/roles/_form.html.erb +0 -52
  127. data/app/views/spree/billing/roles/edit.html.erb +0 -13
  128. data/app/views/spree/billing/roles/index.html.erb +0 -44
  129. data/app/views/spree/billing/roles/new.html.erb +0 -13
  130. data/app/views/spree/billing/shared/_customer_credit_form.html.erb +0 -33
  131. data/app/views/spree/billing/shared/_customer_promotion_form.html.erb +0 -29
  132. data/app/views/spree/billing/shared/_customer_promotion_table.html.erb +0 -39
  133. data/app/views/spree/billing/shared/_customer_tabs.html.erb +0 -46
  134. data/app/views/spree/billing/shared/_header.html.erb +0 -21
  135. data/app/views/spree/billing/shared/_invoice.html.erb +0 -280
  136. data/app/views/spree/billing/shared/_language_switcher.html.erb +0 -5
  137. data/app/views/spree/billing/shared/_main_menu.html.erb +0 -73
  138. data/app/views/spree/billing/shared/_order_tabs.html.erb +0 -41
  139. data/app/views/spree/billing/shared/_pop_up_confirmation.html.erb +0 -103
  140. data/app/views/spree/billing/shared/_product_tabs.html.erb +0 -24
  141. data/app/views/spree/billing/shared/_role_tabs.html.erb +0 -13
  142. data/app/views/spree/billing/shared/_subscription_tabs.html.erb +0 -20
  143. data/app/views/spree/billing/shared/_user_tabs.html.erb +0 -13
  144. data/app/views/spree/billing/shared/_vendor_logo.html.erb +0 -1
  145. data/app/views/spree/billing/shared/_vendor_switcher.html.erb +0 -57
  146. data/app/views/spree/billing/shared/sortable_tree/_taxonomy.html.erb +0 -29
  147. data/app/views/spree/billing/shared/sub_menu/_product.html.erb +0 -8
  148. data/app/views/spree/billing/shared/sub_menu/_report.html.erb +0 -23
  149. data/app/views/spree/billing/shared/sub_menu/_setting.html.erb +0 -11
  150. data/app/views/spree/billing/store_credits/_form.html.erb +0 -11
  151. data/app/views/spree/billing/store_credits/index.html.erb +0 -44
  152. data/app/views/spree/billing/store_credits/new.html.erb +0 -17
  153. data/app/views/spree/billing/subscriptions/_form.html.erb +0 -27
  154. data/app/views/spree/billing/subscriptions/_subscribed_variants_table.html.erb +0 -24
  155. data/app/views/spree/billing/subscriptions/edit.html.erb +0 -12
  156. data/app/views/spree/billing/subscriptions/index.html.erb +0 -86
  157. data/app/views/spree/billing/subscriptions/new.html.erb +0 -21
  158. data/app/views/spree/billing/users/_form.html.erb +0 -64
  159. data/app/views/spree/billing/users/edit.html.erb +0 -25
  160. data/app/views/spree/billing/users/index.html.erb +0 -116
  161. data/app/views/spree/billing/users/new.html.erb +0 -17
  162. data/app/views/spree/billing/variants/_form.html.erb +0 -28
  163. data/app/views/spree/billing/variants/edit.html.erb +0 -15
  164. data/app/views/spree/billing/variants/index.html.erb +0 -66
  165. data/app/views/spree/billing/variants/new.html.erb +0 -15
  166. data/app/views/spree/billing/vendors/_form.html.erb +0 -75
  167. data/app/views/spree/billing/vendors/edit.html.erb +0 -9
  168. data/app/views/spree/layouts/billing.html.erb +0 -74
  169. data/app/views/spree/layouts/transit.html.erb +0 -74
  170. data/app/views/spree/transit/amenities/_form.html.erb +0 -50
  171. data/app/views/spree/transit/amenities/_option_value_fields.html.erb +0 -15
  172. data/app/views/spree/transit/amenities/edit.html.erb +0 -53
  173. data/app/views/spree/transit/branches/_filter_form.erb +0 -23
  174. data/app/views/spree/transit/branches/_form.html.erb +0 -36
  175. data/app/views/spree/transit/branches/edit.html.erb +0 -15
  176. data/app/views/spree/transit/branches/index.html.erb +0 -43
  177. data/app/views/spree/transit/branches/new.html.erb +0 -19
  178. data/app/views/spree/transit/locations/_filter_form.erb +0 -30
  179. data/app/views/spree/transit/locations/_form.html.erb +0 -19
  180. data/app/views/spree/transit/locations/edit.html.erb +0 -15
  181. data/app/views/spree/transit/locations/index.html.erb +0 -49
  182. data/app/views/spree/transit/locations/new.html.erb +0 -17
  183. data/app/views/spree/transit/places/_assets_form.html.erb +0 -8
  184. data/app/views/spree/transit/places/_form.html.erb +0 -128
  185. data/app/views/spree/transit/places/edit.html.erb +0 -21
  186. data/app/views/spree/transit/places/index.html.erb +0 -32
  187. data/app/views/spree/transit/places/new.html.erb +0 -16
  188. data/app/views/spree/transit/reservations/index.html.erb +0 -5
  189. data/app/views/spree/transit/routes/_filter_form.erb +0 -24
  190. data/app/views/spree/transit/routes/_form.html.erb +0 -74
  191. data/app/views/spree/transit/routes/edit.html.erb +0 -13
  192. data/app/views/spree/transit/routes/index.html.erb +0 -79
  193. data/app/views/spree/transit/routes/new.html.erb +0 -18
  194. data/app/views/spree/transit/service_calendars/_exception_rules.html.erb +0 -44
  195. data/app/views/spree/transit/service_calendars/_filters.html.erb +0 -17
  196. data/app/views/spree/transit/service_calendars/_form.html.erb +0 -107
  197. data/app/views/spree/transit/service_calendars/index.html.erb +0 -77
  198. data/app/views/spree/transit/service_calendars/new.html.erb +0 -13
  199. data/app/views/spree/transit/shared/_amenity_tabs.html.erb +0 -21
  200. data/app/views/spree/transit/shared/_header.html.erb +0 -20
  201. data/app/views/spree/transit/shared/_main_menu.html.erb +0 -34
  202. data/app/views/spree/transit/shared/_route_tabs.html.erb +0 -25
  203. data/app/views/spree/transit/shared/_vehicle_tabs.html.erb +0 -15
  204. data/app/views/spree/transit/shared/_vendor_switcher.html.erb +0 -40
  205. data/app/views/spree/transit/shared/sortable_tree/_taxonomy.html.erb +0 -29
  206. data/app/views/spree/transit/shared/sub_menu/_setting.html.erb +0 -3
  207. data/app/views/spree/transit/stops/_filters.html.erb +0 -33
  208. data/app/views/spree/transit/stops/_form.html.erb +0 -68
  209. data/app/views/spree/transit/stops/edit.html.erb +0 -16
  210. data/app/views/spree/transit/stops/index.html.erb +0 -58
  211. data/app/views/spree/transit/stops/new.html.erb +0 -16
  212. data/app/views/spree/transit/trip_stops/index.html.erb +0 -38
  213. data/app/views/spree/transit/trips/_form.html.erb +0 -82
  214. data/app/views/spree/transit/trips/edit.html.erb +0 -15
  215. data/app/views/spree/transit/trips/new.html.erb +0 -15
  216. data/app/views/spree/transit/vectors/amenity_values/index.html.erb +0 -111
  217. data/app/views/spree/transit/vehicle_photos/_form.html.erb +0 -22
  218. data/app/views/spree/transit/vehicle_photos/edit.html.erb +0 -9
  219. data/app/views/spree/transit/vehicle_photos/index.html.erb +0 -61
  220. data/app/views/spree/transit/vehicle_photos/new.html.erb +0 -9
  221. data/app/views/spree/transit/vehicle_seats/_form.html.erb +0 -48
  222. data/app/views/spree/transit/vehicle_seats/_seats.html.erb +0 -63
  223. data/app/views/spree/transit/vehicle_types/_filter_form.html.erb +0 -29
  224. data/app/views/spree/transit/vehicle_types/_form.html.erb +0 -65
  225. data/app/views/spree/transit/vehicle_types/_seat_view.erb +0 -83
  226. data/app/views/spree/transit/vehicle_types/edit.html.erb +0 -93
  227. data/app/views/spree/transit/vehicle_types/index.html.erb +0 -94
  228. data/app/views/spree/transit/vehicle_types/new.html.erb +0 -14
  229. data/app/views/spree/transit/vehicles/_filter_form.html.erb +0 -23
  230. data/app/views/spree/transit/vehicles/_form.html.erb +0 -19
  231. data/app/views/spree/transit/vehicles/edit.html.erb +0 -19
  232. data/app/views/spree/transit/vehicles/index.html.erb +0 -57
  233. data/app/views/spree/transit/vehicles/new.html.erb +0 -19
  234. data/app/views/spree/transit/vendors/_form.html.erb +0 -34
  235. data/app/views/spree/transit/vendors/_tabs.html.erb +0 -16
  236. data/app/views/spree/transit/vendors/edit.html.erb +0 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 046dd1ce98770679145a8be935a9effb826b78c3e5ca63a1fa192f63da587687
4
- data.tar.gz: 5fcbc34dea16ab68471e12f627cdb8eef28c3fe93d92d071b0dee39e032fad6a
3
+ metadata.gz: 565fc705e24c32c2f3bd35aad88607d80d7f26b1bab3ff62dc64e2890202ed9a
4
+ data.tar.gz: b6647ca2838265f710f999389157765f24ba1baf92369521aab95a711779a0d9
5
5
  SHA512:
6
- metadata.gz: e312bbb74e20d80b384b980ef0e1c13926946ffd6f1a7c9cdeec0a6ce32f68e254e9b033a4e256d18db5856b9bdba1ce33a93465b8feaf8d987f88af611202d9
7
- data.tar.gz: 1a80c7bc586ccd24e77370692626d3da1d3c4418e04da0ec95e156f8c52f91121e17796265ef1aba2ac18579d70e734356609b1ff77e4ecf6b9871e4a04e5259
6
+ metadata.gz: 36a8d1f75f387fb33ab1d394ee91e61ce6c1179bbf2323352f1d56e3bbb303942d57af72933910e8017f184dcf0a24174a12f70ec4a69e42309cbec47fe9cdd7
7
+ data.tar.gz: d7dc21e3383b9784c9b0cef12c354f4a3d4d3535fe122b666b8abdd3b4e4fea4660f321ada830e83fdb409ebd8d2d91ed9fa6295b1801371d803475334431860
data/Gemfile.lock CHANGED
@@ -34,7 +34,7 @@ GIT
34
34
  PATH
35
35
  remote: .
36
36
  specs:
37
- spree_cm_commissioner (2.13.4.pre.pre1)
37
+ spree_cm_commissioner (2.13.4)
38
38
  activerecord-multi-tenant
39
39
  activerecord_json_validator (~> 2.1, >= 2.1.3)
40
40
  aws-sdk-cloudfront
@@ -1,5 +1,4 @@
1
1
  //= link_tree ../images
2
- //= link spree_cm_commissioner/backend/invoice.css
3
2
 
4
3
  //= link spree_cm_commissioner/telegram/all.js
5
4
  //= link spree_cm_commissioner/telegram/all.css
@@ -2,14 +2,6 @@
2
2
  //= require map/map-picker
3
3
  //= require spree_cm_commissioner/routes
4
4
  //= require spree_cm_commissioner/calendar
5
- //= require spree_cm_commissioner/role_form
6
- //= require spree_cm_commissioner/address_hide_form
7
5
  //= require spree_cm_commissioner/annual_calendar_form
8
- //= require spree_cm_commissioner/report_hide_filter
9
- //= require spree_cm_commissioner/update_popup_confirmation
10
- //= require spree_cm_commissioner/vehicle_seat
11
- //= require spree_cm_commissioner/selected_field_filter_origin_destination
12
- //= require spree_cm_commissioner/location_checkbox_manager
13
- //= require spree_cm_commissioner/trip_stop_selection
14
6
  //= require spree_cm_commissioner/tenant_payment_icon_fields
15
7
  //= require spree_cm_commissioner/copy_to_clipboard
@@ -2,5 +2,4 @@
2
2
  @import "spree_cm_commissioner/backend/calendar";
3
3
  @import "spree_cm_commissioner/backend/service_calendar";
4
4
  @import "spree_cm_commissioner/backend/guest_qr_code";
5
- @import "spree_cm_commissioner/backend/vehicle_seat";
6
5
  @import "spree_cm_commissioner/backend/tenant_payment_icon_fields";
@@ -1,10 +1,6 @@
1
1
  module Spree
2
2
  module Admin
3
3
  module BaseControllerDecorator
4
- def self.prepended(base)
5
- base.before_action :redirect_to_billing, if: -> { Spree::Store.default.code.include?('billing') }
6
- end
7
-
8
4
  # even db in read only mode, authorizor still need to run Warden callbacks which will write to db
9
5
  # this include update tracked fields such as sign_in_count, last_sign_in_at, etc.
10
6
  def authorize!(*args)
@@ -44,14 +40,6 @@ module Spree
44
40
 
45
41
  redirect_back fallback_location: admin_root_path
46
42
  end
47
-
48
- private
49
-
50
- def redirect_to_billing
51
- return if request.path.include?('/billing')
52
-
53
- redirect_to billing_root_url unless spree_current_user.super_admin?
54
- end
55
43
  end
56
44
  end
57
45
  end
@@ -1,13 +1,6 @@
1
1
  module Spree
2
- module Billing
2
+ module Admin
3
3
  module NavigationHelperDecorator
4
- def billing_main_menu_tree(text, icon: nil, sub_menu: nil, url: '#')
5
- content_tag :li, class: 'sidebar-menu-item d-block w-100 text-muted' do
6
- main_menu_item(text, url: url, icon: icon) +
7
- render(partial: "spree/billing/shared/sub_menu/#{sub_menu}")
8
- end
9
- end
10
-
11
4
  def customer_per_page_dropdown
12
5
  per_page_default = Spree::Backend::Config.admin_orders_per_page
13
6
  per_page_options = %w[24 48 120 200 400 600]
@@ -23,4 +16,4 @@ module Spree
23
16
  end
24
17
  end
25
18
 
26
- Spree::Admin::NavigationHelper.prepend(Spree::Billing::NavigationHelperDecorator)
19
+ Spree::Admin::NavigationHelper.prepend(Spree::Admin::NavigationHelperDecorator)
data/config/routes.rb CHANGED
@@ -437,119 +437,6 @@ Spree::Core::Engine.add_routes do
437
437
  get '/resource_not_found', to: 'errors#resource_not_found'
438
438
  end
439
439
 
440
- scope '(:locale)', locale: /#{I18n.available_locales.join('|')}/ do
441
- namespace :billing do
442
- resources :reports do
443
- collection do
444
- get :failed_orders
445
- get :paid
446
- get :balance_due
447
- get :overdue
448
- get :active_subscribers
449
- get :export
450
- put :print_all_invoices
451
- get :export_orders
452
- end
453
- end
454
- resources :vendors do
455
- resource :payment_qrcodes, only: %i[destroy]
456
- end
457
- resources :customers do
458
- post 're_create_order', to: 'customers#re_create_order'
459
- post 'apply_promotion', to: 'customers#apply_promotion'
460
- delete 'delete_promotion', to: 'customers#delete_promotion'
461
- resources :orders
462
- resources :subscriptions
463
- resources :addresses
464
- resources :store_credits
465
- end
466
- resources :roles
467
- resources :users do
468
- resource :account_deletions, only: [:destroy]
469
- end
470
- resources :products do
471
- member do
472
- get :stock
473
- end
474
- resources :variants do
475
- collection do
476
- post :update_positions
477
- end
478
- end
479
- resources :refunds, only: %i[new create edit update]
480
- end
481
- resources :variants do
482
- collection do
483
- post :update_positions
484
- end
485
-
486
- resources :variants_including_master, only: [:update]
487
- end
488
- resources :orders do
489
- resource :invoice, only: %i[show create], controller: :invoice do
490
- collection do
491
- put :print_invoice_date
492
- end
493
- end
494
- resources :payments do
495
- resources :refunds, only: %i[new create edit update]
496
- end
497
- resources :adjustments
498
- end
499
- resources :places
500
- put '/switch_vendor', to: 'base#switch_vendor'
501
- get '/forbidden', to: 'errors#forbidden', as: :forbidden
502
- root to: redirect('/billing/reports')
503
- resources :businesses
504
- resources :option_types do
505
- collection do
506
- post :update_positions
507
- post :update_values_positions
508
- end
509
- end
510
- end
511
- end
512
-
513
- namespace :transit do
514
- namespace :vectors do
515
- resources :icons, only: [:index]
516
- resources :amenity_values, only: %i[index update] do
517
- collection do
518
- post :update
519
- end
520
- end
521
- end
522
-
523
- resources :reservations
524
- resources :locations
525
- resources :branches
526
- resources :stops
527
- resources :routes do
528
- resources :trips do
529
- resources :trip_stops do
530
- post :update_sequences, on: :collection
531
- end
532
- end
533
- end
534
- resources :places
535
- resource :amenity, only: %i[new create edit update]
536
- post '/amenity/update_positions'
537
- post '/amenity/update_values_positions'
538
- resources :vehicle_types do
539
- resources :vehicle_seats
540
- end
541
- resources :vehicles do
542
- resources :vehicle_photos do
543
- collection do
544
- post :update_positions
545
- end
546
- end
547
- end
548
- root to: redirect('/transit/reservations')
549
- post '/vehicle_types/vehicle_seats/load_seat', to: 'vehicle_seats#load_seat'
550
- post '/vehicle_types/layer', to: 'vehicle_types#layer'
551
- end
552
-
553
440
  namespace :api, defaults: { format: 'json' } do
554
441
  namespace :v2 do
555
442
  namespace :platform do
@@ -1,5 +1,5 @@
1
1
  module SpreeCmCommissioner
2
- VERSION = '2.13.4-pre1'.freeze
2
+ VERSION = '2.13.4'.freeze
3
3
 
4
4
  module_function
5
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_cm_commissioner
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.4.pre.pre1
4
+ version: 2.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - You
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-06 00:00:00.000000000 Z
11
+ date: 2026-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree
@@ -788,30 +788,20 @@ files:
788
788
  - app/assets/images/payment_methods/cm-payment-we-chat.svg
789
789
  - app/assets/images/payment_methods/cm-payment-webmoney.svg
790
790
  - app/assets/images/payment_methods/cm-payment-yandex.svg
791
- - app/assets/javascripts/spree_cm_commissioner/address_hide_form.js
792
791
  - app/assets/javascripts/spree_cm_commissioner/annual_calendar_form.js
793
792
  - app/assets/javascripts/spree_cm_commissioner/backend.js
794
793
  - app/assets/javascripts/spree_cm_commissioner/calendar.js
795
794
  - app/assets/javascripts/spree_cm_commissioner/copy_to_clipboard.js
796
- - app/assets/javascripts/spree_cm_commissioner/location_checkbox_manager.js
797
- - app/assets/javascripts/spree_cm_commissioner/report_hide_filter.js
798
- - app/assets/javascripts/spree_cm_commissioner/role_form.js
799
795
  - app/assets/javascripts/spree_cm_commissioner/routes.js
800
- - app/assets/javascripts/spree_cm_commissioner/selected_field_filter_origin_destination.js
801
796
  - app/assets/javascripts/spree_cm_commissioner/telegram.js
802
797
  - app/assets/javascripts/spree_cm_commissioner/telegram/order_confirmation.js
803
798
  - app/assets/javascripts/spree_cm_commissioner/tenant_payment_icon_fields.js
804
- - app/assets/javascripts/spree_cm_commissioner/trip_stop_selection.js
805
- - app/assets/javascripts/spree_cm_commissioner/update_popup_confirmation.js
806
- - app/assets/javascripts/spree_cm_commissioner/vehicle_seat.js
807
799
  - app/assets/stylesheets/spree_cm_commissioner/backend.css
808
800
  - app/assets/stylesheets/spree_cm_commissioner/backend/calendar.scss
809
801
  - app/assets/stylesheets/spree_cm_commissioner/backend/commissioner_admin.css.scss
810
802
  - app/assets/stylesheets/spree_cm_commissioner/backend/guest_qr_code.scss
811
- - app/assets/stylesheets/spree_cm_commissioner/backend/invoice.scss
812
803
  - app/assets/stylesheets/spree_cm_commissioner/backend/service_calendar.scss
813
804
  - app/assets/stylesheets/spree_cm_commissioner/backend/tenant_payment_icon_fields.scss
814
- - app/assets/stylesheets/spree_cm_commissioner/backend/vehicle_seat.scss
815
805
  - app/assets/stylesheets/spree_cm_commissioner/telegram.css
816
806
  - app/assets/stylesheets/spree_cm_commissioner/telegram/telegram_bot.css.scss
817
807
  - app/assets/stylesheets/spree_cm_commissioner/vehicle_seat.css
@@ -820,12 +810,8 @@ files:
820
810
  - app/controllers/blazer/queries_controller_decorator.rb
821
811
  - app/controllers/concerns/spree/admin/service_calendars_concern.rb
822
812
  - app/controllers/concerns/spree/api/v2/product_list_includes_decorator.rb
823
- - app/controllers/concerns/spree/billing/order_parents_concern.rb
824
- - app/controllers/concerns/spree/billing/payment_creatable.rb
825
- - app/controllers/concerns/spree/billing/payment_fireable.rb
826
813
  - app/controllers/concerns/spree_cm_commissioner/adaptive_turnstile.rb
827
814
  - app/controllers/concerns/spree_cm_commissioner/anonymous_booking_guard.rb
828
- - app/controllers/concerns/spree_cm_commissioner/billing/role_authorization.rb
829
815
  - app/controllers/concerns/spree_cm_commissioner/content_cachable.rb
830
816
  - app/controllers/concerns/spree_cm_commissioner/exception_notificable.rb
831
817
  - app/controllers/concerns/spree_cm_commissioner/load_test_account_management.rb
@@ -1133,49 +1119,9 @@ files:
1133
1119
  - app/controllers/spree/api/webhook/media_convert_queues_controller.rb
1134
1120
  - app/controllers/spree/api/webhook/orders_controller.rb
1135
1121
  - app/controllers/spree/api/webhook/telegram_bots_controller.rb
1136
- - app/controllers/spree/billing/addresses_controller.rb
1137
- - app/controllers/spree/billing/adjustments_controller.rb
1138
- - app/controllers/spree/billing/base_controller.rb
1139
- - app/controllers/spree/billing/businesses_controller.rb
1140
- - app/controllers/spree/billing/customers_controller.rb
1141
- - app/controllers/spree/billing/errors_controller.rb
1142
- - app/controllers/spree/billing/invoice_controller.rb
1143
- - app/controllers/spree/billing/option_types_controller.rb
1144
- - app/controllers/spree/billing/orders_controller.rb
1145
- - app/controllers/spree/billing/payment_qrcodes_controller.rb
1146
- - app/controllers/spree/billing/payments_controller.rb
1147
- - app/controllers/spree/billing/places_controller.rb
1148
- - app/controllers/spree/billing/products_controller.rb
1149
- - app/controllers/spree/billing/refunds_controller.rb
1150
- - app/controllers/spree/billing/reports_controller.rb
1151
- - app/controllers/spree/billing/roles_controller.rb
1152
- - app/controllers/spree/billing/store_credits_controller.rb
1153
- - app/controllers/spree/billing/subscriptions_controller.rb
1154
- - app/controllers/spree/billing/users_controller.rb
1155
- - app/controllers/spree/billing/variants_controller.rb
1156
- - app/controllers/spree/billing/vendors_controller.rb
1157
1122
  - app/controllers/spree/telegram/base_controller.rb
1158
1123
  - app/controllers/spree/telegram/errors_controller.rb
1159
1124
  - app/controllers/spree/telegram/orders_controller.rb
1160
- - app/controllers/spree/transit/amenities_controller.rb
1161
- - app/controllers/spree/transit/amenity_values_controller.rb
1162
- - app/controllers/spree/transit/base_controller.rb
1163
- - app/controllers/spree/transit/branches_controller.rb
1164
- - app/controllers/spree/transit/locations_controller.rb
1165
- - app/controllers/spree/transit/places_controller.rb
1166
- - app/controllers/spree/transit/reservations_controller.rb
1167
- - app/controllers/spree/transit/routes_controller.rb
1168
- - app/controllers/spree/transit/service_calendars_controller.rb
1169
- - app/controllers/spree/transit/stops_controller.rb
1170
- - app/controllers/spree/transit/trip_stops_controller.rb
1171
- - app/controllers/spree/transit/trips_controller.rb
1172
- - app/controllers/spree/transit/vectors/amenity_values_controller.rb
1173
- - app/controllers/spree/transit/vectors/icons_controller.rb
1174
- - app/controllers/spree/transit/vehicle_photos_controller.rb
1175
- - app/controllers/spree/transit/vehicle_seats_controller.rb
1176
- - app/controllers/spree/transit/vehicle_types_controller.rb
1177
- - app/controllers/spree/transit/vehicles_controller.rb
1178
- - app/controllers/spree/transit/vendors_controller.rb
1179
1125
  - app/controllers/spree_cm_commissioner/action_controller/api_decorator.rb
1180
1126
  - app/controllers/spree_cm_commissioner/admin/adjustments_controller_decorator.rb
1181
1127
  - app/controllers/spree_cm_commissioner/admin/dashboard_controller_decorator.rb
@@ -1233,13 +1179,10 @@ files:
1233
1179
  - app/helpers/spree/admin/base_helper_decorator.rb
1234
1180
  - app/helpers/spree/admin/customer_notifications_helper.rb
1235
1181
  - app/helpers/spree/admin/google_wallets_helper.rb
1182
+ - app/helpers/spree/admin/navigation_helper_decorator.rb
1236
1183
  - app/helpers/spree/admin/system/waiting_room_sessions_helper.rb
1237
1184
  - app/helpers/spree/base_helper_decorator.rb
1238
- - app/helpers/spree/billing/navigation_helper_decorator.rb
1239
- - app/helpers/spree/billing/sortable_tree_helper.rb
1240
1185
  - app/helpers/spree/mail_helper_decorator.rb
1241
- - app/helpers/spree/transit/navigation_helper_decorator.rb
1242
- - app/helpers/spree/transit/sortable_tree_helper.rb
1243
1186
  - app/helpers/spree_cm_commissioner/admin/guest_helper.rb
1244
1187
  - app/helpers/spree_cm_commissioner/admin/homepage_segment_helper.rb
1245
1188
  - app/helpers/spree_cm_commissioner/admin/inventory_locks_helper.rb
@@ -1247,13 +1190,10 @@ files:
1247
1190
  - app/helpers/spree_cm_commissioner/admin/service_calendars_helper.rb
1248
1191
  - app/helpers/spree_cm_commissioner/admin/ticket_transfers_helper.rb
1249
1192
  - app/helpers/spree_cm_commissioner/admin/video_on_demand_helper.rb
1250
- - app/helpers/spree_cm_commissioner/billing/monthly_orders_helper.rb
1251
- - app/helpers/spree_cm_commissioner/billing/qrcodes_helper.rb
1252
1193
  - app/helpers/spree_cm_commissioner/external_integrations_helper.rb
1253
1194
  - app/helpers/spree_cm_commissioner/pin_code_sender_helper.rb
1254
1195
  - app/helpers/spree_cm_commissioner/telegram/base_helper.rb
1255
1196
  - app/helpers/spree_cm_commissioner/transit/order_query_helper.rb
1256
- - app/helpers/spree_cm_commissioner/transit/service_calendars_helper.rb
1257
1197
  - app/helpers/spree_cm_commissioner/transit/trip_helper.rb
1258
1198
  - app/interactors/spree_cm_commissioner/accommodation_search_detail.rb
1259
1199
  - app/interactors/spree_cm_commissioner/account_deletion.rb
@@ -2835,107 +2775,8 @@ files:
2835
2775
  - app/views/spree/admin/webhooks_subscriber_rules/_order_vendors.html.erb
2836
2776
  - app/views/spree/admin/webhooks_subscriber_rules/edit.html.erb
2837
2777
  - app/views/spree/admin/webhooks_subscriber_rules/new.html.erb
2838
- - app/views/spree/billing/addresses/_form.html.erb
2839
- - app/views/spree/billing/addresses/index.html.erb
2840
- - app/views/spree/billing/adjustments/_adjustment.html.erb
2841
- - app/views/spree/billing/adjustments/_adjustments_table.html.erb
2842
- - app/views/spree/billing/adjustments/_form.html.erb
2843
- - app/views/spree/billing/adjustments/edit.html.erb
2844
- - app/views/spree/billing/adjustments/index.html.erb
2845
- - app/views/spree/billing/adjustments/new.html.erb
2846
- - app/views/spree/billing/businesses/_assets_form.html.erb
2847
- - app/views/spree/billing/businesses/_form.html.erb
2848
- - app/views/spree/billing/businesses/edit.html.erb
2849
- - app/views/spree/billing/businesses/index.html.erb
2850
- - app/views/spree/billing/businesses/new.html.erb
2851
- - app/views/spree/billing/customers/_form.html.erb
2852
- - app/views/spree/billing/customers/edit.html.erb
2853
- - app/views/spree/billing/customers/index.html.erb
2854
- - app/views/spree/billing/customers/new.html.erb
2855
- - app/views/spree/billing/errors/forbidden.html.erb
2856
- - app/views/spree/billing/invoice/show.html.erb
2857
- - app/views/spree/billing/option_types/_form.html.erb
2858
- - app/views/spree/billing/option_types/_option_value_fields.html.erb
2859
- - app/views/spree/billing/option_types/edit.html.erb
2860
- - app/views/spree/billing/option_types/index.html.erb
2861
- - app/views/spree/billing/option_types/new.html.erb
2862
- - app/views/spree/billing/orders/_form.html.erb
2863
- - app/views/spree/billing/orders/_line_item.html.erb
2864
- - app/views/spree/billing/orders/_search.html.erb
2865
- - app/views/spree/billing/orders/edit.html.erb
2866
- - app/views/spree/billing/orders/index.html.erb
2867
- - app/views/spree/billing/orders/show.html.erb
2868
- - app/views/spree/billing/payments/_list.html.erb
2869
- - app/views/spree/billing/payments/_state_changes.html.erb
2870
- - app/views/spree/billing/payments/index.html.erb
2871
- - app/views/spree/billing/payments/new.html.erb
2872
- - app/views/spree/billing/payments/show.html.erb
2873
- - app/views/spree/billing/places/_form.html.erb
2874
- - app/views/spree/billing/places/edit.html.erb
2875
- - app/views/spree/billing/places/index.html.erb
2876
- - app/views/spree/billing/places/new.html.erb
2877
- - app/views/spree/billing/products/_add_stock_form.html.erb
2878
- - app/views/spree/billing/products/_filters.html.erb
2879
- - app/views/spree/billing/products/_form.html.erb
2880
- - app/views/spree/billing/products/edit.html.erb
2881
- - app/views/spree/billing/products/index.html.erb
2882
- - app/views/spree/billing/products/new.html.erb
2883
- - app/views/spree/billing/products/stock.html.erb
2884
- - app/views/spree/billing/reports/_date_range_picker.html.erb
2885
- - app/views/spree/billing/reports/_overview.html.erb
2886
- - app/views/spree/billing/reports/active_subscribers.html.erb
2887
- - app/views/spree/billing/reports/balance_due.html.erb
2888
- - app/views/spree/billing/reports/export.html.erb
2889
- - app/views/spree/billing/reports/failed_orders.html.erb
2890
- - app/views/spree/billing/reports/index.html.erb
2891
- - app/views/spree/billing/reports/overdue.html.erb
2892
- - app/views/spree/billing/reports/paid.html.erb
2893
- - app/views/spree/billing/roles/_form.html.erb
2894
- - app/views/spree/billing/roles/edit.html.erb
2895
- - app/views/spree/billing/roles/index.html.erb
2896
- - app/views/spree/billing/roles/new.html.erb
2897
- - app/views/spree/billing/shared/_customer_credit_form.html.erb
2898
- - app/views/spree/billing/shared/_customer_promotion_form.html.erb
2899
- - app/views/spree/billing/shared/_customer_promotion_table.html.erb
2900
- - app/views/spree/billing/shared/_customer_tabs.html.erb
2901
- - app/views/spree/billing/shared/_header.html.erb
2902
- - app/views/spree/billing/shared/_invoice.html.erb
2903
- - app/views/spree/billing/shared/_language_switcher.html.erb
2904
- - app/views/spree/billing/shared/_main_menu.html.erb
2905
- - app/views/spree/billing/shared/_order_tabs.html.erb
2906
- - app/views/spree/billing/shared/_pop_up_confirmation.html.erb
2907
- - app/views/spree/billing/shared/_product_tabs.html.erb
2908
- - app/views/spree/billing/shared/_role_tabs.html.erb
2909
- - app/views/spree/billing/shared/_subscription_tabs.html.erb
2910
- - app/views/spree/billing/shared/_user_tabs.html.erb
2911
- - app/views/spree/billing/shared/_vendor_logo.html.erb
2912
- - app/views/spree/billing/shared/_vendor_switcher.html.erb
2913
- - app/views/spree/billing/shared/sortable_tree/_taxonomy.html.erb
2914
- - app/views/spree/billing/shared/sub_menu/_product.html.erb
2915
- - app/views/spree/billing/shared/sub_menu/_report.html.erb
2916
- - app/views/spree/billing/shared/sub_menu/_setting.html.erb
2917
- - app/views/spree/billing/store_credits/_form.html.erb
2918
- - app/views/spree/billing/store_credits/index.html.erb
2919
- - app/views/spree/billing/store_credits/new.html.erb
2920
- - app/views/spree/billing/subscriptions/_form.html.erb
2921
- - app/views/spree/billing/subscriptions/_subscribed_variants_table.html.erb
2922
- - app/views/spree/billing/subscriptions/edit.html.erb
2923
- - app/views/spree/billing/subscriptions/index.html.erb
2924
- - app/views/spree/billing/subscriptions/new.html.erb
2925
- - app/views/spree/billing/users/_form.html.erb
2926
- - app/views/spree/billing/users/edit.html.erb
2927
- - app/views/spree/billing/users/index.html.erb
2928
- - app/views/spree/billing/users/new.html.erb
2929
- - app/views/spree/billing/variants/_form.html.erb
2930
- - app/views/spree/billing/variants/edit.html.erb
2931
- - app/views/spree/billing/variants/index.html.erb
2932
- - app/views/spree/billing/variants/new.html.erb
2933
- - app/views/spree/billing/vendors/_form.html.erb
2934
- - app/views/spree/billing/vendors/edit.html.erb
2935
- - app/views/spree/layouts/billing.html.erb
2936
2778
  - app/views/spree/layouts/error_template.html.erb
2937
2779
  - app/views/spree/layouts/event.html.erb
2938
- - app/views/spree/layouts/transit.html.erb
2939
2780
  - app/views/spree/order_mailer/_adjustment.html.erb
2940
2781
  - app/views/spree/order_mailer/cancel_email.html.erb
2941
2782
  - app/views/spree/order_mailer/confirm_email.html.erb
@@ -2949,73 +2790,6 @@ files:
2949
2790
  - app/views/spree/telegram/orders/_order_confirmation_script.html.erb
2950
2791
  - app/views/spree/telegram/orders/_order_summary.html.erb
2951
2792
  - app/views/spree/telegram/orders/show.html.erb
2952
- - app/views/spree/transit/amenities/_form.html.erb
2953
- - app/views/spree/transit/amenities/_option_value_fields.html.erb
2954
- - app/views/spree/transit/amenities/edit.html.erb
2955
- - app/views/spree/transit/branches/_filter_form.erb
2956
- - app/views/spree/transit/branches/_form.html.erb
2957
- - app/views/spree/transit/branches/edit.html.erb
2958
- - app/views/spree/transit/branches/index.html.erb
2959
- - app/views/spree/transit/branches/new.html.erb
2960
- - app/views/spree/transit/locations/_filter_form.erb
2961
- - app/views/spree/transit/locations/_form.html.erb
2962
- - app/views/spree/transit/locations/edit.html.erb
2963
- - app/views/spree/transit/locations/index.html.erb
2964
- - app/views/spree/transit/locations/new.html.erb
2965
- - app/views/spree/transit/places/_assets_form.html.erb
2966
- - app/views/spree/transit/places/_form.html.erb
2967
- - app/views/spree/transit/places/edit.html.erb
2968
- - app/views/spree/transit/places/index.html.erb
2969
- - app/views/spree/transit/places/new.html.erb
2970
- - app/views/spree/transit/reservations/index.html.erb
2971
- - app/views/spree/transit/routes/_filter_form.erb
2972
- - app/views/spree/transit/routes/_form.html.erb
2973
- - app/views/spree/transit/routes/edit.html.erb
2974
- - app/views/spree/transit/routes/index.html.erb
2975
- - app/views/spree/transit/routes/new.html.erb
2976
- - app/views/spree/transit/service_calendars/_exception_rules.html.erb
2977
- - app/views/spree/transit/service_calendars/_filters.html.erb
2978
- - app/views/spree/transit/service_calendars/_form.html.erb
2979
- - app/views/spree/transit/service_calendars/index.html.erb
2980
- - app/views/spree/transit/service_calendars/new.html.erb
2981
- - app/views/spree/transit/shared/_amenity_tabs.html.erb
2982
- - app/views/spree/transit/shared/_header.html.erb
2983
- - app/views/spree/transit/shared/_main_menu.html.erb
2984
- - app/views/spree/transit/shared/_route_tabs.html.erb
2985
- - app/views/spree/transit/shared/_vehicle_tabs.html.erb
2986
- - app/views/spree/transit/shared/_vendor_switcher.html.erb
2987
- - app/views/spree/transit/shared/sortable_tree/_taxonomy.html.erb
2988
- - app/views/spree/transit/shared/sub_menu/_setting.html.erb
2989
- - app/views/spree/transit/stops/_filters.html.erb
2990
- - app/views/spree/transit/stops/_form.html.erb
2991
- - app/views/spree/transit/stops/edit.html.erb
2992
- - app/views/spree/transit/stops/index.html.erb
2993
- - app/views/spree/transit/stops/new.html.erb
2994
- - app/views/spree/transit/trip_stops/index.html.erb
2995
- - app/views/spree/transit/trips/_form.html.erb
2996
- - app/views/spree/transit/trips/edit.html.erb
2997
- - app/views/spree/transit/trips/new.html.erb
2998
- - app/views/spree/transit/vectors/amenity_values/index.html.erb
2999
- - app/views/spree/transit/vehicle_photos/_form.html.erb
3000
- - app/views/spree/transit/vehicle_photos/edit.html.erb
3001
- - app/views/spree/transit/vehicle_photos/index.html.erb
3002
- - app/views/spree/transit/vehicle_photos/new.html.erb
3003
- - app/views/spree/transit/vehicle_seats/_form.html.erb
3004
- - app/views/spree/transit/vehicle_seats/_seats.html.erb
3005
- - app/views/spree/transit/vehicle_types/_filter_form.html.erb
3006
- - app/views/spree/transit/vehicle_types/_form.html.erb
3007
- - app/views/spree/transit/vehicle_types/_seat_view.erb
3008
- - app/views/spree/transit/vehicle_types/edit.html.erb
3009
- - app/views/spree/transit/vehicle_types/index.html.erb
3010
- - app/views/spree/transit/vehicle_types/new.html.erb
3011
- - app/views/spree/transit/vehicles/_filter_form.html.erb
3012
- - app/views/spree/transit/vehicles/_form.html.erb
3013
- - app/views/spree/transit/vehicles/edit.html.erb
3014
- - app/views/spree/transit/vehicles/index.html.erb
3015
- - app/views/spree/transit/vehicles/new.html.erb
3016
- - app/views/spree/transit/vendors/_form.html.erb
3017
- - app/views/spree/transit/vendors/_tabs.html.erb
3018
- - app/views/spree/transit/vendors/edit.html.erb
3019
2793
  - app/views/spree_cm_commissioner/cancel_order_mailer/_cancel_email.html.erb
3020
2794
  - app/views/spree_cm_commissioner/cancel_order_mailer/_footer.html.erb
3021
2795
  - app/views/spree_cm_commissioner/cancel_order_mailer/_header.html.erb
@@ -3856,9 +3630,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
3856
3630
  version: '2.7'
3857
3631
  required_rubygems_version: !ruby/object:Gem::Requirement
3858
3632
  requirements:
3859
- - - ">"
3633
+ - - ">="
3860
3634
  - !ruby/object:Gem::Version
3861
- version: 1.3.1
3635
+ version: '0'
3862
3636
  requirements:
3863
3637
  - none
3864
3638
  rubygems_version: 3.4.1
@@ -1,17 +0,0 @@
1
- document.addEventListener("spree:load", function () {
2
- var useBilling = $("#spree_cm_commissioner_customer_use_billing");
3
-
4
- if (useBilling.is(":checked")) {
5
- $("#shipping").hide();
6
- }
7
-
8
- useBilling.change(function () {
9
- if (this.checked) {
10
- $("#shipping").hide();
11
- return $("#shipping input, #shipping select").prop("disabled", true);
12
- } else {
13
- $("#shipping").show();
14
- $("#shipping input, #shipping select").prop("disabled", false);
15
- }
16
- });
17
- });
@@ -1,45 +0,0 @@
1
- const LocationCheckboxManager = {
2
- initialize: function () {
3
- const locationCheckboxes = document.querySelectorAll(".location");
4
-
5
- locationCheckboxes.forEach(function (locationCheckbox) {
6
- locationCheckbox.addEventListener("change", function () {
7
- LocationCheckboxManager.handleCheckboxChange(this);
8
- });
9
-
10
- LocationCheckboxManager.handleCheckboxChange(locationCheckbox);
11
- });
12
- },
13
-
14
- handleCheckboxChange: function (changedCheckbox) {
15
- const pointCheckbox = document.querySelector(".stop");
16
- const stopCheckbox = document.querySelector(".station");
17
- const branchCheckbox = document.querySelector(".branch");
18
-
19
- if (!stopCheckbox || !branchCheckbox || !pointCheckbox) {
20
- alert("Please select at the last one.");
21
- event.preventDefault();
22
- }
23
-
24
- const isLocationChecked = changedCheckbox.checked;
25
-
26
- if (isLocationChecked) {
27
- stopCheckbox.checked = false;
28
- stopCheckbox.disabled = true;
29
-
30
- branchCheckbox.checked = false;
31
- branchCheckbox.disabled = true;
32
-
33
- pointCheckbox.checked = false;
34
- pointCheckbox.disabled = true;
35
- } else {
36
- stopCheckbox.disabled = false;
37
- branchCheckbox.disabled = false;
38
- pointCheckbox.disabled = false;
39
- }
40
- },
41
- };
42
-
43
- document.addEventListener("spree:load", function () {
44
- LocationCheckboxManager.initialize();
45
- });