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 +4 -4
- data/app/controllers/caboose/invoice_packages_controller.rb +17 -0
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 548a81592656b1eee5a54254fd888b85c57a7b31
|
4
|
+
data.tar.gz: 9e9e6a2f5c795987f8f304cc79d69175b548e3fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/caboose/version.rb
CHANGED