stockor 0.1.9 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (313) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +254 -72
  4. data/Guardfile +1 -1
  5. data/README.md +24 -3
  6. data/app.json +28 -0
  7. data/client/skr/Extension.coffee +18 -0
  8. data/client/skr/components/BankAccountFinder.cjsx +34 -0
  9. data/client/skr/components/Currency.cjsx +19 -0
  10. data/client/skr/components/CustomerFinder.cjsx +37 -0
  11. data/client/skr/components/CustomerLink.cjsx +13 -0
  12. data/client/skr/components/CustomerProjectFinder.cjsx +49 -0
  13. data/client/skr/components/GlAccountChooser.cjsx +38 -0
  14. data/client/skr/components/InvoiceFinder.cjsx +37 -0
  15. data/client/skr/components/InvoiceLink.cjsx +13 -0
  16. data/client/skr/components/LocationChooser.cjsx +37 -0
  17. data/client/skr/components/PaymentCategoryFinder.cjsx +34 -0
  18. data/client/skr/components/PrintFormChooser.cjsx +29 -0
  19. data/client/skr/components/SalesOrderFinder.cjsx +38 -0
  20. data/client/skr/components/ScreenControls.cjsx +20 -0
  21. data/client/skr/components/SkuFinder.cjsx +30 -0
  22. data/client/skr/components/SkuLines.cjsx +76 -0
  23. data/client/skr/components/SystemSettings.cjsx +26 -0
  24. data/client/skr/components/TermsChooser.cjsx +40 -0
  25. data/client/skr/components/ToolbarButton.cjsx +7 -0
  26. data/client/skr/components/TotalsLine.cjsx +21 -0
  27. data/client/skr/components/TriStateIcon.cjsx +12 -0
  28. data/client/skr/components/UOMChooser.cjsx +24 -0
  29. data/client/skr/components/UserPreferences.cjsx +30 -0
  30. data/client/skr/components/VendorFinder.cjsx +40 -0
  31. data/client/skr/components/address/Address.cjsx +10 -10
  32. data/client/skr/components/styles.scss +16 -0
  33. data/client/skr/index.js +3 -1
  34. data/client/skr/models/Address.coffee +9 -1
  35. data/client/skr/models/BankAccount.coffee +17 -0
  36. data/client/skr/models/Base.coffee +6 -0
  37. data/client/skr/models/Customer.coffee +17 -10
  38. data/client/skr/models/CustomerProject.coffee +29 -0
  39. data/client/skr/models/GlAccount.coffee +22 -10
  40. data/client/skr/models/GlManualEntry.coffee +4 -2
  41. data/client/skr/models/GlPeriod.coffee +4 -6
  42. data/client/skr/models/GlPosting.coffee +7 -7
  43. data/client/skr/models/GlTransaction.coffee +3 -3
  44. data/client/skr/models/IaLine.coffee +9 -9
  45. data/client/skr/models/IaReason.coffee +4 -4
  46. data/client/skr/models/InvLine.coffee +30 -11
  47. data/client/skr/models/InventoryAdjustment.coffee +8 -6
  48. data/client/skr/models/Invoice.coffee +89 -18
  49. data/client/skr/models/Location.coffee +27 -6
  50. data/client/skr/models/Payment.coffee +36 -0
  51. data/client/skr/models/PaymentCategory.coffee +12 -0
  52. data/client/skr/models/PaymentTerm.coffee +17 -4
  53. data/client/skr/models/PickTicket.coffee +7 -5
  54. data/client/skr/models/PoLine.coffee +15 -15
  55. data/client/skr/models/PoReceipt.coffee +8 -6
  56. data/client/skr/models/PorLine.coffee +11 -11
  57. data/client/skr/models/PricingProvider.coffee +6 -0
  58. data/client/skr/models/PtLine.coffee +13 -13
  59. data/client/skr/models/PurchaseOrder.coffee +11 -9
  60. data/client/skr/models/SalesOrder.coffee +59 -22
  61. data/client/skr/models/Sku.coffee +17 -15
  62. data/client/skr/models/SkuLoc.coffee +14 -9
  63. data/client/skr/models/SkuTran.coffee +10 -10
  64. data/client/skr/models/SkuVendor.coffee +9 -9
  65. data/client/skr/models/SoLine.coffee +27 -20
  66. data/client/skr/models/TimeEntry.coffee +75 -0
  67. data/client/skr/models/Uom.coffee +27 -6
  68. data/client/skr/models/Vendor.coffee +14 -12
  69. data/client/skr/models/VoLine.coffee +11 -11
  70. data/client/skr/models/Voucher.coffee +7 -5
  71. data/client/skr/models/mixins/HasVisibleId.coffee +7 -0
  72. data/client/skr/models/mixins/PrintSupport.coffee +6 -0
  73. data/client/skr/models/mixins/SkuLine.coffee +61 -0
  74. data/client/skr/screens/Commands.coffee +29 -0
  75. data/client/skr/screens/bank-maint/BankMaint.cjsx +43 -0
  76. data/client/skr/screens/bank-maint/index.js +5 -0
  77. data/client/skr/screens/chart-of-accounts/ChartOfAccounts.cjsx +40 -0
  78. data/client/skr/screens/chart-of-accounts/index.js +1 -0
  79. data/client/skr/screens/chart-of-accounts/index.scss +12 -0
  80. data/client/skr/screens/customer-maint/CustomerMaint.cjsx +35 -36
  81. data/client/skr/screens/customer-projects/CustomerProjects.cjsx +70 -0
  82. data/client/skr/screens/customer-projects/index.js +5 -0
  83. data/client/skr/screens/customer-projects/index.scss +25 -0
  84. data/client/skr/screens/fresh-books-import/ApiInfo.cjsx +35 -0
  85. data/client/skr/screens/fresh-books-import/ChooseRecords.cjsx +116 -0
  86. data/client/skr/screens/fresh-books-import/FreshBooksImport.cjsx +31 -0
  87. data/client/skr/screens/fresh-books-import/Import.coffee +52 -0
  88. data/client/skr/screens/fresh-books-import/ViewRecords.cjsx +96 -0
  89. data/client/skr/screens/fresh-books-import/index.js +1 -0
  90. data/client/skr/screens/fresh-books-import/index.scss +39 -0
  91. data/client/skr/screens/gl-accounts/GlAccounts.cjsx +31 -0
  92. data/client/skr/screens/gl-accounts/index.js +5 -0
  93. data/client/skr/screens/gl-transactions/GlTransactions.cjsx +46 -0
  94. data/client/skr/screens/gl-transactions/index.js +1 -0
  95. data/client/skr/screens/gl-transactions/index.scss +12 -0
  96. data/client/skr/screens/invoice/Invoice.cjsx +92 -0
  97. data/client/skr/screens/invoice/Payment.cjsx +28 -0
  98. data/client/skr/screens/invoice/index.js +5 -0
  99. data/client/skr/screens/locations/Locations.cjsx +31 -0
  100. data/client/skr/screens/locations/index.js +5 -0
  101. data/client/skr/screens/payment-category/PaymentCategory.cjsx +28 -0
  102. data/client/skr/screens/payment-category/index.js +5 -0
  103. data/client/skr/screens/payment-category/index.scss +9 -0
  104. data/client/skr/screens/payment-terms/PaymentTerms.cjsx +28 -0
  105. data/client/skr/screens/payment-terms/index.js +5 -0
  106. data/client/skr/screens/payment-terms/index.scss +9 -0
  107. data/client/skr/screens/payments/Payments.cjsx +59 -0
  108. data/client/skr/screens/payments/index.js +5 -0
  109. data/client/skr/screens/sales-order/SalesOrder.cjsx +68 -0
  110. data/client/skr/screens/sales-order/index.js +1 -5
  111. data/client/skr/screens/sku-maint/SkuMaint.cjsx +53 -0
  112. data/client/skr/screens/sku-maint/SkuUomList.cjsx +209 -0
  113. data/client/skr/screens/sku-maint/index.js +2 -5
  114. data/client/skr/screens/sku-maint/index.scss +37 -6
  115. data/client/skr/screens/time-invoicing/TimeInvoicing.cjsx +156 -0
  116. data/client/skr/screens/time-invoicing/index.js +5 -0
  117. data/client/skr/screens/time-invoicing/index.scss +7 -0
  118. data/client/skr/screens/time-tracking/EditEntry.cjsx +54 -0
  119. data/client/skr/screens/time-tracking/Entries.coffee +132 -0
  120. data/client/skr/screens/time-tracking/Header.cjsx +71 -0
  121. data/client/skr/screens/time-tracking/Popover.cjsx +70 -0
  122. data/client/skr/screens/time-tracking/PopoverMiniControls.cjsx +25 -0
  123. data/client/skr/screens/time-tracking/TimeTracking.cjsx +63 -0
  124. data/client/skr/screens/time-tracking/WeekSummary.cjsx +16 -0
  125. data/client/skr/screens/time-tracking/index.js +1 -0
  126. data/client/skr/screens/time-tracking/index.scss +126 -0
  127. data/client/skr/screens/vendor-maint/VendorMaint.cjsx +45 -0
  128. data/client/skr/screens/vendor-maint/index.js +1 -5
  129. data/client/skr/styles.scss +1 -13
  130. data/config/puma.rb +4 -0
  131. data/config/routes.rb +21 -9
  132. data/config/screens.rb +147 -32
  133. data/db/migrate/20140202194700_create_skr_gl_transaction_details.rb +35 -0
  134. data/db/migrate/20140220031800_create_skr_locations.rb +2 -0
  135. data/db/migrate/20140220190836_create_skr_vendors.rb +1 -0
  136. data/db/migrate/20140220203029_create_skr_customers.rb +3 -2
  137. data/db/migrate/20140224034759_create_skr_skus.rb +2 -3
  138. data/db/migrate/20140322223912_create_skr_sales_orders.rb +4 -3
  139. data/db/migrate/20140322223920_create_skr_so_lines.rb +4 -5
  140. data/db/migrate/20140323001446_create_so_details_view.rb +7 -5
  141. data/db/migrate/20140327202209_create_skr_pt_lines.rb +2 -2
  142. data/db/migrate/20140327214000_create_customer_project.rb +16 -0
  143. data/db/migrate/20140327223002_create_time_entries.rb +17 -0
  144. data/db/migrate/20140327224000_create_skr_invoices.rb +5 -1
  145. data/db/migrate/20140327224002_create_skr_inv_lines.rb +3 -1
  146. data/db/migrate/20140422024010_create_skr_inv_details_view.rb +1 -1
  147. data/db/migrate/20151121211323_create_customer_project_details_views.rb +31 -0
  148. data/db/migrate/20160216142845_create_gl_account_balances_view.rb +20 -0
  149. data/db/migrate/20160229002044_create_bank_accounts.rb +18 -0
  150. data/db/migrate/20160229041711_create_payments.rb +33 -0
  151. data/db/migrate/20160307022705_create_create_combined_uom_views.rb +18 -0
  152. data/db/schema.sql +639 -140
  153. data/db/seed/chart_of_accounts.yml +8 -6
  154. data/db/seed/payment_categories.yml +12 -0
  155. data/db/seed/skus.yml +32 -0
  156. data/db/seed.rb +21 -0
  157. data/lib/skr/access_roles.rb +19 -6
  158. data/lib/skr/concerns/has_sku_loc_lines.rb +0 -16
  159. data/lib/skr/concerns/inv_extensions.rb +24 -0
  160. data/lib/skr/concerns/is_sku_loc_line.rb +3 -4
  161. data/lib/skr/concerns/so_extensions.rb +8 -0
  162. data/lib/skr/concerns/visible_id_identifier.rb +1 -1
  163. data/lib/skr/db/migration_helpers.rb +2 -4
  164. data/lib/skr/extension.rb +11 -4
  165. data/lib/skr/handlers/fresh_books_import.rb +20 -0
  166. data/lib/skr/handlers/invoice_from_time_entries.rb +49 -0
  167. data/lib/skr/jobs/fresh_books/base.rb +54 -0
  168. data/lib/skr/jobs/fresh_books/import.rb +151 -0
  169. data/lib/skr/jobs/fresh_books/retrieve.rb +62 -0
  170. data/lib/skr/model.rb +5 -0
  171. data/lib/skr/models/address.rb +1 -1
  172. data/lib/skr/models/bank_account.rb +13 -0
  173. data/lib/skr/models/business_entity.rb +3 -0
  174. data/lib/skr/models/customer.rb +1 -1
  175. data/lib/skr/models/customer_project.rb +22 -0
  176. data/lib/skr/models/gl_account.rb +13 -3
  177. data/lib/skr/models/gl_period.rb +6 -0
  178. data/lib/skr/models/gl_posting.rb +7 -4
  179. data/lib/skr/models/gl_transaction.rb +19 -33
  180. data/lib/skr/models/ia_line.rb +1 -1
  181. data/lib/skr/models/inv_line.rb +33 -15
  182. data/lib/skr/models/invoice.rb +47 -20
  183. data/lib/skr/models/location.rb +7 -1
  184. data/lib/skr/models/payment.rb +49 -0
  185. data/lib/skr/models/payment_category.rb +11 -0
  186. data/lib/skr/models/payment_term.rb +1 -1
  187. data/lib/skr/models/por_line.rb +1 -1
  188. data/lib/skr/models/pt_line.rb +1 -1
  189. data/lib/skr/models/sales_order.rb +9 -9
  190. data/lib/skr/models/sku_loc.rb +1 -1
  191. data/lib/skr/models/sku_tran.rb +6 -11
  192. data/lib/skr/models/so_line.rb +22 -12
  193. data/lib/skr/models/time_entry.rb +36 -0
  194. data/lib/skr/models/uom.rb +11 -10
  195. data/lib/skr/models/user_proxy.rb +1 -1
  196. data/lib/skr/number.rb +25 -0
  197. data/lib/skr/print/form.rb +46 -0
  198. data/lib/skr/print/template.rb +48 -0
  199. data/lib/skr/print.rb +11 -0
  200. data/lib/skr/string.rb +11 -0
  201. data/lib/skr/version.rb +1 -1
  202. data/lib/skr.rb +9 -0
  203. data/spec/fixtures/skr/address.yml +164 -4
  204. data/spec/fixtures/skr/bank_account.yml +8 -0
  205. data/spec/fixtures/skr/customer.yml +30 -4
  206. data/spec/fixtures/skr/customer_project.yml +20 -0
  207. data/spec/fixtures/skr/gl_account.yml +19 -1
  208. data/spec/fixtures/skr/gl_period.yml +3 -0
  209. data/spec/fixtures/skr/gl_posting.yml +22 -1
  210. data/spec/fixtures/skr/gl_transaction.yml +4 -1
  211. data/spec/fixtures/skr/inv_line.yml +35 -0
  212. data/spec/fixtures/skr/invoice.yml +13 -2
  213. data/spec/fixtures/skr/location.yml +5 -0
  214. data/spec/fixtures/skr/payment.yml +10 -0
  215. data/spec/fixtures/skr/payment_category.yml +8 -0
  216. data/spec/fixtures/skr/payment_term.yml +37 -3
  217. data/spec/fixtures/skr/sales_order.yml +12 -1
  218. data/spec/fixtures/skr/sku.yml +78 -1
  219. data/spec/fixtures/skr/sku_loc.yml +42 -1
  220. data/spec/fixtures/skr/sku_tran.yml +24 -1
  221. data/spec/fixtures/skr/so_line.yml +32 -0
  222. data/spec/fixtures/skr/time_entry.yml +82 -0
  223. data/spec/fixtures/skr/uom.yml +52 -1
  224. data/spec/fixtures/skr/vendor.yml +28 -1
  225. data/spec/fixtures/stockor.png +0 -0
  226. data/spec/server/bank_account_spec.rb +10 -0
  227. data/spec/server/customer_project_spec.rb +10 -0
  228. data/spec/server/handlers/invoice_from_time_entries_spec.rb +49 -0
  229. data/spec/server/jobs/fresh_books/import_spec.rb +69 -0
  230. data/spec/server/jobs/fresh_books/retrieve_spec.rb +37 -0
  231. data/spec/server/models/address_spec.rb +4 -3
  232. data/spec/server/models/gl_transaction_spec.rb +3 -3
  233. data/spec/server/models/inv_line_spec.rb +83 -3
  234. data/spec/server/models/invoice_spec.rb +32 -3
  235. data/spec/server/models/payment_spec.rb +40 -0
  236. data/spec/server/models/sales_order_spec.rb +1 -1
  237. data/spec/server/models/so_line_spec.rb +3 -3
  238. data/spec/server/models/spec_helper_spec.rb +1 -1
  239. data/spec/server/payment_spec.rb +10 -0
  240. data/spec/server/print/form_spec.rb +47 -0
  241. data/spec/server/print/template_spec.rb +36 -0
  242. data/spec/server/spec_helper.rb +14 -1
  243. data/spec/server/time_entry_spec.rb +10 -0
  244. data/spec/skr/components/SkuLinesSpec.coffee +61 -0
  245. data/spec/skr/models/BankAccountSpec.coffee +5 -0
  246. data/spec/skr/models/CustomerProjectSpec.coffee +5 -0
  247. data/spec/skr/models/CustomerSpec.coffee +2 -2
  248. data/spec/skr/models/PaymentSpec.coffee +5 -0
  249. data/spec/skr/models/SalesOrderSpec.coffee +21 -5
  250. data/spec/skr/models/SoLineSpec.coffee +7 -2
  251. data/spec/skr/models/TimeEntrySpec.coffee +5 -0
  252. data/spec/skr/screens/bank-maint/BankMaintSpec.coffee +5 -0
  253. data/spec/skr/screens/customer-projects/CustomerProjectsSpec.coffee +5 -0
  254. data/spec/skr/screens/fresh-books-import/FreshBooksImportSpec.coffee +1 -0
  255. data/spec/skr/screens/gl-accounts/GlAccountsSpec.coffee +5 -0
  256. data/spec/skr/screens/invoice/InvoiceSpec.coffee +5 -0
  257. data/spec/skr/screens/locations/LocationsSpec.coffee +5 -0
  258. data/spec/skr/screens/payment-category/PaymentCategorySpec.coffee +5 -0
  259. data/spec/skr/screens/payment-terms/PaymentTermsSpec.coffee +5 -0
  260. data/spec/skr/screens/payments/PaymentsSpec.coffee +5 -0
  261. data/spec/skr/screens/time-invoicing/TimeInvoicingSpec.coffee +5 -0
  262. data/spec/skr/screens/time-tracking/TimeTrackingSpec.coffee +14 -0
  263. data/spec/vcr/freshbooks.yml +698 -0
  264. data/stockor.gemspec +5 -1
  265. data/templates/print/fonts/GnuMICR.otf +0 -0
  266. data/templates/print/layout.tex.erb +39 -0
  267. data/templates/print/packages/booktabs.sty +182 -0
  268. data/templates/print/packages/fancybox.sty +966 -0
  269. data/templates/print/packages/fancyhdr.sty +485 -0
  270. data/templates/print/packages/graphbox.sty +129 -0
  271. data/templates/print/packages/lastpage.sty +283 -0
  272. data/templates/print/packages/lastpage209.sty +70 -0
  273. data/templates/print/packages/marginnote.sty +412 -0
  274. data/templates/print/packages/multirow.sty +159 -0
  275. data/templates/print/packages/rotating.sty +282 -0
  276. data/templates/print/packages/tabu.sty +2557 -0
  277. data/templates/print/packages/textpos.sty +361 -0
  278. data/templates/print/packages/varwidth.sty +318 -0
  279. data/templates/print/partials/address.tex.erb +6 -0
  280. data/templates/print/partials/bill_to_ship_to.tex.erb +13 -0
  281. data/templates/print/partials/header.tex.erb +13 -0
  282. data/templates/print/partials/invoice_paid_state.tex.erb +2 -0
  283. data/templates/print/partials/old/inv_lines_grouping.tex.erb +8 -0
  284. data/templates/print/partials/old/labor_lines_footer.tex.erb +18 -0
  285. data/templates/print/partials/skus_table.tex.erb +32 -0
  286. data/templates/print/partials/skus_table_col_hdr.tex.erb +8 -0
  287. data/templates/print/partials/skus_table_footer.tex.erb +5 -0
  288. data/templates/print/partials/skus_table_group_footer.tex.erb +4 -0
  289. data/templates/print/partials/skus_table_invoice_footer.tex.erb +25 -0
  290. data/templates/print/partials/skus_table_invoice_info_line.tex.erb +16 -0
  291. data/templates/print/partials/skus_table_labor_col_hdr.tex.erb +8 -0
  292. data/templates/print/partials/skus_table_labor_group_footer.tex.erb +7 -0
  293. data/templates/print/partials/skus_table_labor_line.tex.erb +11 -0
  294. data/templates/print/partials/skus_table_line.tex.erb +6 -0
  295. data/templates/print/partials/skus_table_other_charge_lines.tex.erb +7 -0
  296. data/templates/print/partials/so_info_line.tex.erb +14 -0
  297. data/templates/print/types/invoice/default.tex.erb +13 -0
  298. data/templates/print/types/invoice/labor.tex.erb +33 -0
  299. data/templates/print/types/payment/default.tex.erb +64 -0
  300. data/templates/print/types/sales-order/default.tex.erb +8 -0
  301. metadata +252 -15
  302. data/client/skr/components/address/address.html +0 -20
  303. data/client/skr/models/mixins/CodeField.coffee +0 -5
  304. data/client/skr/screens/customer-maint/index.scss +0 -11
  305. data/client/skr/screens/customer-maint/layout.html +0 -32
  306. data/client/skr/screens/sales-order/SalesOrder.coffee +0 -30
  307. data/client/skr/screens/sales-order/index.scss +0 -8
  308. data/client/skr/screens/sales-order/layout.html +0 -30
  309. data/client/skr/screens/sku-maint/SkuMaint.coffee +0 -18
  310. data/client/skr/screens/sku-maint/layout.html +0 -16
  311. data/client/skr/screens/vendor-maint/VendorMaint.coffee +0 -28
  312. data/client/skr/screens/vendor-maint/index.scss +0 -8
  313. data/client/skr/screens/vendor-maint/layout.html +0 -32
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stockor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Stitt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-07 00:00:00.000000000 Z
11
+ date: 2016-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aasm
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: erb_latex
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: '0.3'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: '0.3'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: lanes
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +52,34 @@ dependencies:
38
52
  - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: numbers_in_words
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.4.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.4.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: ruby-freshbooks
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
41
83
  - !ruby/object:Gem::Dependency
