office_clerk 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +73 -0
  3. data/.rubocop.yml +6 -0
  4. data/.travis.yml +9 -0
  5. data/Gemfile +63 -0
  6. data/Gemfile.lock +367 -0
  7. data/Guardfile +28 -0
  8. data/README.md +44 -0
  9. data/Rakefile +6 -0
  10. data/app/assets/images/admin/baskets-2.jpg +0 -0
  11. data/app/assets/images/admin/baskets.jpg +0 -0
  12. data/app/assets/images/admin/categories-2.jpg +0 -0
  13. data/app/assets/images/admin/categories.jpg +0 -0
  14. data/app/assets/images/admin/clerks-2.jpg +0 -0
  15. data/app/assets/images/admin/clerks.jpg +0 -0
  16. data/app/assets/images/admin/orders-2.jpg +0 -0
  17. data/app/assets/images/admin/orders.jpg +0 -0
  18. data/app/assets/images/admin/products-2.jpg +0 -0
  19. data/app/assets/images/admin/products.jpg +0 -0
  20. data/app/assets/images/admin/purchases-2.jpg +0 -0
  21. data/app/assets/images/admin/purchases.jpg +0 -0
  22. data/app/assets/images/admin/suppliers-2.jpg +0 -0
  23. data/app/assets/images/admin/suppliers.jpg +0 -0
  24. data/app/assets/images/alpha.png +0 -0
  25. data/app/assets/images/down-icon.png +0 -0
  26. data/app/assets/images/header.gif +0 -0
  27. data/app/assets/images/hihih.jpg +0 -0
  28. data/app/assets/images/hue.png +0 -0
  29. data/app/assets/images/koe.jpg +0 -0
  30. data/app/assets/images/missing.png +0 -0
  31. data/app/assets/images/saturation.png +0 -0
  32. data/app/assets/images/shop/basket.jpg +0 -0
  33. data/app/assets/images/shop/farfalla-logo.jpg +0 -0
  34. data/app/assets/images/shop/header.gif +0 -0
  35. data/app/assets/images/shop/header.jpg +0 -0
  36. data/app/assets/images/shop/header.png +0 -0
  37. data/app/assets/images/shop/kansi.jpg +0 -0
  38. data/app/assets/images/shop/kansi.png +0 -0
  39. data/app/assets/images/shop/logo.png +0 -0
  40. data/app/assets/images/shop/menu-gourmet.jpg +0 -0
  41. data/app/assets/images/shop/menu-hius.jpg +0 -0
  42. data/app/assets/images/shop/menu-huonetuoksu.jpg +0 -0
  43. data/app/assets/images/shop/menu-info.jpg +0 -0
  44. data/app/assets/images/shop/menu-kasvo.jpg +0 -0
  45. data/app/assets/images/shop/menu-laukut.jpg +0 -0
  46. data/app/assets/images/shop/menu-luomu.jpg +0 -0
  47. data/app/assets/images/shop/menu-men.jpg +0 -0
  48. data/app/assets/images/shop/menu-oljy.jpg +0 -0
  49. data/app/assets/images/shop/menu-tuoksu1.jpg +0 -0
  50. data/app/assets/images/shop/menu-vaatteet.jpg +0 -0
  51. data/app/assets/images/shop/menu-valaisin.jpg +0 -0
  52. data/app/assets/images/shop/menu-vartalo.jpg +0 -0
  53. data/app/assets/images/shop/spacer.gif +0 -0
  54. data/app/assets/images/shop/tausta.jpg +0 -0
  55. data/app/assets/images/shop/tervetuloa.gif +0 -0
  56. data/app/assets/images/shop/valk.png +0 -0
  57. data/app/assets/images/shop/valk3.png +0 -0
  58. data/app/assets/images/shop/violetti-lev.jpg +0 -0
  59. data/app/assets/images/shop/violetti.jpg +0 -0
  60. data/app/assets/images/ui-anim_basic_16x16.gif +0 -0
  61. data/app/assets/images/up-icon.png +0 -0
  62. data/app/assets/javascripts/admin.js +29 -0
  63. data/app/assets/javascripts/shop.js +30 -0
  64. data/app/assets/stylesheets/admin.css.scss +129 -0
  65. data/app/assets/stylesheets/shop-receipt.css.scss +80 -0
  66. data/app/assets/stylesheets/shop.css.scss +403 -0
  67. data/app/controllers/admin_controller.rb +23 -0
  68. data/app/controllers/application_controller.rb +41 -0
  69. data/app/controllers/baskets_controller.rb +176 -0
  70. data/app/controllers/categories_controller.rb +69 -0
  71. data/app/controllers/clerks_controller.rb +64 -0
  72. data/app/controllers/orders_controller.rb +57 -0
  73. data/app/controllers/products_controller.rb +126 -0
  74. data/app/controllers/purchases_controller.rb +72 -0
  75. data/app/controllers/sessions_controller.rb +46 -0
  76. data/app/controllers/shop_controller.rb +90 -0
  77. data/app/controllers/suppliers_controller.rb +63 -0
  78. data/app/helpers/admin_helper.rb +28 -0
  79. data/app/helpers/application_helper.rb +25 -0
  80. data/app/helpers/baskets_helper.rb +4 -0
  81. data/app/helpers/categories_helper.rb +4 -0
  82. data/app/helpers/orders_helper.rb +4 -0
  83. data/app/helpers/products_helper.rb +4 -0
  84. data/app/helpers/purchases_helper.rb +4 -0
  85. data/app/helpers/shop_helper.rb +17 -0
  86. data/app/helpers/suppliers_helper.rb +4 -0
  87. data/app/mailers/.keep +0 -0
  88. data/app/models/basket.rb +114 -0
  89. data/app/models/category.rb +27 -0
  90. data/app/models/clerk.rb +46 -0
  91. data/app/models/item.rb +26 -0
  92. data/app/models/order.rb +72 -0
  93. data/app/models/product.rb +100 -0
  94. data/app/models/purchase.rb +26 -0
  95. data/app/models/supplier.rb +15 -0
  96. data/app/views/addresses/_form_fields.html.haml +4 -0
  97. data/app/views/addresses/show.html.haml +23 -0
  98. data/app/views/baskets/_small.html.haml +25 -0
  99. data/app/views/baskets/edit.html.haml +74 -0
  100. data/app/views/baskets/index.html.haml +55 -0
  101. data/app/views/baskets/show.html.haml +18 -0
  102. data/app/views/categories/_treeview.html.haml +8 -0
  103. data/app/views/categories/_triple.html.haml +12 -0
  104. data/app/views/categories/edit.html.haml +36 -0
  105. data/app/views/categories/index.html.haml +49 -0
  106. data/app/views/categories/show.html.haml +30 -0
  107. data/app/views/clerks/edit.html.haml +20 -0
  108. data/app/views/clerks/index.html.haml +37 -0
  109. data/app/views/clerks/show.html.haml +19 -0
  110. data/app/views/layouts/_admin_menu.html.haml +14 -0
  111. data/app/views/layouts/_google.haml +8 -0
  112. data/app/views/layouts/_messages.html.haml +5 -0
  113. data/app/views/layouts/admin.html.haml +42 -0
  114. data/app/views/layouts/shop.html.haml +96 -0
  115. data/app/views/orders/edit.html.haml +25 -0
  116. data/app/views/orders/index.html.haml +93 -0
  117. data/app/views/orders/show.html.haml +37 -0
  118. data/app/views/products/_line.html.haml +25 -0
  119. data/app/views/products/_name.html.haml +4 -0
  120. data/app/views/products/_online.html.haml +2 -0
  121. data/app/views/products/_triple.html.haml +12 -0
  122. data/app/views/products/edit.html.haml +42 -0
  123. data/app/views/products/index.html.haml +86 -0
  124. data/app/views/products/show.html.haml +94 -0
  125. data/app/views/purchases/edit.html.haml +9 -0
  126. data/app/views/purchases/index.html.haml +52 -0
  127. data/app/views/purchases/show.html.haml +32 -0
  128. data/app/views/sessions/new.html.haml +10 -0
  129. data/app/views/sessions/new_clerk.html.haml +22 -0
  130. data/app/views/shop/_groups.html.haml +8 -0
  131. data/app/views/shop/_menu.html.haml +5 -0
  132. data/app/views/shop/_sub.html.haml +0 -0
  133. data/app/views/shop/checkout.haml +142 -0
  134. data/app/views/shop/group.html.haml +9 -0
  135. data/app/views/shop/main_group.html.haml +9 -0
  136. data/app/views/shop/order.haml +104 -0
  137. data/app/views/shop/product.html.haml +67 -0
  138. data/app/views/shop/product_list.html.haml +50 -0
  139. data/app/views/shop/saved_search.html +6 -0
  140. data/app/views/shop/sub_group.html.haml +19 -0
  141. data/app/views/shop/tuotteista.html.haml +40 -0
  142. data/app/views/shop/welcome.html.haml +103 -0
  143. data/app/views/suppliers/edit.html.haml +10 -0
  144. data/app/views/suppliers/index.html.haml +40 -0
  145. data/app/views/suppliers/show.html.haml +27 -0
  146. data/bin/bundle +3 -0
  147. data/bin/rails +8 -0
  148. data/bin/rake +8 -0
  149. data/bin/rspec +7 -0
  150. data/bin/spring +18 -0
  151. data/config.ru +7 -0
  152. data/config/application.example.yml +13 -0
  153. data/config/application.rb +59 -0
  154. data/config/application.yml +13 -0
  155. data/config/boot.rb +7 -0
  156. data/config/database.yml +25 -0
  157. data/config/environment.rb +6 -0
  158. data/config/environments/development.rb +31 -0
  159. data/config/environments/production.rb +80 -0
  160. data/config/environments/test.rb +36 -0
  161. data/config/i18n-tasks.yml +11 -0
  162. data/config/initializers/attack.rb +32 -0
  163. data/config/initializers/backtrace_silencers.rb +7 -0
  164. data/config/initializers/filter_parameter_logging.rb +4 -0
  165. data/config/initializers/inflections.rb +16 -0
  166. data/config/initializers/migrate.rb +6 -0
  167. data/config/initializers/mime_types.rb +6 -0
  168. data/config/initializers/secret_token.rb +12 -0
  169. data/config/initializers/session_store.rb +3 -0
  170. data/config/initializers/simple_form.rb +149 -0
  171. data/config/initializers/simple_form_bootstrap.rb +48 -0
  172. data/config/initializers/wrap_parameters.rb +14 -0
  173. data/config/locales/config.yml +23 -0
  174. data/config/locales/en.yml +183 -0
  175. data/config/locales/fi.yml +211 -0
  176. data/config/routes.rb +108 -0
  177. data/db/migrate/20131224171442_clerks.rb +15 -0
  178. data/db/migrate/20131226110406_suppliers.rb +9 -0
  179. data/db/migrate/20131226143612_categories.rb +18 -0
  180. data/db/migrate/20131226143747_items.rb +14 -0
  181. data/db/migrate/20131226144134_orders.rb +21 -0
  182. data/db/migrate/20131226144316_baskets.rb +12 -0
  183. data/db/migrate/20131226151151_purchases.rb +11 -0
  184. data/db/migrate/20131226151332_products.rb +27 -0
  185. data/db/schema.rb +138 -0
  186. data/db/seeds.rb +4 -0
  187. data/lib/assets/.keep +0 -0
  188. data/lib/office_clerk.rb +20 -0
  189. data/lib/office_clerk/shipping_method.rb +35 -0
  190. data/lib/tasks/.keep +0 -0
  191. data/lib/tasks/import.rake +33 -0
  192. data/lib/templates/haml/scaffold/_form.html.haml +8 -0
  193. data/office_clerk.gemspec +46 -0
  194. data/public/404.html +58 -0
  195. data/public/422.html +58 -0
  196. data/public/500.html +57 -0
  197. data/public/favicon.ico +0 -0
  198. data/public/humans.txt +20 -0
  199. data/public/robots.txt +5 -0
  200. data/spec/controllers/baskets_controller_spec.rb +112 -0
  201. data/spec/controllers/categories_controller_spec.rb +133 -0
  202. data/spec/controllers/clerks_controller_spec.rb +70 -0
  203. data/spec/controllers/orders_controller_spec.rb +105 -0
  204. data/spec/controllers/products_controller_spec.rb +138 -0
  205. data/spec/controllers/purchases_controller_spec.rb +123 -0
  206. data/spec/controllers/sessions_controller_spec.rb +18 -0
  207. data/spec/controllers/suppliers_controller_spec.rb +137 -0
  208. data/spec/factories/addresses.rb +11 -0
  209. data/spec/factories/baskets.rb +15 -0
  210. data/spec/factories/categories.rb +8 -0
  211. data/spec/factories/clerks.rb +15 -0
  212. data/spec/factories/items.rb +19 -0
  213. data/spec/factories/orders.rb +9 -0
  214. data/spec/factories/products.rb +10 -0
  215. data/spec/factories/purchases.rb +10 -0
  216. data/spec/factories/suppliers.rb +7 -0
  217. data/spec/features/baskets/buttons_spec.rb +35 -0
  218. data/spec/features/baskets/edit_spec.rb +50 -0
  219. data/spec/features/baskets/index_spec.rb +12 -0
  220. data/spec/features/baskets/search_spec.rb +33 -0
  221. data/spec/features/baskets/show_spec.rb +21 -0
  222. data/spec/features/categories_spec.rb +21 -0
  223. data/spec/features/clerks_spec.rb +21 -0
  224. data/spec/features/orders_spec.rb +14 -0
  225. data/spec/features/products/index_spec.rb +30 -0
  226. data/spec/features/products/new_spec.rb +20 -0
  227. data/spec/features/purchases_spec.rb +14 -0
  228. data/spec/features/shops_spec.rb +18 -0
  229. data/spec/features/suppliers_spec.rb +18 -0
  230. data/spec/models/baskets/inventory_spec.rb +34 -0
  231. data/spec/models/baskets/items_spec.rb +37 -0
  232. data/spec/models/baskets/products_spec.rb +31 -0
  233. data/spec/models/category_spec.rb +18 -0
  234. data/spec/models/clerk/email_spec.rb +69 -0
  235. data/spec/models/clerk/password_spec.rb +83 -0
  236. data/spec/models/item_spec.rb +33 -0
  237. data/spec/models/locale_spec.rb +17 -0
  238. data/spec/models/order_spec.rb +19 -0
  239. data/spec/models/product_spec.rb +29 -0
  240. data/spec/models/purchase_spec.rb +8 -0
  241. data/spec/models/supplier_spec.rb +8 -0
  242. data/spec/routing/baskets_routing_spec.rb +35 -0
  243. data/spec/routing/categories_routing_spec.rb +35 -0
  244. data/spec/routing/orders_routing_spec.rb +35 -0
  245. data/spec/routing/products_routing_spec.rb +35 -0
  246. data/spec/routing/purchases_routing_spec.rb +35 -0
  247. data/spec/routing/suppliers_routing_spec.rb +35 -0
  248. data/spec/spec_helper.rb +74 -0
  249. data/spec/support/request_helper.rb +31 -0
  250. data/test/fixtures/baskets.yml +41993 -0
  251. data/test/fixtures/categories.yml +638 -0
  252. data/test/fixtures/clerks.yml +694 -0
  253. data/test/fixtures/items.yml +83651 -0
  254. data/test/fixtures/orders.yml +58918 -0
  255. data/test/fixtures/products.yml +110904 -0
  256. data/test/fixtures/purchases.yml +1755 -0
  257. data/test/fixtures/suppliers.yml +341 -0
  258. data/todo +8 -0
  259. metadata +607 -0
