solidus_marketplace 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +11 -0
  5. data/Gemfile +8 -0
  6. data/LICENSE +26 -0
  7. data/README.md +123 -0
  8. data/Rakefile +15 -0
  9. data/Versionfile +6 -0
  10. data/app/assets/javascripts/spree/backend/solidus_marketplace.js +5 -0
  11. data/app/assets/javascripts/spree/backend/solidus_marketplace_routes.js +1 -0
  12. data/app/assets/javascripts/spree/backend/suppliers_autocomplete.js +55 -0
  13. data/app/assets/javascripts/spree/frontend/solidus_marketplace.js +1 -0
  14. data/app/assets/stylesheets/spree/backend/solidus_marketplace.scss +22 -0
  15. data/app/assets/stylesheets/spree/frontend/solidus_marketplace.css +3 -0
  16. data/app/controllers/ckeditor/attachment_files_controller_decorator.rb +20 -0
  17. data/app/controllers/ckeditor/pictures_controller_decorator.rb +17 -0
  18. data/app/controllers/spree/admin/marketplace_settings_controller.rb +19 -0
  19. data/app/controllers/spree/admin/products_controller_decorator.rb +79 -0
  20. data/app/controllers/spree/admin/reports_controller_decorator.rb +68 -0
  21. data/app/controllers/spree/admin/shipments_controller.rb +47 -0
  22. data/app/controllers/spree/admin/stock_items_controller_decorator.rb +10 -0
  23. data/app/controllers/spree/admin/stock_locations_controller_decorator.rb +23 -0
  24. data/app/controllers/spree/admin/suppliers_controller.rb +54 -0
  25. data/app/controllers/spree/admin/users_controller_decorator.rb +34 -0
  26. data/app/controllers/spree/api/suppliers_controller.rb +16 -0
  27. data/app/controllers/spree/api/v1/stock_locations_controller_decorator.rb +18 -0
  28. data/app/controllers/spree/base_controller_decorator.rb +13 -0
  29. data/app/helpers/spree/api/api_helpers_decorator.rb +22 -0
  30. data/app/mailers/spree/marketplace_order_mailer.rb +13 -0
  31. data/app/mailers/spree/supplier_mailer.rb +12 -0
  32. data/app/models/ckeditor/asset_decorator.rb +5 -0
  33. data/app/models/spree.rb +5 -0
  34. data/app/models/spree/marketplace_configuration.rb +14 -0
  35. data/app/models/spree/order_decorator.rb +44 -0
  36. data/app/models/spree/payment_decorator.rb +7 -0
  37. data/app/models/spree/product_decorator.rb +52 -0
  38. data/app/models/spree/shipment_decorator.rb +40 -0
  39. data/app/models/spree/stock/splitter/marketplace.rb +47 -0
  40. data/app/models/spree/stock_location_decorator.rb +23 -0
  41. data/app/models/spree/supplier.rb +120 -0
  42. data/app/models/spree/supplier_ability.rb +35 -0
  43. data/app/models/spree/supplier_variant.rb +6 -0
  44. data/app/models/spree/user_decorator.rb +23 -0
  45. data/app/models/spree/variant_decorator.rb +24 -0
  46. data/app/overrides/spree/admin/menus.rb +15 -0
  47. data/app/overrides/spree/admin/products/_form/converted_admin_product_form_right.html.erb.deface +5 -0
  48. data/app/overrides/spree/admin/products/edit/override_rows.html.erb.deface +22 -0
  49. data/app/overrides/spree/admin/stock_locations/_form/add_supplier.html.erb.deface +12 -0
  50. data/app/views/spree/admin/marketplace_settings/edit.html.erb +21 -0
  51. data/app/views/spree/admin/orders/index.html.erb +187 -0
  52. data/app/views/spree/admin/products/_form.html.erb +198 -0
  53. data/app/views/spree/admin/reports/earnings.html.erb +34 -0
  54. data/app/views/spree/admin/shared/_marketplace_settings.html.erb +1 -0
  55. data/app/views/spree/admin/shared/_marketplace_tabs.html.erb +4 -0
  56. data/app/views/spree/admin/shipments/edit.html.erb +24 -0
  57. data/app/views/spree/admin/shipments/index.html.erb +93 -0
  58. data/app/views/spree/admin/suppliers/_form.html.erb +75 -0
  59. data/app/views/spree/admin/suppliers/edit.html.erb +22 -0
  60. data/app/views/spree/admin/suppliers/index.html.erb +68 -0
  61. data/app/views/spree/admin/suppliers/new.html.erb +17 -0
  62. data/app/views/spree/api/shared/_pagination.json.jbuilder +5 -0
  63. data/app/views/spree/api/suppliers/_supplier.json.jbuilder +1 -0
  64. data/app/views/spree/api/suppliers/index.json.jbuilder +4 -0
  65. data/app/views/spree/marketplace_order_mailer/supplier_order.html.erb +119 -0
  66. data/app/views/spree/shared/unauthorized.erb +1 -0
  67. data/app/views/spree/supplier_mailer/welcome.html.erb +53 -0
  68. data/config/locales/en.yml +107 -0
  69. data/config/locales/es.yml +133 -0
  70. data/config/routes.rb +24 -0
  71. data/db/default/spree/marketplace_roles.rb +14 -0
  72. data/db/migrate/20121006073854_create_suppliers.rb +20 -0
  73. data/db/migrate/20130216070944_product_belongs_to_supplier.rb +6 -0
  74. data/db/migrate/20130405005502_stock_locations_belongs_to_supplier.rb +6 -0
  75. data/db/migrate/20130405011127_user_belongs_to_supplier.rb +6 -0
  76. data/db/migrate/20130428063053_add_balanced_token_to_suppliers.rb +7 -0
  77. data/db/migrate/20130510181443_add_supplier_id_to_ckeditor_assets.rb +8 -0
  78. data/db/migrate/20130606220913_add_permalink_to_suppliers.rb +6 -0
  79. data/db/migrate/20140323170638_add_supplier_commission_to_shipments.rb +5 -0
  80. data/db/migrate/20140416184616_migrate_payment_and_commission.rb +7 -0
  81. data/db/migrate/20140529041325_create_spree_supplier_variants.rb +15 -0
  82. data/db/migrate/20171027180043_add_paypal_email_to_suppliers.rb +5 -0
  83. data/db/seeds.rb +8 -0
  84. data/lib/generators/solidus_marketplace/install/install_generator.rb +36 -0
  85. data/lib/solidus_marketplace.rb +6 -0
  86. data/lib/solidus_marketplace/engine.rb +53 -0
  87. data/lib/solidus_marketplace/factories.rb +107 -0
  88. data/lib/solidus_marketplace/version.rb +3 -0
  89. data/lib/spree/permitted_attributes_decorator.rb +18 -0
  90. data/lib/tasks/spree_sample.rake +72 -0
  91. data/log/awesome.log +1 -0
  92. data/script/rails +7 -0
  93. data/solidus_marketplace.gemspec +46 -0
  94. data/spec/features/admin/orders_spec.rb +11 -0
  95. data/spec/features/admin/products_spec.rb +25 -0
  96. data/spec/features/admin/return_authorizations_spec.rb +7 -0
  97. data/spec/features/admin/settings_spec.rb +33 -0
  98. data/spec/features/admin/shipments_spec.rb +80 -0
  99. data/spec/features/admin/stock_management_spec.rb +156 -0
  100. data/spec/features/admin/stock_spec.rb +98 -0
  101. data/spec/features/admin/suppliers_spec.rb +130 -0
  102. data/spec/models/spree/order_decorator_spec.rb +80 -0
  103. data/spec/models/spree/payment_decorator_spec.rb +7 -0
  104. data/spec/models/spree/product_decorator_spec.rb +56 -0
  105. data/spec/models/spree/shipment_decorator_spec.rb +48 -0
  106. data/spec/models/spree/stock/splitter/marketplace_spec.rb +62 -0
  107. data/spec/models/spree/stock_location_decorator_spec.rb +33 -0
  108. data/spec/models/spree/supplier_ability_spec.rb +182 -0
  109. data/spec/models/spree/supplier_spec.rb +123 -0
  110. data/spec/models/spree/supplier_variant_spec.rb +5 -0
  111. data/spec/models/spree/user_decorator_spec.rb +57 -0
  112. data/spec/models/spree/variant_decorator_spec.rb +7 -0
  113. data/spec/spec_helper.rb +91 -0
  114. data/spec/support/ability_helpers.rb +11 -0
  115. data/spec/support/integration_helpers.rb +15 -0
  116. metadata +473 -0