42
84
  name: bundler
43
85
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +108,34 @@ dependencies:
66
108
  - - ">="
67
109
  - !ruby/object:Gem::Version
68
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: vcr
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '3.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: webmock
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '1.22'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '1.22'
69
139
  - !ruby/object:Gem::Dependency
70
140
  name: guard
71
141
  requirement: !ruby/object:Gem::Requirement
@@ -138,16 +208,42 @@ files:
138
208
  - LICENSE-AGPL3.txt
139
209
  - README.md
140
210
  - Rakefile
211
+ - app.json
141
212
  - client/images/skr/logo-sm.png
142
213
  - client/skr/Extension.coffee
143
214
  - client/skr/components/.gitkeep
215
+ - client/skr/components/BankAccountFinder.cjsx
216
+ - client/skr/components/Currency.cjsx
217
+ - client/skr/components/CustomerFinder.cjsx
218
+ - client/skr/components/CustomerLink.cjsx
219
+ - client/skr/components/CustomerProjectFinder.cjsx
220
+ - client/skr/components/GlAccountChooser.cjsx
221
+ - client/skr/components/InvoiceFinder.cjsx
222
+ - client/skr/components/InvoiceLink.cjsx
223
+ - client/skr/components/LocationChooser.cjsx
224
+ - client/skr/components/PaymentCategoryFinder.cjsx
225
+ - client/skr/components/PrintFormChooser.cjsx
226
+ - client/skr/components/SalesOrderFinder.cjsx
227
+ - client/skr/components/ScreenControls.cjsx
228
+ - client/skr/components/SkuFinder.cjsx
229
+ - client/skr/components/SkuLines.cjsx
230
+ - client/skr/components/SystemSettings.cjsx
231
+ - client/skr/components/TermsChooser.cjsx
232
+ - client/skr/components/ToolbarButton.cjsx
233
+ - client/skr/components/TotalsLine.cjsx
234
+ - client/skr/components/TriStateIcon.cjsx
235
+ - client/skr/components/UOMChooser.cjsx
236
+ - client/skr/components/UserPreferences.cjsx
237
+ - client/skr/components/VendorFinder.cjsx
144
238
  - client/skr/components/address/Address.cjsx
