Module: Spree::ShipmentDecorator
- Defined in:
- app/models/spree/shipment_decorator.rb
Instance Method Summary collapse
- #can_cancel_boxnow_voucher? ⇒ Boolean
- #can_create_boxnow_voucher? ⇒ Boolean
- #can_print_boxnow_voucher? ⇒ Boolean
Instance Method Details
#can_cancel_boxnow_voucher? ⇒ Boolean
11 12 13 |
# File 'app/models/spree/shipment_decorator.rb', line 11 def can_cancel_boxnow_voucher? tracked? && shipping_method&.boxnow? && !shipped? end |
#can_create_boxnow_voucher? ⇒ Boolean
3 4 5 |
# File 'app/models/spree/shipment_decorator.rb', line 3 def can_create_boxnow_voucher? !tracked? && ready? && shipping_method.boxnow? end |
#can_print_boxnow_voucher? ⇒ Boolean
7 8 9 |
# File 'app/models/spree/shipment_decorator.rb', line 7 def can_print_boxnow_voucher? tracked? && shipping_method.boxnow? end |