@@ -0,0 +1,68 @@
1
+ <%# Updated icon %>
2
+ <% content_for :page_actions do %>
3
+ <%= button_link_to Spree.t('new_supplier'), new_object_url, icon: 'add', class: 'btn-success' %>
4
+ <% end %>
5
+
6
+ <% admin_breadcrumb(plural_resource_name(Spree::Supplier)) %>
7
+
8
+ <% content_for :table_filter_title do %>
9
+ <%= Spree.t(:search) %>
10
+ <% end %>
11
+
12
+ <% content_for :table_filter do %>
13
+ <div data-hook='admin_suppliers_filter'>
14
+ <%= search_form_for [:admin, @search] do |f| %>
15
+ <div class="form-group">
16
+ <%= f.label :name_cont, Spree.t(:name) %>
17
+ <%= f.text_field :name_cont, :size => 15, class: "form-control" %>
18
+ </div>
19
+ <div class="clear"></div>
20
+ <div class="form-actions" data-hook="admin_suppliers_index_search_buttons">
21
+ <%= button Spree.t(:search), 'search' %>
22
+ </div>
23
+ <% end %>
24
+ </div>
25
+ <% end %>
26
+
27
+ <%= paginate @collection, theme: "solidus_admin" %>
28
+
29
+ <% if @collection.any? %>
30
+ <table class="table" id="listing_suppliers">
31
+ <thead>
32
+ <tr data-hook='admin_suppliers_index_headers'>
33
+ <th><%= sort_link @search, :name, Spree::Supplier.human_attribute_name(:name) %></th>
34
+ <th><%= sort_link @search, :email, Spree::Supplier.human_attribute_name(:email) %></th>
35
+ <th><%= Spree.t(:users) %></th>
36
+ <th><%= sort_link @search, :active, Spree::Supplier.human_attribute_name(:active) %></th>
37
+ <th data-hook="admin_suppliers_index_header_actions" class="actions"></th>
38
+ </tr>
39
+ </thead>
40
+ <tbody>
41
+ <%# Updated classes! %>
42
+ <%- @collection.each do |supplier| %>
43
+ <tr <%= "style='color: red;'" if supplier.deleted? %> id="<%= spree_dom_id supplier %>" data-hook="admin_suppliers_index_rows" class="<%= cycle('odd', 'even') %>">
44
+ <!--todo: Fix this link!-->
45
+ <td><%= link_to supplier.name, edit_object_url(supplier) %></td>
46
+ <td><%= mail_to supplier.email %></td>
47
+ <td><%= supplier.users.pluck(:email).join(', ') %></td>
48
+ <td><%= supplier.active %></td>
49
+ <td class='actions actions-3' data-hook='admin_suppliers_index_row_actions'>
50
+ <% unless supplier.deleted? %>
51
+ <%= link_to_edit supplier, :no_text => true, :class => 'edit' %>
52
+ <%= link_to_delete supplier, :no_text => true %>
53
+ <% end %>
54
+ </td>
55
+ </tr>
56
+ <% end %>
57
+ </tbody>
58
+ </table>
59
+ <% else %>
60
+ <%# New alert with link to add new supplier %>
61
+ <div class="alert alert-info no-objects-found">
62
+ <%= Spree.t(:no_resource_found, resource: Spree::Supplier.model_name.human(count: :many)) %>,
63
+ <%= link_to Spree.t(:add_one), spree.new_admin_supplier_path %>!
64
+ </div>
65
+ <% end %>
66
+
67
+ <%# This is a new paginate! %>
68
+ <%= paginate @collection, theme: "solidus_admin" %>
@@ -0,0 +1,17 @@
1
+ <% content_for :page_actions do %>
2
+ <%= button_link_to Spree.t('back_to_suppliers'), spree.admin_suppliers_path, icon: 'arrow-left' %>
3
+ <% end %>
4
+
5
+ <% content_for :page_title do %>
6
+ <%= Spree.t('new_supplier') %>
7
+ <% end %>
8
+
9
+ <%= render 'spree/shared/error_messages', target: @object%>
10
+
11
+ <%= form_for [:admin, @object] do |f| %>
12
+ <%= render "form", form: f %>
13
+ <%# render 'create' and 'cancel' buttons %>
14
+ <div class="col-md-8">
15
+ <%= render :partial => 'spree/admin/shared/new_resource_links' %>
16
+ </div>
17
+ <% end %>
@@ -0,0 +1,5 @@
1
+ json.count pagination.count
2
+ json.total_count pagination.total_count
3
+ json.current_page pagination.current_page
4
+ json.pages pagination.total_pages
5
+ json.per_page pagination.limit_value
@@ -0,0 +1 @@
1
+ json.(supplier, *supplier_attributes)
@@ -0,0 +1,4 @@
1
+ json.suppliers(@suppliers) do |supplier|
2
+ json.partial!("spree/api/suppliers/supplier", supplier: supplier)
3
+ end
4
+ json.partial! 'spree/api/shared/pagination', pagination: @suppliers
@@ -0,0 +1,119 @@
1
+ <table cellspacing="0" cellpadding="0" border="0" width="100%">
2
+ <tbody>
3
+ <tr>
4
+ <td align="center" valign="top" style="padding:20px 0 20px 0">
5
+ <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="10" border="0" width="650" style="border:1px solid #e0e0e0">
6
+ <tbody>
7
+ <tr>
8
+ <td valign="top">
9
+ <figure id="logo" data-hook><%= link_to image_tag(Spree::Config[:logo]), spree.root_url %></figure>
10
+ </td>
11
+ </tr>
12
+ <tr>
13
+ <td valign="top">
14
+ <h1 style="font-size:22px;font-weight:normal;line-height:22px;"><%= Spree.t('marketplace_order_mailer.
15
+ supplier_order.hello', name: @supplier.name ) %></h1>
16
+ <p style="font-size:12px;line-height:16px;margin:0">
17
+ An order has been placed. Please confirm the shipment details, and <%= link_to 'update the shipment', spree.edit_admin_shipment_url(@shipment) %> once it has shipped.
18
+ </p>
19
+ </td>
20
+ </tr>
21
+ <tr>
22
+ <td>
23
+ <h2 style="font-size:18px;font-weight:normal;">Reference Number: <%= @shipment.number %></h2>
24
+ <h4 style="font-size:14px;font-weight:normal;">Placed on: <%= @shipment.created_at.strftime('%A %b %e, %Y at %l:%M%p %Z') %></h4>
25
+ </td>
26
+ </tr>
27
+ <tr>
28
+ <td>
29
+ <table cellspacing="0" cellpadding="0" border="0" width="650">
30
+ <thead>
31
+ <tr>
32
+ <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px;padding:5px 9px 6px 9px;line-height:1em">Shipping Information:</th>
33
+ <th width="10"></th>
34
+ <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px;padding:5px 9px 6px 9px;line-height:1em">Shipping Method:</th>
35
+ </tr>
36
+ </thead>
37
+ <tbody>
38
+ <tr>
39
+ <td valign="top" style="font-size:12px;padding:7px 9px 9px 9px;border-left:1px solid #eaeaea;border-bottom:1px solid #eaeaea;border-right:1px solid #eaeaea">
40
+ <%= @shipment.order.ship_address.firstname %> <%= @shipment.order.ship_address.lastname %><br/>
41
+ <%= @shipment.order.ship_address.address1 %><br/>
42
+ <% unless @shipment.order.ship_address.address2.blank? %><%= @shipment.order.ship_address.address2 %><br/><% end %>
43
+ <%= @shipment.order.ship_address.city %>, <%= @shipment.order.ship_address.state.name %> <%= @shipment.order.ship_address.zipcode %><br/>
44
+ <%= @shipment.order.ship_address.country.name %><br/>
45
+ T: <a href="tel:<%= @shipment.order.ship_address.phone %>" value="<%= @shipment.order.ship_address.phone %>" target="_blank"><%= @shipment.order.ship_address.phone %></a>
46
+ </td>
47
+ <td>&nbsp;</td>
48
+ <td valign="top" style="font-size:12px;padding:7px 9px 9px 9px;border-left:1px solid #eaeaea;border-bottom:1px solid #eaeaea;border-right:1px solid #eaeaea">
49
+ <%= @shipment.shipping_method.name %><br/>
50
+ </td>
51
+ </tr>
52
+ </tbody>
53
+ </table>
54
+ <br>
55
+ <table cellspacing="0" cellpadding="0" border="0" width="650" style="border:1px solid #eaeaea">
56
+ <thead>
57
+ <tr>
58
+ <th align="left" bgcolor="#EAEAEA" style="font-size:13px;padding:3px 9px">Item</th>
59
+ <th align="left" bgcolor="#EAEAEA" style="font-size:13px;padding:3px 9px">Sku</th>
60
+ <th align="center" bgcolor="#EAEAEA" style="font-size:13px;padding:3px 9px">Qty</th>
61
+ <th align="right" bgcolor="#EAEAEA" style="font-size:13px;padding:3px 9px">Subtotal</th>
62
+ </tr>
63
+ </thead>
64
+ <tbody bgcolor="#F6F6F6">
65
+ <% @shipment.line_items.each do |line_item| %>
66
+ <tr>
67
+ <td align="left" valign="top" style="font-size:11px;padding:3px 9px;border-bottom:1px dotted #cccccc">
68
+ <strong style="font-size:11px"><%= line_item.variant.name %></strong>
69
+ </td>
70
+ <td align="left" valign="top" style="font-size:11px;padding:3px 9px;border-bottom:1px dotted #cccccc"><%= line_item.variant.sku %></td>
71
+ <td align="center" valign="top" style="font-size:11px;padding:3px 9px;border-bottom:1px dotted #cccccc"><%= line_item.quantity %></td>
72
+ <td align="right" valign="top" style="font-size:11px;padding:3px 9px;border-bottom:1px dotted #cccccc">
73
+ <span><%= line_item.display_amount %></span>
74
+ </td>
75
+ </tr>
76
+ <% end %>
77
+ </tbody>
78
+ <tbody>
79
+ <tr>
80
+ <td colspan="3" align="right" style="padding:3px 9px">
81
+ Subtotal
82
+ </td>
83
+ <td align="right" style="padding:3px 9px">
84
+ <span><%= @shipment.display_item_cost %></span>
85
+ </td>
86
+ </tr>
87
+ <tr>
88
+ <td colspan="3" align="right" style="padding:3px 9px">
89
+ Shipping &amp; Handling
90
+ </td>
91
+ <td align="right" style="padding:3px 9px">
92
+ <span><%= @shipment.display_final_price %></span>
93
+ </td>
94
+ </tr>
95
+ <tr>
96
+ <td colspan="3" align="right" style="padding:3px 9px">
97
+ <strong>Grand Total</strong>
98
+ </td>
99
+ <td align="right" style="padding:3px 9px">
100
+ <strong><span><%= @shipment.display_final_price_with_items %></span></strong>
101
+ </td>
102
+ </tr>
103
+ </tbody>
104
+ </table>
105
+ </td>
106
+ </tr>
107
+ <tr>
108
+ <td bgcolor="#EAEAEA" align="center" style="background:#eaeaea;text-align:center">
109
+ <center>
110
+ <p style="font-size:12px;margin:0"><%= raw Spree.t('marketplace_order_mailer.supplier_order.thank_you_again', name: Spree::Store.current.name) %></p>
111
+ </center>
112
+ </td>
113
+ </tr>
114
+ </tbody>
115
+ </table>
116
+ </td
117
+ </tr>
118
+ </tbody>
119
+ </table>
@@ -0,0 +1 @@
1
+ <%= Spree.t(:authorization_failure) %>
@@ -0,0 +1,53 @@
1
+ <table cellspacing="0" cellpadding="0" border="0" width="100%">
2
+ <tbody>
3
+ <tr>
4
+ <td align="center" valign="top" style="padding:20px 0 20px 0">
5
+ <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="10" border="0" width="650" style="border:1px solid #e0e0e0">
6
+ <tbody>
7
+ <tr>
8
+ <td valign="top">
9
+ <h1><%= link_to Spree::Store.default.name, spree.root_url %></h1>
10
+ </td>
11
+ </tr>
12
+ <tr>
13
+ <td valign="top">
14
+ <h1 style="font-size:22px;font-weight:normal;line-height:22px;"><%= Spree.t('supplier_mailer.welcome.hello', name: @supplier.name ) %></h1>
15
+ <p style="font-size:12px;line-height:16px;">
16
+ <%= Spree.t('supplier_mailer.welcome.manage_your_account' ) %>
17
+ <%= link_to Spree.t('supplier_mailer.welcome.logging_into_your_account'), spree.login_url, target: '_blank' %>
18
+ </p>
19
+ </td>
20
+ </tr>
21
+ <tr>
22
+ <td>
23
+ <h2 style="font-size:18px;font-weight:normal;"><%= Spree.t('supplier_mailer.welcome.please_verify_your_information') %></h2>
24
+ <table cellspacing="0" cellpadding="0" border="0" width="650">
25
+ <thead>
26
+ <tr>
27
+ <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px;padding:5px 9px 6px 9px;line-height:1em"><%= Spree.t('supplier_mailer.welcome.supplier_information') %></th>
28
+ </tr>
29
+ </thead>
30
+ <tbody>
31
+ <tr>
32
+ <td valign="top" style="font-size:12px;padding:7px 9px 9px 9px;border-left:1px solid #eaeaea;border-bottom:1px solid #eaeaea;border-right:1px solid #eaeaea">
33
+ <b><%= Spree.t(:name) %>:</b> <%= @supplier.name %><br/>
34
+ <b><%= Spree.t(:email) %>:</b> <%= mail_to @supplier.email %><br/>
35
+ </td>
36
+ </tr>
37
+ </tbody>
38
+ </table>
39
+ </td>
40
+ </tr>
41
+ <tr>
42
+ <td bgcolor="#EAEAEA" align="center" style="background:#eaeaea;text-align:center">
43
+ <center>
44
+ <p style="font-size:12px;margin:0"><%= raw Spree.t('supplier_mailer.welcome.thank_you_again', name: Spree::Store.default.name) %></p>
45
+ </center>
46
+ </td>
47
+ </tr>
48
+ </tbody>
49
+ </table>
50
+ </td>
51
+ </tr>
52
+ </tbody>
53
+ </table>
@@ -0,0 +1,107 @@
1
+ en:
2
+ activerecord:
3
+ attributes:
4
+ spree/supplier:
5
+ commission_flat_rate: Commission Flat Rate
6
+ commission_percentage: Commission Percentage
7
+ name: Name
8
+ tax_id: TAX ID
9
+ url: URL
10
+ models:
11
+ spree/supplier:
12
+ one: Supplier
13
+ other: Suppliers
14
+ errors:
15
+ models:
16
+ spree/supplier:
17
+ attributes:
18
+ url:
19
+ invalid: is invalid. Please be sure to include include 'http://'
20
+ not_responding: 'is invalid, not responding or redirecting to another location'
21
+ spree:
22
+ admin:
23
+ tab:
24
+ stock_locations: Stock Locations
25
+ suppliers: Suppliers
26
+ shipments: Shipments
27
+ profile: Profile
28
+ earnings: Earnings
29
+ marketplace_settings:
30
+ update:
31
+ success: Marketplace settings successfully updated.
32
+ orders:
33
+ edit:
34
+ approve_marketplace_orders: Approve Marketplace Orders
35
+ resend_marketplace_orders: Resend Marketplace Orders
36
+ marketplace_order_approval_confirmation: This will send an email notification to each supplier. Continue?
37
+ show:
38
+ approve_marketplace_orders: Approve Marketplace Orders
39
+ resend_marketplace_orders: Resend Marketplace Orders
40
+ marketplace_order_approval_confirmation: This will send an email notification to each supplier. Continue?
41
+ back_to_orders_list: Back To Orders List
42
+ back_to_suppliers: Back To Suppliers
43
+ business: Business
44
+ cancel: Cancel
45
+ company_info: Company Info
46
+ confirm_order: Confirm Order
47
+ contact_address: Contact Address
48
+ automatically_deliver_orders_to_supplier: Automatically Deliver Orders To Supplier
49
+ send_supplier_email: Send Welcome Email to New Suppliers
50
+ default_commission_percentage: Default Commission Percentage
51
+ default_commission_flat_rate: Default Commission Flat Rate
52
+ drop_ship: Drop Ship
53
+ earnings: Earnings
54
+ earnings_description: Earnings for Suppliers over the specified time period
55
+ marketplace_order_mailer:
56
+ supplier_order:
57
+ hello: "Hello %{name},"
58
+ subject: "%{name} Marketplace Order #%{number}"
59
+ thank_you_again: "Thank you again for your business, <b>%{name}</b>"
60
+ marketplace_order_number: "Marketplace Order #%{number}"
61
+ marketplace_orders: Marketplace Orders
62
+ marketplace_settings: Marketplace Settings
63
+ editing_supplier: Editing Supplier
64
+ individual: Individual
65
+ manage: Manage
66
+ must_be_logged_in: 'Must Be Logged In'
67
+ name: Name
68
+ new_supplier: New Supplier
69
+ or: or
70
+ order_state:
71
+ active: Active
72
+ completed: Completed
73
+ confirmed: Confirmed
74
+ delivered: Delivered
75
+ resend_order_to_supplier: Resend Order To Supplier
76
+ save: Save
77
+ search: Search
78
+ send_order_to_supplier: Send Order To Supplier
79
+ shared:
80
+ unauthorized:
81
+ explained: You are not authorized to access this page.
82
+ unauthorized: Unauthorized
83
+ show_only_incomplete_orders: Show Only Incomplete Orders
84
+ signup: Sign Up
85
+ signup_to_become_a_supplier: 'Sign Up To Become A Supplier'
86
+ supplier: Supplier
87
+ supplier_details: Supplier Details
88
+ supplier_earnings: Supplier Earnings
89
+ supplier_info: Supplier Info
90
+ supplier_information: Supplier Information
91
+ supplier_mailer:
92
+ welcome:
93
+ hello: "Hello %{name},"
94
+ logging_into_your_account: logging into your account.
95
+ manage_your_account: You may now manage your profile and inventory by
96
+ subject: 'Thank you for signing up. Please verify your information.'
97
+ thank_you_again: "Thank you again for your business, <b>%{name}</b>"
98
+ thank_you_for_signing_up: Thank you for signing up to be a supplier.
99
+ supplier_paypal_email: PayPal Email
100
+ supplier_placeholder: Add a Supplier
101
+ supplier_registration:
102
+ already_signed_up: "You've already signed up to become a supplier."
103
+ create:
104
+ invalid_password: Invalid password please sign in or sign up.
105
+ success: Thank you for signing up!
106
+ supplier_signup: Supplier Sign Up
107
+ suppliers: Suppliers
@@ -0,0 +1,133 @@
1
+ es:
2
+ activerecord:
3
+ attributes:
4
+ spree/supplier:
5
+ commission_flat_rate: Tarifa fija de comisión
6
+ commission_percentage: Porcentaje de comisión
7
+ name: Nombre
8
+ tax_id: TAX ID
9
+ url: URL
10
+ address1: Dirección
11
+ address2: Dirección (continuación)
12
+ city: Ciudad
13
+ commission: Comisión
14
+ country: País
15
+ email: Email
16
+ state: Estado
17
+ active: Activo
18
+ url: URL
19
+ zipcode: Código Postal(ZipCode)
20
+ supplier_info: Información de proveedor
21
+ supplier_signup: Registro de proveedor
22
+ suppliers: Proveedores
23
+ spree/shipment:
24
+ created_at: Creado
25
+ number: Número
26
+ state: Estatus
27
+ item_cost: Costo ítem
28
+ cost: Costo
29
+ total_tax: Total impuesto
30
+ final_price: Precio final
31
+ supplier_commission: Comisión Proveedor
32
+ errors:
33
+ models:
34
+ spree/supplier:
35
+ attributes:
36
+ url:
37
+ invalid: es inválido. Por favor asegúrece que 'http://' esté incluido
38
+ not_responding: 'es inválido, no responde o ha redireccionado a otra url'
39
+ marketplace_order_number: "Mercado Orden #%{number}"
40
+ marketplace_orders: Mercado Ordenes
41
+ marketplace_settings: Mercado Configuración
42
+ must_be_logged_in: 'Debe Estar Autenticado'
43
+ signup: Registro
44
+ signup_to_become_a_supplier: 'Autentíquese para ser un Proveedor'
45
+ spree:
46
+ admin:
47
+ marketplace_settings:
48
+ update:
49
+ success: Configuración mercado actualizada correctamente
50
+ orders:
51
+ marketplace_order_order_header:
52
+ marketplace_order_ids: DSO IDs
53
+ edit:
54
+ approve_marketplace_orders: Ordenes aprobadas por el proveedor
55
+ resend_marketplace_orders: Reenviar ordenes al proveedor
56
+ marketplace_order_approval_confirmation: Se le enviará una notificación por correo electrónico a cada proveedor. ¿Desea continuar?
57
+ show:
58
+ approve_marketplace_orders: Ordene aprobadas por el proveedor
59
+ resend_marketplace_orders: Reenviar ordenes al proveedor
60
+ marketplace_order_approval_confirmation: Se le enviará una notificación por correo electrónico a cada proveedor. ¿Desea continuar?
61
+ suppliers:
62
+ edit:
63
+ back_to_suppliers: Regresar a los proveedores
64
+ new:
65
+ new_supplier: Nuevo Proveedor
66
+ form:
67
+ supplier_details: Detalles del Proveedor
68
+ supplier_address: Dirección del Proveedor
69
+ marketplace_orders:
70
+ deliver:
71
+ error: "La orden %{number} no pudo ser enviada al proveedor."
72
+ success: "La orden %{number} fue enviada al proveedor."
73
+ orders_sent: Todas las ordenes fueron enviadas a los proveedores
74
+ orders_not_sent: Algunas o todas las ordenes no pudieron ser enviadas. Por favor contacte directamente al proveedor.
75
+ back_to_orders_list: Regresar a las ordenes
76
+ back_to_suppliers: Regresar a los proveedores
77
+ business: Negocio
78
+ cancel: Cancelar
79
+ company_info: Informacion de la compañia
80
+ confirm_order: Confirmar Orden
81
+ contact_address: Dirección de contacto
82
+ drop_ship: Drop Ship
83
+ editing_supplier: Editar proveedor
84
+ default_commission_flat_rate: Comision por defecto
85
+ default_commission_percentage: Porcentaje de comision por defecto
86
+ automatically_deliver_orders_to_supplier: Enviar orden automaticamente a los proveedores
87
+ send_supplier_email: Enviar correo al proveedor
88
+ individual: Individual
89
+ listing_suppliers: Lista de proveedores
90
+ manage: Gestionar
91
+ name: Nombre
92
+ or: ó
93
+ suppliers: Proveedores
94
+ listing_shipments: 'Lista de envíos'
95
+ order_state:
96
+ active: Activo
97
+ completed: Completado
98
+ confirmed: Confirmado
99
+ delivered: Entregado
100
+ resend_order_to_supplier: Reenviar orden al proveedor.
101
+ save: Guardar
102
+ search: Buscar
103
+ send_order_to_supplier: Enviar orden al proveedor.
104
+ show_only_incomplete_orders: Solo mostrar ordenes incompletas
105
+ supplier: Proveedor
106
+ supplier_information: Información del proveedor
107
+ marketplace_order_mailer:
108
+ supplier_order:
109
+ hello: "Hola %{name},"
110
+ subject: "%{name} Orden al proveedor #%{number}"
111
+ thank_you_again: "Gracias nuevamente por su negocio, <b>%{name}</b>"
112
+ shared:
113
+ unauthorized:
114
+ explained: Usted no está autorizado a acceder a esta página.
115
+ unauthorized: No autorizado
116
+ supplier_mailer:
117
+ welcome:
118
+ hello: "Hola %{name},"
119
+ check_your_status: Puede revisar el estado de su pedido por
120
+ logging_into_your_account: Autentíquese.
121
+ once_your_request_is_approved: Una vez que su pedido sea aprobado podrá gestionar su inventario.
122
+ subject: 'Gracias por autenticarse. Por favor verifique la información.'
123
+ thank_you_again: "Gracias nuevamente por su negocio, <b>%{name}</b>"
124
+ thank_you_for_signing_up: Gracias por autenticarse para ser un proveedor.
125
+ suppliers:
126
+ already_signed_up: "Ya está autenticado para convertirse en un proveedor."
127
+ create:
128
+ success: Gracias por autenticarse!
129
+ supplier_registration:
130
+ already_signed_up: "Ya inicio sesión como proveedor."
131
+ create:
132
+ invalid_password: Clave incorrecta por favor inicie sesion.
133
+ success: Gracias por registrarse!