145
- - client/skr/components/address/address.html
146
239
  - client/skr/components/address/styles.scss
240
+ - client/skr/components/styles.scss
147
241
  - client/skr/index.js
148
242
  - client/skr/models/Address.coffee
243
+ - client/skr/models/BankAccount.coffee
149
244
  - client/skr/models/Base.coffee
150
245
  - client/skr/models/Customer.coffee
246
+ - client/skr/models/CustomerProject.coffee
151
247
  - client/skr/models/GlAccount.coffee
152
248
  - client/skr/models/GlManualEntry.coffee
153
249
  - client/skr/models/GlPeriod.coffee
@@ -159,11 +255,14 @@ files:
159
255
  - client/skr/models/InventoryAdjustment.coffee
160
256
  - client/skr/models/Invoice.coffee
161
257
  - client/skr/models/Location.coffee
258
+ - client/skr/models/Payment.coffee
259
+ - client/skr/models/PaymentCategory.coffee
162
260
  - client/skr/models/PaymentTerm.coffee
163
261
  - client/skr/models/PickTicket.coffee
164
262
  - client/skr/models/PoLine.coffee
165
263
  - client/skr/models/PoReceipt.coffee
166
264
  - client/skr/models/PorLine.coffee
265
+ - client/skr/models/PricingProvider.coffee
167
266
  - client/skr/models/PtLine.coffee
168
267
  - client/skr/models/PurchaseOrder.coffee
169
268
  - client/skr/models/SalesOrder.coffee
@@ -172,34 +271,77 @@ files:
172
271
  - client/skr/models/SkuTran.coffee
173
272
  - client/skr/models/SkuVendor.coffee
174
273
  - client/skr/models/SoLine.coffee
274
+ - client/skr/models/TimeEntry.coffee
175
275
  - client/skr/models/Uom.coffee
176
276
  - client/skr/models/Vendor.coffee
177
277
  - client/skr/models/VoLine.coffee
178
278
  - client/skr/models/Voucher.coffee
179
- - client/skr/models/mixins/CodeField.coffee
279
+ - client/skr/models/mixins/HasVisibleId.coffee
280
+ - client/skr/models/mixins/PrintSupport.coffee
281
+ - client/skr/models/mixins/SkuLine.coffee
180
282
  - client/skr/models/mixins/VisibleID.coffee
181
283
  - client/skr/screens/.gitkeep
182
284
  - client/skr/screens/Base.coffee
285
+ - client/skr/screens/Commands.coffee
286
+ - client/skr/screens/bank-maint/BankMaint.cjsx
287
+ - client/skr/screens/bank-maint/index.js
183
288
  - client/skr/screens/base/index.js
184
289
  - client/skr/screens/base/index.scss
185
290
  - client/skr/screens/base/layout.html
291
+ - client/skr/screens/chart-of-accounts/ChartOfAccounts.cjsx
292
+ - client/skr/screens/chart-of-accounts/index.js
293
+ - client/skr/screens/chart-of-accounts/index.scss
186
294
  - client/skr/screens/customer-maint/CustomerMaint.cjsx
187
295
  - client/skr/screens/customer-maint/index.js
188
- - client/skr/screens/customer-maint/index.scss
189
- - client/skr/screens/customer-maint/layout.html
296
+ - client/skr/screens/customer-projects/CustomerProjects.cjsx
297
+ - client/skr/screens/customer-projects/index.js
298
+ - client/skr/screens/customer-projects/index.scss
299
+ - client/skr/screens/fresh-books-import/ApiInfo.cjsx
300
+ - client/skr/screens/fresh-books-import/ChooseRecords.cjsx
301
+ - client/skr/screens/fresh-books-import/FreshBooksImport.cjsx
302
+ - client/skr/screens/fresh-books-import/Import.coffee
303
+ - client/skr/screens/fresh-books-import/ViewRecords.cjsx
304
+ - client/skr/screens/fresh-books-import/index.js
305
+ - client/skr/screens/fresh-books-import/index.scss
306
+ - client/skr/screens/gl-accounts/GlAccounts.cjsx
307
+ - client/skr/screens/gl-accounts/index.js
308
+ - client/skr/screens/gl-transactions/GlTransactions.cjsx
309
+ - client/skr/screens/gl-transactions/index.js
310
+ - client/skr/screens/gl-transactions/index.scss
311
+ - client/skr/screens/invoice/Invoice.cjsx
312
+ - client/skr/screens/invoice/Payment.cjsx
313
+ - client/skr/screens/invoice/index.js
314
+ - client/skr/screens/locations/Locations.cjsx
315
+ - client/skr/screens/locations/index.js
190
316
  - client/skr/screens/mixins/index.js
191
- - client/skr/screens/sales-order/SalesOrder.coffee
317
+ - client/skr/screens/payment-category/PaymentCategory.cjsx
318
+ - client/skr/screens/payment-category/index.js
319
+ - client/skr/screens/payment-category/index.scss
320
+ - client/skr/screens/payment-terms/PaymentTerms.cjsx
321
+ - client/skr/screens/payment-terms/index.js
322
+ - client/skr/screens/payment-terms/index.scss
323
+ - client/skr/screens/payments/Payments.cjsx
324
+ - client/skr/screens/payments/index.js
325
+ - client/skr/screens/sales-order/SalesOrder.cjsx
192
326
  - client/skr/screens/sales-order/index.js
193
- - client/skr/screens/sales-order/index.scss
194
- - client/skr/screens/sales-order/layout.html
195
- - client/skr/screens/sku-maint/SkuMaint.coffee
327
+ - client/skr/screens/sku-maint/SkuMaint.cjsx
328
+ - client/skr/screens/sku-maint/SkuUomList.cjsx
196
329
  - client/skr/screens/sku-maint/index.js
197
330
  - client/skr/screens/sku-maint/index.scss
198
- - client/skr/screens/sku-maint/layout.html
199
- - client/skr/screens/vendor-maint/VendorMaint.coffee
331
+ - client/skr/screens/time-invoicing/TimeInvoicing.cjsx
332
+ - client/skr/screens/time-invoicing/index.js
333
+ - client/skr/screens/time-invoicing/index.scss
334
+ - client/skr/screens/time-tracking/EditEntry.cjsx
335
+ - client/skr/screens/time-tracking/Entries.coffee
336
+ - client/skr/screens/time-tracking/Header.cjsx
337
+ - client/skr/screens/time-tracking/Popover.cjsx
338
+ - client/skr/screens/time-tracking/PopoverMiniControls.cjsx
339
+ - client/skr/screens/time-tracking/TimeTracking.cjsx
340
+ - client/skr/screens/time-tracking/WeekSummary.cjsx
341
+ - client/skr/screens/time-tracking/index.js
342
+ - client/skr/screens/time-tracking/index.scss
343
+ - client/skr/screens/vendor-maint/VendorMaint.cjsx
200
344
  - client/skr/screens/vendor-maint/index.js
201
- - client/skr/screens/vendor-maint/index.scss
202
- - client/skr/screens/vendor-maint/layout.html
203
345
  - client/skr/styles.scss
204
346
  - client/skr/views/.gitkeep
205
347
  - client/skr/views/Base.coffee
@@ -207,6 +349,7 @@ files:
207
349
  - config.ru
208
350
  - config/database.yml
209
351
  - config/lanes.rb
352
+ - config/puma.rb
210
353
  - config/routes.rb
211
354
  - config/screens.rb
212
355
  - db/.gitkeep
@@ -216,6 +359,7 @@ files:
216
359
  - db/migrate/20140202193318_create_skr_gl_transactions.rb
217
360
  - db/migrate/20140202193319_create_skr_gl_postings.rb
