caboose-cms 0.8.87 → 0.8.88

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0af06f8f26a6c537627299c1ccd323b5ca9033d3
4
- data.tar.gz: 47d8742aac68010be20aa7b4f8d90a28b20a6601
3
+ metadata.gz: 548a81592656b1eee5a54254fd888b85c57a7b31
4
+ data.tar.gz: 9e9e6a2f5c795987f8f304cc79d69175b548e3fd
5
5
  SHA512:
6
- metadata.gz: ebd290abf21ca8bbb0c02ebea94925725e9e4aad05659d667fd405cf177a58075f4dc6ca3224ee4c878f8038a7cde5ff9abd438d708563d8e075345cbcac1f8f
7
- data.tar.gz: d1003bc8a568bbb802122cfe3eaeaadf6d481c19f19caf9527fe2633864d6e2e1121224e7ab95990df2ec6d84c501368d476c19f0bdca3b73a45a41e04314d51
6
+ metadata.gz: 9e29b35f5215ee5ab0cdd5a34e0a2757188782b0745da5925e2d3bdc15b5cda97b96bca4f71dc9f601a0fd0870eccd8ae35ba9f0a971e987acb4c1764e70dee3
7
+ data.tar.gz: 4d4f451c0c1d18bdbbb185fdb5850d0303e23816db4a334262a616669e2218d43f5342fcd4c4c85c092c7ef64afd99d0104a584d4d972f9be975df0c3b1b10f5
@@ -187,6 +187,23 @@ module Caboose
187
187
  rates = ShippingCalculator.invoice_package_rates(op)
188
188
  render :json => rates
189
189
  end
190
+
191
+ # @route_priority 1
192
+ # @route GET /admin/invoice-packages/:field-options
193
+ def admin_options
194
+ return if !user_is_allowed('invoices', 'edit')
195
+
196
+ options = []
197
+ case params[:field]
198
+ when 'status'
199
+ options = [
200
+ { :value => InvoicePackage::STATUS_PENDING , :text => 'Pending' },
201
+ { :value => InvoicePackage::STATUS_READY_TO_SHIP , :text => 'Ready to Ship' },
202
+ { :value => InvoicePackage::STATUS_SHIPPED , :text => 'Shipped' }
203
+ ]
204
+ end
205
+ render :json => options
206
+ end
190
207
 
191
208
  end
192
209
  end
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.8.87'
2
+ VERSION = '0.8.88'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.87
4
+ version: 0.8.88
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry