spree_purchase_order 3.2.0.rc1 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (253) hide show
  1. checksums.yaml +4 -4
  2. data/app/views/spree/admin/payments/source_views/_purchaseorder.html.erb +13 -0
  3. data/app/views/spree/checkout/payment/_purchaseorder.html.erb +2 -2
  4. data/config/locales/en.yml +2 -0
  5. data/lib/spree_purchase_order/version.rb +1 -1
  6. data/spec/dummy/app/models/application_record.rb +3 -0
  7. data/spec/dummy/db/migrate/20180516181839_spree_one_two.spree.rb +482 -0
  8. data/spec/dummy/db/migrate/20180516181840_spree_promo_one_two.spree.rb +46 -0
  9. data/spec/dummy/db/migrate/20180516181841_add_tax_rate_label.spree.rb +6 -0
  10. data/spec/dummy/db/migrate/20180516181842_add_toggle_tax_rate_display.spree.rb +6 -0
  11. data/spec/dummy/db/migrate/20180516181843_remove_unused_preference_columns.spree.rb +9 -0
  12. data/spec/dummy/db/migrate/20180516181844_add_lock_version_to_variant.spree.rb +6 -0
  13. data/spec/dummy/db/migrate/20180516181845_add_states_required_to_countries.spree.rb +6 -0
  14. data/spec/dummy/db/migrate/20180516181846_add_on_demand_to_product_and_variant.spree.rb +7 -0
  15. data/spec/dummy/db/migrate/20180516181847_remove_not_null_constraint_from_products_on_hand.spree.rb +12 -0
  16. data/spec/dummy/db/migrate/20180516181848_split_prices_from_variants.spree.rb +32 -0
  17. data/spec/dummy/db/migrate/20180516181849_remove_not_null_from_spree_prices_amount.spree.rb +10 -0
  18. data/spec/dummy/db/migrate/20180516181850_add_currency_to_line_items.spree.rb +6 -0
  19. data/spec/dummy/db/migrate/20180516181851_add_currency_to_orders.spree.rb +6 -0
  20. data/spec/dummy/db/migrate/20180516181852_add_cost_currency_to_variants.spree.rb +6 -0
  21. data/spec/dummy/db/migrate/20180516181853_remove_display_on_from_payment_methods.spree.rb +6 -0
  22. data/spec/dummy/db/migrate/20180516181854_add_position_to_taxonomies.spree.rb +6 -0
  23. data/spec/dummy/db/migrate/20180516181855_add_last_ip_to_spree_orders.spree.rb +6 -0
  24. data/spec/dummy/db/migrate/20180516181856_add_state_to_spree_adjustments.spree.rb +7 -0
  25. data/spec/dummy/db/migrate/20180516181857_add_display_on_to_spree_payment_methods.spree.rb +10 -0
  26. data/spec/dummy/db/migrate/20180516181858_add_position_to_product_properties.spree.rb +7 -0
  27. data/spec/dummy/db/migrate/20180516181859_add_identifier_to_spree_payments.spree.rb +6 -0
  28. data/spec/dummy/db/migrate/20180516181860_add_order_id_index_to_payments.spree.rb +10 -0
  29. data/spec/dummy/db/migrate/20180516181861_add_primary_to_spree_products_taxons.spree.rb +6 -0
  30. data/spec/dummy/db/migrate/20180516181862_create_spree_stock_items.spree.rb +15 -0
  31. data/spec/dummy/db/migrate/20180516181863_create_spree_stock_locations.spree.rb +12 -0
  32. data/spec/dummy/db/migrate/20180516181864_create_default_stock.spree.rb +34 -0
  33. data/spec/dummy/db/migrate/20180516181865_add_order_id_index_to_shipments.spree.rb +6 -0
  34. data/spec/dummy/db/migrate/20180516181866_change_meta_description_on_spree_products_to_text.spree.rb +6 -0
  35. data/spec/dummy/db/migrate/20180516181867_add_stock_location_id_to_spree_shipments.spree.rb +6 -0
  36. data/spec/dummy/db/migrate/20180516181868_add_pending_to_inventory_unit.spree.rb +7 -0
  37. data/spec/dummy/db/migrate/20180516181869_remove_on_demand_from_product_and_variant.spree.rb +7 -0
  38. data/spec/dummy/db/migrate/20180516181870_create_shipping_method_zone.spree.rb +22 -0
  39. data/spec/dummy/db/migrate/20180516181871_remove_shipping_category_id_from_shipping_method.spree.rb +6 -0
  40. data/spec/dummy/db/migrate/20180516181872_create_shipping_method_categories.spree.rb +14 -0
  41. data/spec/dummy/db/migrate/20180516181873_add_tracking_url_to_spree_shipping_methods.spree.rb +6 -0
  42. data/spec/dummy/db/migrate/20180516181874_create_spree_shipping_rates.spree.rb +25 -0
  43. data/spec/dummy/db/migrate/20180516181875_remove_category_match_attributes_from_shipping_method.spree.rb +8 -0
  44. data/spec/dummy/db/migrate/20180516181876_create_stock_movements.spree.rb +13 -0
  45. data/spec/dummy/db/migrate/20180516181877_add_address_fields_to_stock_location.spree.rb +23 -0
  46. data/spec/dummy/db/migrate/20180516181878_add_active_field_to_stock_locations.spree.rb +6 -0
  47. data/spec/dummy/db/migrate/20180516181879_add_backorderable_to_stock_item.spree.rb +6 -0
  48. data/spec/dummy/db/migrate/20180516181880_add_default_quantity_to_stock_movement.spree.rb +6 -0
  49. data/spec/dummy/db/migrate/20180516181881_add_source_and_destination_to_stock_movements.spree.rb +9 -0
  50. data/spec/dummy/db/migrate/20180516181882_change_orders_total_precision.spree.rb +9 -0
  51. data/spec/dummy/db/migrate/20180516181883_change_spree_payments_amount_precision.spree.rb +8 -0
  52. data/spec/dummy/db/migrate/20180516181884_change_spree_return_authorization_amount_precision.spree.rb +8 -0
  53. data/spec/dummy/db/migrate/20180516181885_change_adjustments_amount_precision.spree.rb +8 -0
  54. data/spec/dummy/db/migrate/20180516181886_add_originator_to_stock_movement.spree.rb +8 -0
  55. data/spec/dummy/db/migrate/20180516181887_drop_source_and_destination_from_stock_movement.spree.rb +16 -0
  56. data/spec/dummy/db/migrate/20180516181888_migrate_inventory_unit_sold_to_on_hand.spree.rb +10 -0
  57. data/spec/dummy/db/migrate/20180516181889_add_stock_location_to_rma.spree.rb +6 -0
  58. data/spec/dummy/db/migrate/20180516181890_update_shipment_state_for_canceled_orders.spree.rb +16 -0
  59. data/spec/dummy/db/migrate/20180516181891_add_seo_metas_to_taxons.spree.rb +10 -0
  60. data/spec/dummy/db/migrate/20180516181892_remove_stock_item_and_variant_lock.spree.rb +15 -0
  61. data/spec/dummy/db/migrate/20180516181893_add_name_to_spree_credit_cards.spree.rb +6 -0
  62. data/spec/dummy/db/migrate/20180516181894_update_name_fields_on_spree_credit_cards.spree.rb +14 -0
  63. data/spec/dummy/db/migrate/20180516181895_add_index_to_source_columns_on_adjustments.spree.rb +6 -0
  64. data/spec/dummy/db/migrate/20180516181896_update_adjustment_states.spree.rb +17 -0
  65. data/spec/dummy/db/migrate/20180516181897_add_shipping_rates_to_shipments.spree.rb +16 -0
  66. data/spec/dummy/db/migrate/20180516181898_create_spree_stock_transfers.spree.rb +15 -0
  67. data/spec/dummy/db/migrate/20180516181899_drop_products_count_on_hand.spree.rb +6 -0
  68. data/spec/dummy/db/migrate/20180516181900_set_default_shipping_rate_cost.spree.rb +6 -0
  69. data/spec/dummy/db/migrate/20180516181901_add_number_to_stock_transfer.spree.rb +24 -0
  70. data/spec/dummy/db/migrate/20180516181902_add_sku_index_to_spree_variants.spree.rb +6 -0
  71. data/spec/dummy/db/migrate/20180516181903_add_backorderable_default_to_spree_stock_location.spree.rb +6 -0
  72. data/spec/dummy/db/migrate/20180516181904_add_propage_all_variants_to_spree_stock_location.spree.rb +6 -0
  73. data/spec/dummy/db/migrate/20180516181905_rename_shipping_methods_zones_to_spree_shipping_methods_zones.spree.rb +6 -0
  74. data/spec/dummy/db/migrate/20180516181906_add_user_id_index_to_spree_orders.spree.rb +6 -0
  75. data/spec/dummy/db/migrate/20180516181907_add_updated_at_to_spree_countries.spree.rb +10 -0
  76. data/spec/dummy/db/migrate/20180516181908_add_updated_at_to_spree_states.spree.rb +10 -0
  77. data/spec/dummy/db/migrate/20180516181909_add_cvv_result_code_and_cvv_result_message_to_spree_payments.spree.rb +7 -0
  78. data/spec/dummy/db/migrate/20180516181910_add_unique_index_to_permalink_on_spree_products.spree.rb +6 -0
  79. data/spec/dummy/db/migrate/20180516181911_add_unique_index_to_orders_shipments_and_stock_transfers.spree.rb +8 -0
  80. data/spec/dummy/db/migrate/20180516181912_add_deleted_at_to_spree_tax_rates.spree.rb +6 -0
  81. data/spec/dummy/db/migrate/20180516181913_remove_lock_version_from_inventory_units.spree.rb +7 -0
  82. data/spec/dummy/db/migrate/20180516181914_add_cost_price_to_line_item.spree.rb +6 -0
  83. data/spec/dummy/db/migrate/20180516181915_set_backorderable_to_default_to_false.spree.rb +7 -0
  84. data/spec/dummy/db/migrate/20180516181916_add_created_by_id_to_spree_orders.spree.rb +6 -0
  85. data/spec/dummy/db/migrate/20180516181917_index_completed_at_on_spree_orders.spree.rb +6 -0
  86. data/spec/dummy/db/migrate/20180516181918_add_tax_category_id_to_spree_line_items.spree.rb +6 -0
  87. data/spec/dummy/db/migrate/20180516181919_migrate_tax_categories_to_line_items.spree.rb +11 -0
  88. data/spec/dummy/db/migrate/20180516181920_drop_spree_mail_methods.spree.rb +13 -0
  89. data/spec/dummy/db/migrate/20180516181921_set_default_stock_location_on_shipments.spree.rb +9 -0
  90. data/spec/dummy/db/migrate/20180516181922_upgrade_adjustments.spree.rb +41 -0
  91. data/spec/dummy/db/migrate/20180516181923_rename_adjustment_fields.spree.rb +15 -0
  92. data/spec/dummy/db/migrate/20180516181924_add_admin_name_column_to_spree_shipping_methods.spree.rb +6 -0
  93. data/spec/dummy/db/migrate/20180516181925_add_admin_name_column_to_spree_stock_locations.spree.rb +6 -0
  94. data/spec/dummy/db/migrate/20180516181926_add_shipment_total_to_spree_orders.spree.rb +6 -0
  95. data/spec/dummy/db/migrate/20180516181927_expand_order_number_size.spree.rb +10 -0
  96. data/spec/dummy/db/migrate/20180516181928_rename_activators_to_promotions.spree.rb +6 -0
  97. data/spec/dummy/db/migrate/20180516181929_add_adjustment_total_to_line_items.spree.rb +6 -0
  98. data/spec/dummy/db/migrate/20180516181930_add_adjustment_total_to_shipments.spree.rb +6 -0
  99. data/spec/dummy/db/migrate/20180516181931_add_depth_to_spree_taxons.spree.rb +17 -0
  100. data/spec/dummy/db/migrate/20180516181932_add_tax_total_to_line_items_shipments_and_orders.spree.rb +9 -0
  101. data/spec/dummy/db/migrate/20180516181933_add_shipping_category_to_shipping_methods_and_products.spree.rb +16 -0
  102. data/spec/dummy/db/migrate/20180516181934_migrate_old_shipping_calculators.spree.rb +20 -0
  103. data/spec/dummy/db/migrate/20180516181935_add_code_to_spree_promotion_rules.spree.rb +6 -0
  104. data/spec/dummy/db/migrate/20180516181936_change_states_required_for_countries.spree.rb +10 -0
  105. data/spec/dummy/db/migrate/20180516181937_add_deleted_at_to_spree_stock_items.spree.rb +6 -0
  106. data/spec/dummy/db/migrate/20180516181938_remove_promotions_event_name_field.spree.rb +6 -0
  107. data/spec/dummy/db/migrate/20180516181939_add_promo_total_to_line_items_and_shipments_and_orders.spree.rb +8 -0
  108. data/spec/dummy/db/migrate/20180516181940_remove_unused_credit_card_fields.spree.rb +17 -0
  109. data/spec/dummy/db/migrate/20180516181941_add_track_inventory_to_variant.spree.rb +6 -0
  110. data/spec/dummy/db/migrate/20180516181942_add_tax_category_to_variants.spree.rb +7 -0
  111. data/spec/dummy/db/migrate/20180516181943_add_channel_to_spree_orders.spree.rb +6 -0
  112. data/spec/dummy/db/migrate/20180516181944_add_included_to_adjustments.spree.rb +6 -0
  113. data/spec/dummy/db/migrate/20180516181945_rename_tax_total_fields.spree.rb +12 -0
  114. data/spec/dummy/db/migrate/20180516181946_add_line_item_id_to_spree_inventory_units.spree.rb +22 -0
  115. data/spec/dummy/db/migrate/20180516181947_add_updated_at_to_variants.spree.rb +6 -0
  116. data/spec/dummy/db/migrate/20180516181948_add_position_to_classifications.spree.rb +6 -0
  117. data/spec/dummy/db/migrate/20180516181949_create_spree_orders_promotions.spree.rb +9 -0
  118. data/spec/dummy/db/migrate/20180516181950_unique_shipping_method_categories.spree.rb +25 -0
  119. data/spec/dummy/db/migrate/20180516181951_add_item_count_to_spree_orders.spree.rb +6 -0
  120. data/spec/dummy/db/migrate/20180516181952_remove_value_type_from_spree_preferences.spree.rb +9 -0
  121. data/spec/dummy/db/migrate/20180516181953_rename_permalink_to_slug_for_products.spree.rb +6 -0
  122. data/spec/dummy/db/migrate/20180516181954_add_index_to_variant_id_and_currency_on_prices.spree.rb +6 -0
  123. data/spec/dummy/db/migrate/20180516181955_rename_activator_id_in_rules_and_actions_to_promotion_id.spree.rb +7 -0
  124. data/spec/dummy/db/migrate/20180516181956_add_deleted_at_to_spree_prices.spree.rb +6 -0
  125. data/spec/dummy/db/migrate/20180516181957_add_approver_id_and_approved_at_to_orders.spree.rb +7 -0
  126. data/spec/dummy/db/migrate/20180516181958_add_confirmation_delivered_to_spree_orders.spree.rb +6 -0
  127. data/spec/dummy/db/migrate/20180516181959_add_auto_capture_to_payment_methods.spree.rb +6 -0
  128. data/spec/dummy/db/migrate/20180516181960_create_spree_payment_capture_events.spree.rb +13 -0
  129. data/spec/dummy/db/migrate/20180516181961_add_uncaptured_amount_to_payments.spree.rb +6 -0
  130. data/spec/dummy/db/migrate/20180516181962_default_variant_weight_to_zero.spree.rb +12 -0
  131. data/spec/dummy/db/migrate/20180516181963_add_tax_category_id_to_shipping_methods.spree.rb +6 -0
  132. data/spec/dummy/db/migrate/20180516181964_add_tax_rate_id_to_shipping_rates.spree.rb +6 -0
  133. data/spec/dummy/db/migrate/20180516181965_add_pre_tax_amount_to_line_items_and_shipments.spree.rb +7 -0
  134. data/spec/dummy/db/migrate/20180516181966_add_more_indexes.spree.rb +14 -0
  135. data/spec/dummy/db/migrate/20180516181967_add_considered_risky_to_orders.spree.rb +6 -0
  136. data/spec/dummy/db/migrate/20180516181968_add_preference_store_to_everything.spree.rb +9 -0
  137. data/spec/dummy/db/migrate/20180516181969_add_user_id_to_spree_credit_cards.spree.rb +14 -0
  138. data/spec/dummy/db/migrate/20180516181970_migrate_old_preferences.spree.rb +24 -0
  139. data/spec/dummy/db/migrate/20180516181971_create_spree_stores.spree.rb +26 -0
  140. data/spec/dummy/db/migrate/20180516181972_create_store_from_preferences.spree.rb +38 -0
  141. data/spec/dummy/db/migrate/20180516181973_add_timestamps_to_spree_assets.spree.rb +7 -0
  142. data/spec/dummy/db/migrate/20180516181974_create_spree_taxons_promotion_rules.spree.rb +9 -0
  143. data/spec/dummy/db/migrate/20180516181975_add_additional_store_fields.spree.rb +9 -0
  144. data/spec/dummy/db/migrate/20180516181976_add_many_missing_indexes.spree.rb +19 -0
  145. data/spec/dummy/db/migrate/20180516181977_correct_some_polymorphic_index_and_add_more_missing.spree.rb +67 -0
  146. data/spec/dummy/db/migrate/20180516181978_add_user_id_created_by_id_index_to_order.spree.rb +6 -0
  147. data/spec/dummy/db/migrate/20180516181979_change_spree_price_amount_precision.spree.rb +9 -0
  148. data/spec/dummy/db/migrate/20180516181980_add_token_to_spree_orders.spree.rb +6 -0
  149. data/spec/dummy/db/migrate/20180516181981_move_order_token_from_tokenized_permission.spree.rb +30 -0
  150. data/spec/dummy/db/migrate/20180516181982_set_shipment_total_for_users_upgrading.spree.rb +11 -0
  151. data/spec/dummy/db/migrate/20180516181983_drop_credit_card_first_name_and_last_name.spree.rb +7 -0
  152. data/spec/dummy/db/migrate/20180516181984_add_deleted_at_to_spree_promotion_actions.spree.rb +7 -0
  153. data/spec/dummy/db/migrate/20180516181985_remove_uncaptured_amount_from_spree_payments.spree.rb +6 -0
  154. data/spec/dummy/db/migrate/20180516181986_create_spree_refunds.spree.rb +13 -0
  155. data/spec/dummy/db/migrate/20180516181987_create_spree_return_authorization_inventory_unit.spree.rb +13 -0
  156. data/spec/dummy/db/migrate/20180516181988_rename_return_authorization_inventory_unit_to_return_items.spree.rb +6 -0
  157. data/spec/dummy/db/migrate/20180516181989_backfill_line_item_pre_tax_amount.spree.rb +11 -0
  158. data/spec/dummy/db/migrate/20180516181990_recreate_spree_return_authorizations.spree.rb +56 -0
  159. data/spec/dummy/db/migrate/20180516181991_add_amount_fields_to_return_items.spree.rb +8 -0
  160. data/spec/dummy/db/migrate/20180516181992_drop_return_authorization_amount.spree.rb +6 -0
  161. data/spec/dummy/db/migrate/20180516181993_create_spree_return_authorization_reasons.spree.rb +29 -0
  162. data/spec/dummy/db/migrate/20180516181994_create_spree_refund_reasons.spree.rb +15 -0
  163. data/spec/dummy/db/migrate/20180516181995_rename_return_authorization_reason.spree.rb +6 -0
  164. data/spec/dummy/db/migrate/20180516181996_create_spree_promotion_categories.spree.rb +12 -0
  165. data/spec/dummy/db/migrate/20180516181997_drop_received_at_on_return_items.spree.rb +10 -0
  166. data/spec/dummy/db/migrate/20180516181998_add_reception_and_acceptance_status_to_return_items.spree.rb +7 -0
  167. data/spec/dummy/db/migrate/20180516181999_create_default_refund_reason.spree.rb +10 -0
  168. data/spec/dummy/db/migrate/20180516182000_add_default_to_spree_stock_locations.spree.rb +8 -0
  169. data/spec/dummy/db/migrate/20180516182001_create_spree_customer_returns.spree.rb +10 -0
  170. data/spec/dummy/db/migrate/20180516182002_add_customer_return_id_to_return_item.spree.rb +7 -0
  171. data/spec/dummy/db/migrate/20180516182003_create_friendly_id_slugs.spree.rb +16 -0
  172. data/spec/dummy/db/migrate/20180516182004_rename_spree_refund_return_authorization_id.spree.rb +6 -0
  173. data/spec/dummy/db/migrate/20180516182005_increase_return_item_pre_tax_amount_precision.spree.rb +14 -0
  174. data/spec/dummy/db/migrate/20180516182006_copy_product_slugs_to_slug_history.spree.rb +16 -0
  175. data/spec/dummy/db/migrate/20180516182007_create_spree_reimbursements.spree.rb +22 -0
  176. data/spec/dummy/db/migrate/20180516182008_add_promotionable_to_spree_products.spree.rb +6 -0
  177. data/spec/dummy/db/migrate/20180516182009_add_exchange_inventory_unit_foreign_keys.spree.rb +8 -0
  178. data/spec/dummy/db/migrate/20180516182010_add_acceptance_status_errors_to_return_item.spree.rb +6 -0
  179. data/spec/dummy/db/migrate/20180516182011_create_spree_reimbursement_types.spree.rb +21 -0
  180. data/spec/dummy/db/migrate/20180516182012_add_default_to_shipment_cost.spree.rb +11 -0
  181. data/spec/dummy/db/migrate/20180516182013_add_default_to_spree_credit_cards.spree.rb +6 -0
  182. data/spec/dummy/db/migrate/20180516182014_make_existing_credit_cards_default.spree.rb +11 -0
  183. data/spec/dummy/db/migrate/20180516182015_add_type_to_reimbursement_type.spree.rb +10 -0
  184. data/spec/dummy/db/migrate/20180516182016_create_spree_reimbursement_credits.spree.rb +11 -0
  185. data/spec/dummy/db/migrate/20180516182017_add_meta_title_to_spree_products.spree.rb +8 -0
  186. data/spec/dummy/db/migrate/20180516182018_add_kind_to_zone.spree.rb +12 -0
  187. data/spec/dummy/db/migrate/20180516182019_add_code_to_spree_tax_categories.spree.rb +6 -0
  188. data/spec/dummy/db/migrate/20180516182020_default_pre_tax_amount_should_be_zero.spree.rb +7 -0
  189. data/spec/dummy/db/migrate/20180516182021_add_code_to_spree_shipping_methods.spree.rb +6 -0
  190. data/spec/dummy/db/migrate/20180516182022_add_cancel_audit_fields_to_spree_orders.spree.rb +7 -0
  191. data/spec/dummy/db/migrate/20180516182023_add_store_id_to_orders.spree.rb +9 -0
  192. data/spec/dummy/db/migrate/20180516182024_create_spree_taxons_prototypes.spree.rb +9 -0
  193. data/spec/dummy/db/migrate/20180516182025_add_state_lock_version_to_order.spree.rb +6 -0
  194. data/spec/dummy/db/migrate/20180516182026_add_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb +9 -0
  195. data/spec/dummy/db/migrate/20180516182027_fix_adjustment_order_presence.spree.rb +14 -0
  196. data/spec/dummy/db/migrate/20180516182028_update_classifications_positions.spree.rb +10 -0
  197. data/spec/dummy/db/migrate/20180516182029_add_guest_token_index_to_spree_orders.spree.rb +6 -0
  198. data/spec/dummy/db/migrate/20180516182030_remove_token_permissions_table.spree.rb +7 -0
  199. data/spec/dummy/db/migrate/20180516182031_remove_extra_products_slug_index.spree.rb +6 -0
  200. data/spec/dummy/db/migrate/20180516182032_update_product_slug_index.spree.rb +7 -0
  201. data/spec/dummy/db/migrate/20180516182033_rename_identifier_to_number_for_payment.spree.rb +6 -0
  202. data/spec/dummy/db/migrate/20180516182034_create_spree_store_credits.spree.rb +25 -0
  203. data/spec/dummy/db/migrate/20180516182035_create_spree_store_credit_categories.spree.rb +9 -0
  204. data/spec/dummy/db/migrate/20180516182036_create_spree_store_credit_events.spree.rb +18 -0
  205. data/spec/dummy/db/migrate/20180516182037_create_spree_store_credit_types.spree.rb +11 -0
  206. data/spec/dummy/db/migrate/20180516182038_remove_environment_from_payment_method.spree.rb +7 -0
  207. data/spec/dummy/db/migrate/20180516182039_add_resellable_to_return_items.spree.rb +6 -0
  208. data/spec/dummy/db/migrate/20180516182040_add_code_to_spree_promotion_categories.spree.rb +6 -0
  209. data/spec/dummy/db/migrate/20180516182041_remove_environment_from_tracker.spree.rb +7 -0
  210. data/spec/dummy/db/migrate/20180516182042_remove_spree_configurations.spree.rb +17 -0
  211. data/spec/dummy/db/migrate/20180516182043_add_index_to_spree_stock_items_variant_id.spree.rb +14 -0
  212. data/spec/dummy/db/migrate/20180516182044_ensure_payments_have_numbers.spree.rb +10 -0
  213. data/spec/dummy/db/migrate/20180516182045_add_missing_indexes_on_spree_tables.spree.rb +68 -0
  214. data/spec/dummy/db/migrate/20180516182046_remove_duplicated_indexes_from_multi_columns.spree.rb +19 -0
  215. data/spec/dummy/db/migrate/20180516182047_remove_user_index_from_spree_state_changes.spree.rb +15 -0
  216. data/spec/dummy/db/migrate/20180516182048_fix_adjustment_order_id.spree.rb +71 -0
  217. data/spec/dummy/db/migrate/20180516182049_add_position_to_spree_payment_methods.spree.rb +6 -0
  218. data/spec/dummy/db/migrate/20180516182050_add_deleted_at_to_friendly_id_slugs.spree.rb +7 -0
  219. data/spec/dummy/db/migrate/20180516182051_increase_scale_on_pre_tax_amounts.spree.rb +17 -0
  220. data/spec/dummy/db/migrate/20180516182052_add_taxable_adjustment_total_to_line_item.spree.rb +20 -0
  221. data/spec/dummy/db/migrate/20180516182053_migrate_payment_methods_display.spree.rb +13 -0
  222. data/spec/dummy/db/migrate/20180516182054_enable_acts_as_paranoid_on_calculators.spree.rb +7 -0
  223. data/spec/dummy/db/migrate/20180516182055_spree_payment_method_store_credits.spree.rb +13 -0
  224. data/spec/dummy/db/migrate/20180516182056_rename_has_and_belongs_to_associations_to_model_names.spree.rb +19 -0
  225. data/spec/dummy/db/migrate/20180516182057_spree_store_credit_types.spree.rb +12 -0
  226. data/spec/dummy/db/migrate/20180516182058_add_discontinued_to_products_and_variants.spree.rb +69 -0
  227. data/spec/dummy/db/migrate/20180516182059_remove_shipping_method_id_from_spree_orders.spree.rb +14 -0
  228. data/spec/dummy/db/migrate/20180516182060_add_id_column_to_earlier_habtm_tables.spree.rb +17 -0
  229. data/spec/dummy/db/migrate/20180516182061_add_indexes.spree.rb +15 -0
  230. data/spec/dummy/db/migrate/20180516182062_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb +11 -0
  231. data/spec/dummy/db/migrate/20180516182063_acts_as_taggable_on_spree_migration.spree.rb +41 -0
  232. data/spec/dummy/db/migrate/20180516182064_change_collation_for_spree_tag_names.spree.rb +10 -0
  233. data/spec/dummy/db/migrate/20180516182065_add_missing_indexes_to_spree_taggings.spree.rb +15 -0
  234. data/spec/dummy/db/migrate/20180516182066_add_zipcode_required_to_spree_countries.spree.rb +8 -0
  235. data/spec/dummy/db/migrate/20180516182067_add_created_at_to_variant.spree.rb +9 -0
  236. data/spec/dummy/db/migrate/20180516182068_add_null_false_to_spree_variants_timestamps.spree.rb +7 -0
  237. data/spec/dummy/db/migrate/20180516182069_create_spree_purchase_orders.spree_purchase_order.rb +11 -0
  238. data/spec/dummy/db/migrate/20180516182070_add_payment_method_id_to_spree_purchase_orders.spree_purchase_order.rb +7 -0
  239. data/spec/dummy/db/migrate/20180516182071_add_user_id_to_spree_purchase_orders.spree_purchase_order.rb +7 -0
  240. data/spec/dummy/db/schema.rb +1027 -0
  241. data/spec/dummy/db/test.sqlite3 +0 -0
  242. data/spec/dummy/log/test.log +27686 -0
  243. data/spec/dummy/tmp/cache/17E/D61/spree%2Fapp_configuration%2Fdefault_seo_title +1 -0
  244. data/spec/dummy/tmp/cache/334/AA1/spree%2Fapp_configuration%2Fdefault_meta_keywords +1 -0
  245. data/spec/dummy/tmp/cache/3A7/4A1/spree%2Fapp_configuration%2Faddress_requires_state +1 -0
  246. data/spec/dummy/tmp/cache/460/D81/spree%2Fapp_configuration%2Fdefault_meta_description +1 -0
  247. data/spec/dummy/tmp/cache/DD9/320/spree%2Fapp_configuration%2Fsite_url +1 -0
  248. data/spec/dummy/tmp/cache/DDD/2D0/spree%2Fapp_configuration%2Fcurrency +1 -0
  249. data/spec/dummy/tmp/cache/E27/320/spree%2Fapp_configuration%2Fsite_name +1 -0
  250. data/spec/dummy/tmp/cache/E9B/7F0/spree%2Fapp_configuration%2Fmails_from +1 -0
  251. data/spec/factories/purchase_orders.rb +1 -1
  252. data/spec/spec_helper.rb +2 -2
  253. metadata +498 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28276d751743cdb59a24bfcf24f80da3290a3f70
4
- data.tar.gz: 8b58087c2c4a3cf8eddd6b3d7e3155f7319aa1c6
3
+ metadata.gz: 727d8ce24fbc909265ca679814e933c92d6201ae
4
+ data.tar.gz: 12c9c0ff01500a18456caebd59ecea84617a9e43
5
5
  SHA512:
6
- metadata.gz: 40b24ec3c70758efb3ea61d56a77580dc6cf548210866046e1a2407e5084aa34c459dbeab44140c40813c837332dbf8f66631e72f8d65e2b9dd3c1be2c118228
7
- data.tar.gz: c749f21699fb1add186419e43bd241fa254b534c869d97edf0f77302d3d3e18df1bcd9e517f3add66375219345e5d6471ae132d325203dfd729ac266c6042f7d
6
+ metadata.gz: 73cc1a2fe0a348047f2939a1bc1b134b5ec1f63294f93916601c27c90ff94fef928824b1ad4598061d2f8a5c10dcb3362157950d0b2f41bc80e66ae6e25f3170
7
+ data.tar.gz: 2d5d717898a90809f107b9862ea24316c435589a98eba3ab30738b309e3ae5ac60d79e2f52b67d48f2c9e765a22521d4b5ee5b7d64fecac6f71f6cdd2f8dd613
@@ -0,0 +1,13 @@
1
+ <fieldset data-hook='purchase_order'>
2
+ <legend><%= Spree.t(:purchase_order) %></legend>
3
+ <table class='table table-condensed table-bordered'>
4
+ <tr>
5
+ <th width='20%'><%= Spree.t(:po_number) %>:</th>
6
+ <td><%= payment.source.po_number %></td>
7
+ </tr>
8
+ <tr>
9
+ <th><%= Spree.t(:organization_name) %>:</th>
10
+ <td><%= payment.source.organization_name %></td>
11
+ </tr>
12
+ </table>
13
+ </fieldset>
@@ -2,13 +2,13 @@
2
2
  <% param_prefix = "payment_source[#{payment_method.id}]" %>
3
3
  <p class='field'>
4
4
  <%= label_tag :po_number do %>
5
- PO Number<abbr class='required' title='required'>*</abbr>
5
+ <%= Spree.t(:po_number) %><abbr class='required' title='required'>*</abbr>
6
6
  <% end %>
7
7
  <%= text_field_tag "#{param_prefix}[po_number]", '', id: :po_number, class: 'form-control required', size: 10, maxlength: 10, autocomplete: "off" %>
8
8
  </p>
9
9
  <p class='field'>
10
10
  <%= label_tag :organization_name do %>
11
- Organization Name<abbr class='required' title='required'>*</abbr>
11
+ <%= Spree.t(:organization_name) %><abbr class='required' title='required'>*</abbr>
12
12
  <% end %>
13
13
  <%= text_field_tag "#{param_prefix}[organization_name]", '', id: :organization_name, class: 'form-control required'%>
14
14
  </p>
@@ -1,6 +1,8 @@
1
1
  en:
2
2
  spree:
3
3
  purchase_order: Purchase order
4
+ po_number: PO Number
5
+ organization_name: Organization Name
4
6
  activerecord:
5
7
  models:
6
8
  spree/purchase_order: Purchase order
@@ -1,3 +1,3 @@
1
1
  module SpreePurchaseOrder
2
- VERSION = '3.2.0.rc1'
2
+ VERSION = '3.2.0'
3
3
  end
@@ -0,0 +1,3 @@
1
+ class ApplicationRecord < ActiveRecord::Base
2
+ self.abstract_class = true
3
+ end
@@ -0,0 +1,482 @@
1
+ # This migration comes from spree (originally 20120831092320)
2
+ class SpreeOneTwo < ActiveRecord::Migration[4.2]
3
+ def up
4
+ # This migration is just a compressed version of all the previous
5
+ # migrations for spree_core. Do not run it if one of the core tables
6
+ # already exists. Assume the best.
7
+ return if data_source_exists?(:spree_addresses)
8
+
9
+
10
+ create_table :spree_activators do |t|
11
+ t.string :description
12
+ t.datetime :expires_at
13
+ t.datetime :starts_at
14
+ t.string :name
15
+ t.string :event_name
16
+ t.string :type
17
+ t.integer :usage_limit
18
+ t.string :match_policy, default: 'all'
19
+ t.string :code
20
+ t.boolean :advertise, default: false
21
+ t.string :path
22
+ t.timestamps null: false
23
+ end
24
+
25
+ create_table :spree_addresses do |t|
26
+ t.string :firstname
27
+ t.string :lastname
28
+ t.string :address1
29
+ t.string :address2
30
+ t.string :city
31
+ t.string :zipcode
32
+ t.string :phone
33
+ t.string :state_name
34
+ t.string :alternative_phone
35
+ t.string :company
36
+ t.references :state
37
+ t.references :country
38
+ t.timestamps null: false
39
+ end
40
+
41
+ add_index :spree_addresses, [:firstname], name: 'index_addresses_on_firstname'
42
+ add_index :spree_addresses, [:lastname], name: 'index_addresses_on_lastname'
43
+
44
+ create_table :spree_adjustments do |t|
45
+ t.references :source, polymorphic: true
46
+ t.references :adjustable, polymorphic: true
47
+ t.references :originator, polymorphic: true
48
+ t.decimal :amount, precision: 8, scale: 2
49
+ t.string :label
50
+ t.boolean :mandatory
51
+ t.boolean :locked
52
+ t.boolean :eligible, default: true
53
+ t.timestamps null: false
54
+ end
55
+
56
+ add_index :spree_adjustments, [:adjustable_id], name: 'index_adjustments_on_order_id'
57
+
58
+ create_table :spree_assets do |t|
59
+ t.references :viewable, polymorphic: true
60
+ t.integer :attachment_width
61
+ t.integer :attachment_height
62
+ t.integer :attachment_file_size
63
+ t.integer :position
64
+ t.string :attachment_content_type
65
+ t.string :attachment_file_name
66
+ t.string :type, limit: 75
67
+ t.datetime :attachment_updated_at
68
+ t.text :alt
69
+ end
70
+
71
+ add_index :spree_assets, [:viewable_id], name: 'index_assets_on_viewable_id'
72
+ add_index :spree_assets, [:viewable_type, :type], name: 'index_assets_on_viewable_type_and_type'
73
+
74
+ create_table :spree_calculators do |t|
75
+ t.string :type
76
+ t.references :calculable, polymorphic: true
77
+ t.timestamps null: false
78
+ end
79
+
80
+ create_table :spree_configurations do |t|
81
+ t.string :name
82
+ t.string :type, limit: 50
83
+ t.timestamps null: false
84
+ end
85
+
86
+ add_index :spree_configurations, [:name, :type], name: 'index_spree_configurations_on_name_and_type'
87
+
88
+ create_table :spree_countries do |t|
89
+ t.string :iso_name
90
+ t.string :iso
91
+ t.string :iso3
92
+ t.string :name
93
+ t.integer :numcode
94
+ end
95
+
96
+ create_table :spree_credit_cards do |t|
97
+ t.string :month
98
+ t.string :year
99
+ t.string :cc_type
100
+ t.string :last_digits
101
+ t.string :first_name
102
+ t.string :last_name
103
+ t.string :start_month
104
+ t.string :start_year
105
+ t.string :issue_number
106
+ t.references :address
107
+ t.string :gateway_customer_profile_id
108
+ t.string :gateway_payment_profile_id
109
+ t.timestamps null: false
110
+ end
111
+
112
+ create_table :spree_gateways do |t|
113
+ t.string :type
114
+ t.string :name
115
+ t.text :description
116
+ t.boolean :active, default: true
117
+ t.string :environment, default: 'development'
118
+ t.string :server, default: 'test'
119
+ t.boolean :test_mode, default: true
120
+ t.timestamps null: false
121
+ end
122
+
123
+ create_table :spree_inventory_units do |t|
124
+ t.integer :lock_version, default: 0
125
+ t.string :state
126
+ t.references :variant
127
+ t.references :order
128
+ t.references :shipment
129
+ t.references :return_authorization
130
+ t.timestamps null: false
131
+ end
132
+
133
+ add_index :spree_inventory_units, [:order_id], name: 'index_inventory_units_on_order_id'
134
+ add_index :spree_inventory_units, [:shipment_id], name: 'index_inventory_units_on_shipment_id'
135
+ add_index :spree_inventory_units, [:variant_id], name: 'index_inventory_units_on_variant_id'
136
+
137
+ create_table :spree_line_items do |t|
138
+ t.references :variant
139
+ t.references :order
140
+ t.integer :quantity, null: false
141
+ t.decimal :price, precision: 8, scale: 2, null: false
142
+ t.timestamps null: false
143
+ end
144
+
145
+ add_index :spree_line_items, [:order_id], name: 'index_spree_line_items_on_order_id'
146
+ add_index :spree_line_items, [:variant_id], name: 'index_spree_line_items_on_variant_id'
147
+
148
+ create_table :spree_log_entries do |t|
149
+ t.references :source, polymorphic: true
150
+ t.text :details
151
+ t.timestamps null: false
152
+ end
153
+
154
+ create_table :spree_mail_methods do |t|
155
+ t.string :environment
156
+ t.boolean :active, default: true
157
+ t.timestamps null: false
158
+ end
159
+
160
+ create_table :spree_option_types do |t|
161
+ t.string :name, limit: 100
162
+ t.string :presentation, limit: 100
163
+ t.integer :position, default: 0, null: false
164
+ t.timestamps null: false
165
+ end
166
+
167
+ create_table :spree_option_types_prototypes, id: false do |t|
168
+ t.references :prototype
169
+ t.references :option_type
170
+ end
171
+
172
+ create_table :spree_option_values do |t|
173
+ t.integer :position
174
+ t.string :name
175
+ t.string :presentation
176
+ t.references :option_type
177
+ t.timestamps null: false
178
+ end
179
+
180
+ create_table :spree_option_values_variants, id: false do |t|
181
+ t.references :variant
182
+ t.references :option_value
183
+ end
184
+
185
+ add_index :spree_option_values_variants, [:variant_id, :option_value_id], name: 'index_option_values_variants_on_variant_id_and_option_value_id'
186
+ add_index :spree_option_values_variants, [:variant_id], name: 'index_spree_option_values_variants_on_variant_id'
187
+
188
+ create_table :spree_orders do |t|
189
+ t.string :number, limit: 15
190
+ t.decimal :item_total, precision: 8, scale: 2, default: 0.0, null: false
191
+ t.decimal :total, precision: 8, scale: 2, default: 0.0, null: false
192
+ t.string :state
193
+ t.decimal :adjustment_total, precision: 8, scale: 2, default: 0.0, null: false
194
+ t.references :user
195
+ t.datetime :completed_at
196
+ t.references :bill_address
197
+ t.references :ship_address
198
+ t.decimal :payment_total, precision: 8, scale: 2, default: 0.0
199
+ t.references :shipping_method
200
+ t.string :shipment_state
201
+ t.string :payment_state
202
+ t.string :email
203
+ t.text :special_instructions
204
+ t.timestamps null: false
205
+ end
206
+
207
+ add_index :spree_orders, [:number], name: 'index_spree_orders_on_number'
208
+
209
+ create_table :spree_payment_methods do |t|
210
+ t.string :type
211
+ t.string :name
212
+ t.text :description
213
+ t.boolean :active, default: true
214
+ t.string :environment, default: 'development'
215
+ t.datetime :deleted_at
216
+ t.string :display_on
217
+ t.timestamps null: false
218
+ end
219
+
220
+ create_table :spree_payments do |t|
221
+ t.decimal :amount, precision: 8, scale: 2, default: 0.0, null: false
222
+ t.references :order
223
+ t.references :source, polymorphic: true
224
+ t.references :payment_method
225
+ t.string :state
226
+ t.string :response_code
227
+ t.string :avs_response
228
+ t.timestamps null: false
229
+ end
230
+
231
+ create_table :spree_preferences do |t|
232
+ t.string :name, limit: 100
233
+ t.references :owner, polymorphic: true
234
+ t.text :value
235
+ t.string :key
236
+ t.string :value_type
237
+ t.timestamps null: false
238
+ end
239
+
240
+ add_index :spree_preferences, [:key], name: 'index_spree_preferences_on_key', unique: true
241
+
242
+ create_table :spree_product_option_types do |t|
243
+ t.integer :position
244
+ t.references :product
245
+ t.references :option_type
246
+ t.timestamps null: false
247
+ end
248
+
249
+ create_table :spree_product_properties do |t|
250
+ t.string :value
251
+ t.references :product
252
+ t.references :property
253
+ t.timestamps null: false
254
+ end
255
+
256
+ add_index :spree_product_properties, [:product_id], name: 'index_product_properties_on_product_id'
257
+
258
+ create_table :spree_products do |t|
259
+ t.string :name, default: '', null: false
260
+ t.text :description
261
+ t.datetime :available_on
262
+ t.datetime :deleted_at
263
+ t.string :permalink
264
+ t.string :meta_description
265
+ t.string :meta_keywords
266
+ t.references :tax_category
267
+ t.references :shipping_category
268
+ t.integer :count_on_hand, default: 0, null: false
269
+ t.timestamps null: false
270
+ end
271
+
272
+ add_index :spree_products, [:available_on], name: 'index_spree_products_on_available_on'
273
+ add_index :spree_products, [:deleted_at], name: 'index_spree_products_on_deleted_at'
274
+ add_index :spree_products, [:name], name: 'index_spree_products_on_name'
275
+ add_index :spree_products, [:permalink], name: 'index_spree_products_on_permalink'
276
+
277
+ create_table :spree_products_taxons, id: false do |t|
278
+ t.references :product
279
+ t.references :taxon
280
+ end
281
+
282
+ add_index :spree_products_taxons, [:product_id], name: 'index_spree_products_taxons_on_product_id'
283
+ add_index :spree_products_taxons, [:taxon_id], name: 'index_spree_products_taxons_on_taxon_id'
284
+
285
+ create_table :spree_properties do |t|
286
+ t.string :name
287
+ t.string :presentation, null: false
288
+ t.timestamps null: false
289
+ end
290
+
291
+ create_table :spree_properties_prototypes, id: false do |t|
292
+ t.references :prototype
293
+ t.references :property
294
+ end
295
+
296
+ create_table :spree_prototypes do |t|
297
+ t.string :name
298
+ t.timestamps null: false
299
+ end
300
+
301
+ create_table :spree_return_authorizations do |t|
302
+ t.string :number
303
+ t.string :state
304
+ t.decimal :amount, precision: 8, scale: 2, default: 0.0, null: false
305
+ t.references :order
306
+ t.text :reason
307
+ t.timestamps null: false
308
+ end
309
+
310
+ create_table :spree_roles do |t|
311
+ t.string :name
312
+ end
313
+
314
+ create_table :spree_roles_users, id: false do |t|
315
+ t.references :role
316
+ t.references :user
317
+ end
318
+
319
+ add_index :spree_roles_users, [:role_id], name: 'index_spree_roles_users_on_role_id'
320
+ add_index :spree_roles_users, [:user_id], name: 'index_spree_roles_users_on_user_id'
321
+
322
+ create_table :spree_shipments do |t|
323
+ t.string :tracking
324
+ t.string :number
325
+ t.decimal :cost, precision: 8, scale: 2
326
+ t.datetime :shipped_at
327
+ t.references :order
328
+ t.references :shipping_method
329
+ t.references :address
330
+ t.string :state
331
+ t.timestamps null: false
332
+ end
333
+
334
+ add_index :spree_shipments, [:number], name: 'index_shipments_on_number'
335
+
336
+ create_table :spree_shipping_categories do |t|
337
+ t.string :name
338
+ t.timestamps null: false
339
+ end
340
+
341
+ create_table :spree_shipping_methods do |t|
342
+ t.string :name
343
+ t.references :zone
344
+ t.string :display_on
345
+ t.references :shipping_category
346
+ t.boolean :match_none
347
+ t.boolean :match_all
348
+ t.boolean :match_one
349
+ t.datetime :deleted_at
350
+ t.timestamps null: false
351
+ end
352
+
353
+ create_table :spree_state_changes do |t|
354
+ t.string :name
355
+ t.string :previous_state
356
+ t.references :stateful
357
+ t.references :user
358
+ t.string :stateful_type
359
+ t.string :next_state
360
+ t.timestamps null: false
361
+ end
362
+
363
+ create_table :spree_states do |t|
364
+ t.string :name
365
+ t.string :abbr
366
+ t.references :country
367
+ end
368
+
369
+ create_table :spree_tax_categories do |t|
370
+ t.string :name
371
+ t.string :description
372
+ t.boolean :is_default, default: false
373
+ t.datetime :deleted_at
374
+ t.timestamps null: false
375
+ end
376
+
377
+ create_table :spree_tax_rates do |t|
378
+ t.decimal :amount, precision: 8, scale: 5
379
+ t.references :zone
380
+ t.references :tax_category
381
+ t.boolean :included_in_price, default: false
382
+ t.timestamps null: false
383
+ end
384
+
385
+ create_table :spree_taxonomies do |t|
386
+ t.string :name, null: false
387
+ t.timestamps null: false
388
+ end
389
+
390
+ create_table :spree_taxons do |t|
391
+ t.references :parent
392
+ t.integer :position, default: 0
393
+ t.string :name, null: false
394
+ t.string :permalink
395
+ t.references :taxonomy
396
+ t.integer :lft
397
+ t.integer :rgt
398
+ t.string :icon_file_name
399
+ t.string :icon_content_type
400
+ t.integer :icon_file_size
401
+ t.datetime :icon_updated_at
402
+ t.text :description
403
+ t.timestamps null: false
404
+ end
405
+
406
+ add_index :spree_taxons, [:parent_id], name: 'index_taxons_on_parent_id'
407
+ add_index :spree_taxons, [:permalink], name: 'index_taxons_on_permalink'
408
+ add_index :spree_taxons, [:taxonomy_id], name: 'index_taxons_on_taxonomy_id'
409
+
410
+ create_table :spree_tokenized_permissions, force: true do |t|
411
+ t.references :permissable, polymorphic: true
412
+ t.string :token
413
+ t.timestamps null: false
414
+ end
415
+
416
+ add_index :spree_tokenized_permissions, [:permissable_id, :permissable_type], name: 'index_tokenized_name_and_type'
417
+
418
+ create_table :spree_trackers do |t|
419
+ t.string :environment
420
+ t.string :analytics_id
421
+ t.boolean :active, default: true
422
+ t.timestamps null: false
423
+ end
424
+
425
+ create_table :spree_users do |t|
426
+ t.string :encrypted_password, limit: 128
427
+ t.string :password_salt, limit: 128
428
+ t.string :email
429
+ t.string :remember_token
430
+ t.string :persistence_token
431
+ t.string :reset_password_token
432
+ t.string :perishable_token
433
+ t.integer :sign_in_count, default: 0, null: false
434
+ t.integer :failed_attempts, default: 0, null: false
435
+ t.datetime :last_request_at
436
+ t.datetime :current_sign_in_at
437
+ t.datetime :last_sign_in_at
438
+ t.string :current_sign_in_ip
439
+ t.string :last_sign_in_ip
440
+ t.string :login
441
+ t.references :ship_address
442
+ t.references :bill_address
443
+ t.string :authentication_token
444
+ t.string :unlock_token
445
+ t.datetime :locked_at
446
+ t.datetime :remember_created_at
447
+ t.datetime :reset_password_sent_at
448
+ t.timestamps null: false
449
+ end
450
+
451
+ create_table :spree_variants do |t|
452
+ t.string :sku, default: '', null: false
453
+ t.decimal :price, precision: 8, scale: 2, null: false
454
+ t.decimal :weight, precision: 8, scale: 2
455
+ t.decimal :height, precision: 8, scale: 2
456
+ t.decimal :width, precision: 8, scale: 2
457
+ t.decimal :depth, precision: 8, scale: 2
458
+ t.datetime :deleted_at
459
+ t.boolean :is_master, default: false
460
+ t.references :product
461
+ t.integer :count_on_hand, default: 0, null: false
462
+ t.decimal :cost_price, precision: 8, scale: 2
463
+ t.integer :position
464
+ end
465
+
466
+ add_index :spree_variants, [:product_id], name: 'index_spree_variants_on_product_id'
467
+
468
+ create_table :spree_zone_members do |t|
469
+ t.references :zoneable, polymorphic: true
470
+ t.references :zone
471
+ t.timestamps null: false
472
+ end
473
+
474
+ create_table :spree_zones do |t|
475
+ t.string :name
476
+ t.string :description
477
+ t.boolean :default_tax, default: false
478
+ t.integer :zone_members_count, default: 0
479
+ t.timestamps null: false
480
+ end
481
+ end
482
+ end