218
361
  - db/migrate/20140202193700_create_skr_gl_manual_entries.rb
362
+ - db/migrate/20140202194700_create_skr_gl_transaction_details.rb
219
363
  - db/migrate/20140213040608_create_skr_payment_terms.rb
220
364
  - db/migrate/20140220031700_create_skr_addresses.rb
221
365
  - db/migrate/20140220031800_create_skr_locations.rb
@@ -236,6 +380,8 @@ files:
236
380
  - db/migrate/20140327202107_create_skr_po_lines.rb
237
381
  - db/migrate/20140327202207_create_skr_pick_tickets.rb
238
382
  - db/migrate/20140327202209_create_skr_pt_lines.rb
383
+ - db/migrate/20140327214000_create_customer_project.rb
384
+ - db/migrate/20140327223002_create_time_entries.rb
239
385
  - db/migrate/20140327224000_create_skr_invoices.rb
240
386
  - db/migrate/20140327224002_create_skr_inv_lines.rb
241
387
  - db/migrate/20140330232808_create_skr_sku_loc_details_view.rb
@@ -245,10 +391,17 @@ files:
245
391
  - db/migrate/20140401164729_create_skr_po_receipt.rb
246
392
  - db/migrate/20140401164740_create_skr_por_line.rb
247
393
  - db/migrate/20140422024010_create_skr_inv_details_view.rb
394
+ - db/migrate/20151121211323_create_customer_project_details_views.rb
395
+ - db/migrate/20160216142845_create_gl_account_balances_view.rb
396
+ - db/migrate/20160229002044_create_bank_accounts.rb
397
+ - db/migrate/20160229041711_create_payments.rb
398
+ - db/migrate/20160307022705_create_create_combined_uom_views.rb
248
399
  - db/schema.sql
249
400
  - db/seed.rb
250
401
  - db/seed/chart_of_accounts.yml
402
+ - db/seed/payment_categories.yml
251
403
  - db/seed/payment_terms.yml
404
+ - db/seed/skus.yml
252
405
  - lib/skr.rb
253
406
  - lib/skr/access_roles.rb
254
407
  - lib/skr/concerns/acts_as_uom.rb
@@ -269,10 +422,17 @@ files:
269
422
  - lib/skr/configuration.rb
270
423
  - lib/skr/db/migration_helpers.rb
271
424
  - lib/skr/extension.rb
425
+ - lib/skr/handlers/fresh_books_import.rb
426
+ - lib/skr/handlers/invoice_from_time_entries.rb
427
+ - lib/skr/jobs/fresh_books/base.rb
428
+ - lib/skr/jobs/fresh_books/import.rb
429
+ - lib/skr/jobs/fresh_books/retrieve.rb
272
430
  - lib/skr/model.rb
273
431
  - lib/skr/models/address.rb
432
+ - lib/skr/models/bank_account.rb
274
433
  - lib/skr/models/business_entity.rb
275
434
  - lib/skr/models/customer.rb
435
+ - lib/skr/models/customer_project.rb
276
436
  - lib/skr/models/gl_account.rb
277
437
  - lib/skr/models/gl_manual_entry.rb
278
438
  - lib/skr/models/gl_period.rb
@@ -284,6 +444,8 @@ files:
284
444
  - lib/skr/models/inventory_adjustment.rb
285
445
  - lib/skr/models/invoice.rb
286
446
  - lib/skr/models/location.rb
447
+ - lib/skr/models/payment.rb
448
+ - lib/skr/models/payment_category.rb
287
449
  - lib/skr/models/payment_term.rb
288
450
  - lib/skr/models/pick_ticket.rb
289
451
  - lib/skr/models/po_line.rb
@@ -298,16 +460,24 @@ files:
298
460
  - lib/skr/models/sku_tran.rb
299
461
  - lib/skr/models/sku_vendor.rb
300
462
  - lib/skr/models/so_line.rb
463
+ - lib/skr/models/time_entry.rb
301
464
  - lib/skr/models/uom.rb
302
465
  - lib/skr/models/user_proxy.rb
303
466
  - lib/skr/models/vendor.rb
304
467
  - lib/skr/models/vo_line.rb
305
468
  - lib/skr/models/voucher.rb
469
+ - lib/skr/number.rb
470
+ - lib/skr/print.rb
471
+ - lib/skr/print/form.rb
472
+ - lib/skr/print/template.rb
306
473
  - lib/skr/standard_pricing_provider.rb
474
+ - lib/skr/string.rb
307
475
  - lib/skr/version.rb
308
476
  - lib/stockor.rb
309
477
  - spec/fixtures/skr/address.yml
478
+ - spec/fixtures/skr/bank_account.yml
310
479
  - spec/fixtures/skr/customer.yml
480
+ - spec/fixtures/skr/customer_project.yml
311
481
  - spec/fixtures/skr/gl_account.yml
312
482
  - spec/fixtures/skr/gl_manual_entry.yml
313
483
  - spec/fixtures/skr/gl_period.yml
@@ -319,6 +489,8 @@ files:
319
489
  - spec/fixtures/skr/inventory_adjustment.yml
320
490
  - spec/fixtures/skr/invoice.yml
321
491
  - spec/fixtures/skr/location.yml
492
+ - spec/fixtures/skr/payment.yml
493
+ - spec/fixtures/skr/payment_category.yml
322
494
  - spec/fixtures/skr/payment_term.yml
323
495
  - spec/fixtures/skr/pick_ticket.yml
324
496
  - spec/fixtures/skr/po_line.yml
@@ -332,10 +504,17 @@ files:
332
504
  - spec/fixtures/skr/sku_tran.yml
333
505
  - spec/fixtures/skr/sku_vendor.yml
334
506
  - spec/fixtures/skr/so_line.yml
507
+ - spec/fixtures/skr/time_entry.yml
335
508
  - spec/fixtures/skr/uom.yml
336
509
  - spec/fixtures/skr/vendor.yml
337
510
  - spec/fixtures/skr/vo_line.yml
338
511
  - spec/fixtures/skr/voucher.yml
512
+ - spec/fixtures/stockor.png
513
+ - spec/server/bank_account_spec.rb
514
+ - spec/server/customer_project_spec.rb
515
+ - spec/server/handlers/invoice_from_time_entries_spec.rb
516
+ - spec/server/jobs/fresh_books/import_spec.rb
517
+ - spec/server/jobs/fresh_books/retrieve_spec.rb
339
518
  - spec/server/models/address_spec.rb
340
519
  - spec/server/models/customer_spec.rb
341
520
  - spec/server/models/gl_account_spec.rb