data/Guardfile ADDED
@@ -0,0 +1,28 @@
1
+ guard :bundler do
2
+ watch('Gemfile')
3
+ # Uncomment next line if your Gemfile contains the `gemspec' command.
4
+ # watch(/^.+\.gemspec/)
5
+ end
6
+
7
+
8
+ guard :rspec , :cmd => "./bin/rspec" do
9
+ watch(%r{^spec/.+_spec\.rb$})
10
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
11
+ watch('spec/spec_helper.rb') { "spec" }
12
+
13
+ # Rails example
14
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
15
+ watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
16
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
17
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
18
+ watch('config/routes.rb') { "spec/routing" }
19
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
20
+
21
+ # Capybara features specs
22
+ watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
23
+
24
+ # Turnip features and steps
25
+ watch(%r{^spec/acceptance/(.+)\.feature$})
26
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
27
+ end
28
+
data/README.md ADDED
@@ -0,0 +1,44 @@
1
+ ## Office Clerk
2
+ [![Build Status](https://travis-ci.org/rubyclerks/office_clerk.svg?branch=master)](https://travis-ci.org/rubyclerks/office_clerk)
3
+ [![Code Climate](https://codeclimate.com/github/rubyclerks/office_clerk/badges/gpa.svg)](https://codeclimate.com/github/rubyclerks/office_clerk)
4
+ [![Test Coverage](https://codeclimate.com/github/rubyclerks/office_clerk/badges/coverage.svg)](https://codeclimate.com/github/rubyclerks/office_clerk)
5
+
6
+ Office Clerk is the back office helper, your accountant, storage manager, secretary and more. It is the heart of the "RubyClerks team":http://rubyclerks.org , the manager as it were.
7
+
8
+ #### Status
9
+
10
+ The clerks are under heavy development in public beta one could say.
11
+
12
+ A first push of development resulted in a system that has been used for backend office work since 2/2014
13
+
14
+ Currenly refinements and front end work is underway and scheduled for x-mas.
15
+
16
+ ### Other clerks
17
+
18
+ The original plan (as per web-site) is being implemented: several extension "clerk" will be optional. Some are ready (one not)
19
+
20
+ ### AccountantClerk
21
+
22
+ This currenly does graphical sales reports. Purchase order creation is planned.
23
+
24
+ ### Print Clerk
25
+
26
+ A invoice generator
27
+
28
+ ### Sales Clerk
29
+
30
+ Work is underway to make the front end work. ie your standard e-commerce front end.
31
+
32
+ ### Getting Started
33
+
34
+ Clone the office clerk, migrate, and click around. Fork and help.
35
+
36
+ THe final version wil work by cloning the sales clerk, OR adding the officeclerk engine into your existing app. Docs follow.
37
+
38
+ ### Similar Projects
39
+
40
+ * "Spree":http:spreecommerce.com , the grandfather of the rails ecommerce has grown big and mighty
41
+ * "Ror-e":http://ror-e.com/ has some nice purchase features, and did great work to standardise rails usage
42
+ * "MarketStreet":https://github.com/alex-nexus/market_street/ has taken the ball from ror-e and is running strong with an impressive list of goals
43
+ * "TryShoppe":http://tryshoppe.com/ is new and lightweight. Very nice looking interface.
44
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+ require 'i18n-spec/tasks'
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ OfficeClerk::Application.load_tasks
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,29 @@
1
+ //= require jquery
2
+ //= require jquery-ui
3
+ //= require jquery-ui/datepicker-fi
4
+ //= require jquery_ujs
5
+ //= require turbolinks
6
+ //= require bootstrap
7
+ //= require_self
8
+
9
+ $.datepicker.setDefaults( $.datepicker.regional[ "fi" ] );
10
+
11
+ $(function() {
12
+ $( ".datepicker" ).datepicker( );
13
+ });
14
+
15
+ function initPage(){
16
+ // Barcode
17
+ $('.barcode').each(function(index){
18
+ $(this).barcode($(this).attr('data-barcode'), $(this).attr('data-type-barcode'));
19
+ });
20
+
21
+ // Add Error Form style with bootstrap
22
+ $("div.form-group>div.field_with_errors").parent().addClass("error");
23
+ $("#error_explanation").addClass("text-error");
24
+
25
+ }
26
+
27
+ $(window).bind('page:change', function() {
28
+ initPage();
29
+ });
@@ -0,0 +1,30 @@
1
+
2
+ //= require jquery
3
+ //= require jquery-ui
4
+ //= require jquery_ujs
5
+ //= require turbolinks
6
+ //= require bootstrap
7
+ //= require_self
8
+
9
+ function shipmentSelected(){
10
+ var val = $("input[name='order[shipment_type]']:checked").data("price");
11
+ var ship = parseFloat(val);
12
+ val = $("#basket_total").text();
13
+ var basket = parseFloat(val);
14
+ $("#shipping_cost").text( ship.toFixed(2) );
15
+ $("#order_total").text( (ship + basket).toFixed(2) );
16
+ }
17
+
18
+ function fillAddress(){
19
+ var old = $("#previous_address");
20
+ var target = $("#address_form");
21
+ target.find("#order_name").val( old.find(".name").text() );
22
+ target.find("#order_street").val( old.find(".street").text() );
23
+ target.find("#order_city").val( old.find(".city").text() );
24
+ target.find("#order_phone").val( old.find(".phone").text() );
25
+ }
26
+
27
+ $(function() {
28
+ $("input[name='order[shipment_type]']").click(shipmentSelected);
29
+ $("#fill_address").click(fillAddress);
30
+ });
@@ -0,0 +1,129 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *= require jquery-ui
11
+ */
12
+
13
+
14
+ $navbar-inverse-bg: #6827EC;
15
+ $navbar-height:70px;
16
+ body { padding-top: 80px; }
17
+
18
+ $primary-color: #6827EC;
19
+ $topbar-bg: $primary-color;
20
+ $global-radius: 6px;
21
+ $open: "Open Sans","Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;
22
+
23
+ $table-head-bg: scale-color($primary-color, $lightness: 75%);
24
+ $table-bg: scale-color($primary-color, $lightness: 98%);
25
+ $table-even-row-bg: scale-color($primary-color, $lightness: 90%);
26
+ $table-border-color: scale-color($primary-color, $lightness: 85%);
27
+
28
+ $tausta-bg: scale-color($primary-color, $lightness: 95%);
29
+
30
+
31
+ @import "bootstrap";
32
+
33
+ .container-fluid{
34
+ max-width: 90%;
35
+ }
36
+
37
+ a.online{
38
+ color: green;
39
+ }
40
+ .navbar {
41
+ font-size: 1.7rem;
42
+ };
43
+ .alert-notice {
44
+ background-color: #00FFEB;
45
+ padding: 8px;
46
+ radius: $global-radius;
47
+ }
48
+
49
+ .alert-error {
50
+ background-color: red;
51
+ };
52
+
53
+
54
+ body {
55
+ font-family: $open;
56
+ }
57
+
58
+ .new-button {
59
+ top: 15px;
60
+ text-align: right;
61
+ }
62
+
63
+ .strip {
64
+ position:relative;
65
+ bottom:-48px;
66
+ margin-bottom: 7px;
67
+ }
68
+
69
+ .pagination {
70
+ margin-top: 55px;
71
+ }
72
+
73
+
74
+ ul.pagination {
75
+ margin-bottom: 7px;
76
+ }
77
+
78
+ ul.pagination li {
79
+ font-size: 1.4rem;
80
+ }
81
+
82
+ ul.pagination li a{
83
+ background-color: rgba(255, 255, 255, 0.9);
84
+ }
85
+
86
+ .admin-table {
87
+ font-size: 0.5rem;
88
+
89
+ }
90
+
91
+ thead, tbody { vertical-align: top;
92
+
93
+ }
94
+
95
+ .tausta {
96
+ background: $tausta-bg;
97
+ border-radius: 6px;
98
+ padding-top: 6px;
99
+ margin-bottom: 20px;
100
+ }
101
+
102
+ .products{
103
+ background: image-url('admin/products-2.jpg') no-repeat;
104
+ }
105
+
106
+ .baskets{
107
+ background: image-url('admin/baskets-2.jpg') no-repeat;
108
+ }
109
+
110
+ .orders{
111
+ background: image-url('admin/orders-2.jpg') no-repeat;
112
+ }
113
+
114
+ .purchases{
115
+ background: image-url('admin/purchases-2.jpg') no-repeat;
116
+ height: 161px;
117
+ }
118
+
119
+ .categories{
120
+ background: image-url('admin/categories-2.jpg') no-repeat;
121
+ }
122
+
123
+ .suppliers{
124
+ background: image-url('admin/suppliers-2.jpg') no-repeat;
125
+ }
126
+
127
+ .clerks{
128
+ background: image-url('admin/clerks-2.jpg') no-repeat;
129
+ }
@@ -0,0 +1,80 @@
1
+ @page {
2
+ margin-left:8mm;
3
+ margin-right:8mm;
4
+ margin-top:8mm;
5
+ margin-bottom:8mm;
6
+ }
7
+
8
+ body {
9
+ font-family:"Trebuchet MS";
10
+ font-size:14px;
11
+ color:#000000;
12
+ width: 700px;
13
+ }
14
+
15
+
16
+ div#header {
17
+ text-align: center;
18
+ padding: 6px;
19
+ line-height: 1.3;
20
+ width: 700px;
21
+ }
22
+
23
+ #header img {
24
+ max-width: 670px;
25
+ }
26
+
27
+ .shop { font-weight: bold; font-size: 40px; line-height: 1.2;}
28
+ .info { padding: 6px; font-size: 30px; text-align: center; line-height: 1.3; width: 700px;}
29
+
30
+ .line_items {
31
+ width: 700px;
32
+ }
33
+
34
+ div.wrapper {
35
+ width: 700px;
36
+ padding-top: 48px;
37
+ text-align: left;
38
+ }
39
+
40
+ div.totals {
41
+ margin-bottom: 20px;
42
+ padding: 6px;
43
+ }
44
+
45
+ table.totals {
46
+ width: 700px;
47
+ }
48
+
49
+
50
+ .cell.total {
51
+ text-align: right;
52
+ }
53
+
54
+ .cel1 {
55
+ width: 200px;
56
+ }
57
+
58
+ .cel2 {
59
+ width: 80px;
60
+ }
61
+
62
+
63
+ div.footer {
64
+ width: 700px;
65
+ padding: 6px;
66
+ text-align: center;
67
+ }
68
+
69
+ .footer .bold {
70
+ width: 100px;
71
+ }
72
+ .footer .cell {
73
+ width: 220px;
74
+ }
75
+
76
+ .no-print, .no-print * {
77
+ display: none;
78
+ }
79
+
80
+