@@ -349,6 +528,7 @@ files:
349
528
  - spec/server/models/inventory_adjustment_spec.rb
350
529
  - spec/server/models/invoice_spec.rb
351
530
  - spec/server/models/location_spec.rb
531
+ - spec/server/models/payment_spec.rb
352
532
  - spec/server/models/payment_term_spec.rb
353
533
  - spec/server/models/pick_ticket_spec.rb
354
534
  - spec/server/models/po_line_spec.rb
@@ -367,9 +547,16 @@ files:
367
547
  - spec/server/models/vendor_spec.rb
368
548
  - spec/server/models/vo_line_spec.rb
369
549
  - spec/server/models/voucher_spec.rb
550
+ - spec/server/payment_spec.rb
551
+ - spec/server/print/form_spec.rb
552
+ - spec/server/print/template_spec.rb
370
553
  - spec/server/spec_helper.rb
554
+ - spec/server/time_entry_spec.rb
555
+ - spec/skr/components/SkuLinesSpec.coffee
371
556
  - spec/skr/concerns/code_identifier_spec.rb
372
557
  - spec/skr/models/AddressSpec.coffee
558
+ - spec/skr/models/BankAccountSpec.coffee
559
+ - spec/skr/models/CustomerProjectSpec.coffee
373
560
  - spec/skr/models/CustomerSpec.coffee
374
561
  - spec/skr/models/GlAccountSpec.coffee
375
562
  - spec/skr/models/GlManualEntrySpec.coffee
@@ -382,6 +569,7 @@ files:
382
569
  - spec/skr/models/InventoryAdjustmentSpec.coffee
383
570
  - spec/skr/models/InvoiceSpec.coffee
384
571
  - spec/skr/models/LocationSpec.coffee
572
+ - spec/skr/models/PaymentSpec.coffee
385
573
  - spec/skr/models/PaymentTermSpec.coffee
386
574
  - spec/skr/models/PickTicketSpec.coffee
387
575
  - spec/skr/models/PoLineSpec.coffee
@@ -395,16 +583,65 @@ files:
395
583
  - spec/skr/models/SkuTranSpec.coffee
396
584
  - spec/skr/models/SkuVendorSpec.coffee
397
585
  - spec/skr/models/SoLineSpec.coffee
586
+ - spec/skr/models/TimeEntrySpec.coffee
398
587
  - spec/skr/models/UomSpec.coffee
399
588
  - spec/skr/models/VendorSpec.coffee
400
589
  - spec/skr/models/VoLineSpec.coffee
401
590
  - spec/skr/models/VoucherSpec.coffee
402
591
  - spec/skr/screens/Base.coffee
403
592
  - spec/skr/screens/CustomerMaint.coffee
593
+ - spec/skr/screens/bank-maint/BankMaintSpec.coffee
594
+ - spec/skr/screens/customer-projects/CustomerProjectsSpec.coffee
595
+ - spec/skr/screens/fresh-books-import/FreshBooksImportSpec.coffee
596
+ - spec/skr/screens/gl-accounts/GlAccountsSpec.coffee
597
+ - spec/skr/screens/invoice/InvoiceSpec.coffee
598
+ - spec/skr/screens/locations/LocationsSpec.coffee
599
+ - spec/skr/screens/payment-category/PaymentCategorySpec.coffee
600
+ - spec/skr/screens/payment-terms/PaymentTermsSpec.coffee
601
+ - spec/skr/screens/payments/PaymentsSpec.coffee
404
602
  - spec/skr/screens/sales-order/SalesOrderSpec.coffee
405
603
  - spec/skr/screens/sku-maint/SkuMaintSpec.coffee
604
+ - spec/skr/screens/time-invoicing/TimeInvoicingSpec.coffee
605
+ - spec/skr/screens/time-tracking/TimeTrackingSpec.coffee
406
606
  - spec/skr/screens/vendor-maint/VendorMaintSpec.coffee
607
+ - spec/vcr/freshbooks.yml
407
608
  - stockor.gemspec
609
+ - templates/print/fonts/GnuMICR.otf
610
+ - templates/print/layout.tex.erb
611
+ - templates/print/packages/booktabs.sty
612
+ - templates/print/packages/fancybox.sty
613
+ - templates/print/packages/fancyhdr.sty
614
+ - templates/print/packages/graphbox.sty
615
+ - templates/print/packages/lastpage.sty
616
+ - templates/print/packages/lastpage209.sty
617
+ - templates/print/packages/marginnote.sty
618
+ - templates/print/packages/multirow.sty
619
+ - templates/print/packages/rotating.sty
620
+ - templates/print/packages/tabu.sty
621
+ - templates/print/packages/textpos.sty
622
+ - templates/print/packages/varwidth.sty
623
+ - templates/print/partials/address.tex.erb
624
+ - templates/print/partials/bill_to_ship_to.tex.erb
625
+ - templates/print/partials/header.tex.erb
626
+ - templates/print/partials/invoice_paid_state.tex.erb
627
+ - templates/print/partials/old/inv_lines_grouping.tex.erb
628
+ - templates/print/partials/old/labor_lines_footer.tex.erb
629
+ - templates/print/partials/skus_table.tex.erb
630
+ - templates/print/partials/skus_table_col_hdr.tex.erb
631
+ - templates/print/partials/skus_table_footer.tex.erb
632
+ - templates/print/partials/skus_table_group_footer.tex.erb
633
+ - templates/print/partials/skus_table_invoice_footer.tex.erb
634
+ - templates/print/partials/skus_table_invoice_info_line.tex.erb
635
+ - templates/print/partials/skus_table_labor_col_hdr.tex.erb
636
+ - templates/print/partials/skus_table_labor_group_footer.tex.erb
637
+ - templates/print/partials/skus_table_labor_line.tex.erb
638
+ - templates/print/partials/skus_table_line.tex.erb
639
+ - templates/print/partials/skus_table_other_charge_lines.tex.erb
640
+ - templates/print/partials/so_info_line.tex.erb
641
+ - templates/print/types/invoice/default.tex.erb
642
+ - templates/print/types/invoice/labor.tex.erb
643
+ - templates/print/types/payment/default.tex.erb
644
+ - templates/print/types/sales-order/default.tex.erb
408
645
  - tmp/.gitkeep
409
646
  homepage: http://stockor.org/
410
647
  licenses:
@@ -426,7 +663,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
426
663
  version: '0'
427
664
  requirements: []
428
665
  rubyforge_project:
429
- rubygems_version: 2.4.8
666
+ rubygems_version: 2.4.5.1
430
667
  signing_key:
431
668
  specification_version: 4
432
669
  summary: Stockor is a complete ERP system
@@ -1,20 +0,0 @@
1
- <div class="address">
2
- <div class="row">
3
- <%= h.text_field 'name', width:12 %>
4
- </div>
5
- <div class="row">
6
- <%= h.text_field 'phone', widths:[12,6] %>
7
- <%= h.text_field 'email', widths:[12,6] %>
8
- </div>
9
- <div class="row">
10
- <%= h.text_field 'line1', width:12 %>
11
- </div>
12
- <div class="row">
13
- <%= h.text_field 'line2', width:12 %>
14
- </div>
15
- <div class="row">
16
- <%= h.text_field 'city', widths:[12,12,7,7] %>
17
- <%= h.text_field 'state', widths:[8,8,3,3] %>
18
- <%= h.text_field 'postal_code', label: 'Zip', widths:[4,4,2,2] %>
19
- </div>
20
- </div>
@@ -1,5 +0,0 @@
1
- Skr.Models.Mixins.CodeField = {
2
-
3
- invalidChars: /[^A-Z0-9a-z]/
4
-
5
- }
@@ -1,11 +0,0 @@
1
- /*
2
- If your screen does not use any custom styles
3
-
4
- You should remove this file and it's reference from:
5
- lib/skr/customer-maint_screen.rb
6
-
7
- Otherwise Lanes will continue to fetch an empty file whenever
8
- the screen is displayed
9
- */
10
- @import "lanes/screens/styles";
11
-
@@ -1,32 +0,0 @@
1
- <div class="customer-maint">
2
- <%= h.toolbar buttons: ['save','reset'] %>
3
-
4
- <div class="header">
5
- <div class="row">
6
- <%= h.subview 'finder', widths: [12,4,4,3], label: 'Code' %>
7
- <%= h.text_field 'name', widths: [12,8,8,9] %>
8
- </div>
9
-
10
- <div class="row">
11
- <%= h.text_field 'notes', widths: [12,9] %>
12
- <%= h.subview 'terms', widths: [12,3] %>
13
- </div>
14
- </div>
15
-
16
- <div class="row">
17
- <div class="<%= h.grid_widths 12,6 %>">
18
- <fieldset class="addresses bordered">
19
- <legend>Billing Address</legend>
20
- <%= h.subview 'billaddr', unwrapped: true %>
21
-
22
- </fieldset>
23
- </div>
24
- <div class="<%= h.grid_widths 12,6 %>">
25
- <fieldset class="addresses bordered">
26
- <legend>Shiping Address</legend>
27
- <%= h.subview 'shipaddr', unwrapped: true %>
28
- </fieldset>
29
- </div>
30
- </div>
31
-
32
- </div>
@@ -1,30 +0,0 @@
1
- class Skr.Screens.SalesOrder extends Skr.Screens.Base
2
-
3
- mixins:[
4
- Lanes.Screens.Mixins.Editing
5
- ]
6
- formBindings: true
7
- subviews:
8
- terms:
9
- component: 'SelectField'
10
- model: 'model'
11
- options: { association: 'terms'}
12
- customer:
13
- component: 'SelectField'
14
- model: 'model'
15
- options: { association: 'customer'}
16
- billaddr:
17
- component: 'Address'
18
- model: 'model.billing_address'
19
- options: { field_name: 'billing_address_id' }
20
- shipaddr:
21
- component: 'Address'
22
- model: 'model.shipping_address'
23
- options: ->{ copyFrom: this.billaddr, field_name: 'shipping_address_id' }
24
-
25
- finderOptions: ->
26
- modelClass: Skr.Models.SalesOrder
27
- title: 'Find Sales Order',
28
- invalid_chars: Skr.Models.Mixins.VisibleID.invalidChars
29
- withAssociations: []
30
- fields: ['visible_id', 'notes']
@@ -1,8 +0,0 @@
1
- /*
2
- If your screen does not use any custom styles
3
-
4
- You should remove this file and it's reference from config/screens.rb
5
-
6
- Otherwise Lanes will continue to fetch an empty file whenever
7
- the screen is displayed
8
- */
@@ -1,30 +0,0 @@
1
- <div>
2
- <%= h.toolbar buttons: ['save','reset'] %>
3
- <div class="header">
4
- <div class="row">
5
- <%= h.subview 'finder', widths: [12,4,4,3], label: 'Number' %>
6
- <%= h.text_field 'notes', widths: [12,8,8,9] %>
7
- </div>
8
- <div class="row">
9
- <%= h.subview 'customer', widths: [12,3] %>
10
- <%= h.text_field 'po_num', widths: [12,6] %>
11
- <%= h.subview 'terms', widths: [12,3] %>
12
- </div>
13
- </div>
14
- <div class="row">
15
- <div class="<%= h.grid_widths 12,6 %>">
16
- <fieldset class="addresses bordered">
17
- <legend>Billing Address</legend>
18
- <%= h.subview 'billaddr', unwrapped: true %>
19
-
20
- </fieldset>
21
- </div>
22
- <div class="<%= h.grid_widths 12,6 %>">
23
- <fieldset class="addresses bordered">
24
- <legend>Shiping Address</legend>
25
- <%= h.subview 'shipaddr', unwrapped: true %>
26
- </fieldset>
27
- </div>
28
- </div>
29
-
30
- </div>
@@ -1,18 +0,0 @@
1
- class Skr.Screens.SkuMaint extends Skr.Screens.Base
2
-
3
- mixins:[
4
- Lanes.Screens.Mixins.Editing
5
- ]
6
-
7
- subviews:
8
- glacct:
9
- component: 'SelectField'
10
- model: 'model'
11
- options: { association: 'gl_asset_account', mappings: { title: 'combined_name' } }
12
-
13
- finderOptions: ->
14
- modelClass: Skr.Models.Sku
15
- title: 'Find SKU',
16
- invalid_chars: Skr.Models.Mixins.CodeField.invalidChars
17
- withAssociations: []
18
- fields: ['code', 'description']
@@ -1,16 +0,0 @@
1
- <div class="sku-maint">
2
- <%= h.toolbar buttons: ['save','reset'] %>
3
-
4
- <div class="header">
5
- <div class="row">
6
- <%= h.subview 'finder', widths: [12,4,4,3], label: 'Code' %>
7
- <%= h.text_field 'description', widths: [12,8,8,9] %>
8
- </div>
9
-
10
- </div>
11
-
12
- <div class="row">
13
- <%= h.subview 'glacct', label: "GL Asset Account", widths: [12,3] %>
14
- </div>
15
-
16
- </div>