print_clerk 0.5 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f57116f1340d8346c7d8b529f412e261084585f1
4
- data.tar.gz: f6564daad744b54ef96452e78ea2dfda4bdb6f16
3
+ metadata.gz: b9590bed06aeb1638559a1adb59f88adb984d2b6
4
+ data.tar.gz: a7c3f36f8ebee38c48e8450e32aed233e6f0142b
5
5
  SHA512:
6
- metadata.gz: 2f99eea18939c5acf087da2e86cbb7c3ad1947a0ef94057ab91c6fa1c36208f8272928cffeccc74967d58e79ca127fa85189ca1af25f2703f943371064f6a7c4
7
- data.tar.gz: 01b57d64b1367bb0013c0838e49c71838a94e6feb21a64e52f94b1a2233c59d162047c00f6b0e421fc5300598acae7151f3262f8246f4a67d4130ebc932837e7
6
+ metadata.gz: 09a77b2b700e70cd349d3d299fcde2f407f97554ca2ac6e14b61ec84a8676e8148ea27cf1cd66266cecb368f228467e9c318fd5c3ad42a4f7be0decd1937ddae
7
+ data.tar.gz: 4a9602efceef77f2b77588056514b6704af4beb7979573a2cedaf1b4b02227565bd8c76c7fa0512b84e92aaeb0e901bb5062d38b06519b2491e09c2821bf4e14
data/README.md CHANGED
@@ -6,17 +6,17 @@
6
6
  SUMMARY
7
7
  =======
8
8
 
9
- This extension provides a "Print Invoice" button on the Orders view screen which opens a printable html page with the order details. Actually sevaral stypes are supported and it is easy to add more or edit existing.
9
+ This extension provides a "Print Invoice" button on the Orders view screen which opens a printable html page with the order details. Actually several types are supported and it is easy to add more or edit existing.
10
10
 
11
11
  You have to set up your computer for printing, or PDF generation. Off course, if you cave a mac that is as easy as pressing the print + save as pdf buttons.
12
-
12
+
13
13
  INSTALLATION
14
14
  ============
15
15
 
16
16
  1. To install you need to add the following lines to your Gemfile (no external dependencies)
17
17
 
18
18
  gem 'print_clerk'
19
-
19
+
20
20
  2. run bundler
21
21
 
22
22
  bundle
@@ -36,12 +36,12 @@ Texts are stored in locale files
36
36
  1. Set the logo path preference in locales/config.yml (root key config)
37
37
 
38
38
  invoice_logo_path: "company-logo.png"
39
-
39
+
40
40
  With the file existing in your asset path
41
41
 
42
42
  2. Override any of the partial templates. they are address, footer, totals, header, thanks , and the items. Especially the thanks and footer templates are ones you will probably want to replace.
43
43
 
44
- 4. Disable any styles by changing the config.yml to suit
44
+ 4. Disable any styles by changing the config.yml to suit
45
45
 
46
46
  print_styles: "receipt slip invoice reminder"
47
47
 
@@ -1,2 +1,2 @@
1
1
  .col-md-2
2
- = link_to t(:barcode) , barcode_product_path( @product), :class => "btn btn-primary"
2
+ = link_to t(:barcode) , office.barcode_product_path( @product), :class => "btn btn-primary"
@@ -12,6 +12,7 @@ module PrintClerk
12
12
 
13
13
  initializer "print_invoice.assets.precompile", :after => "clerk.assets.precompile" do |app|
14
14
  app.config.assets.precompile += [ "print_office.js" , "print_office.css"]
15
+ app.config.assets.precompile += [ "invoice_logo.jpg" , "receipt-logo.gif"]
15
16
  end
16
17
 
17
18
  def self.activate
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: print_clerk
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: '0.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Ruger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-16 00:00:00.000000000 Z
11
+ date: 2016-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: office_clerk
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.9'
19
+ version: 1.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.9'
26
+ version: 1.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: barby
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.2'
61
+ version: '2.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.2'
68
+ version: '2.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: reference_number
71
71
  requirement: !ruby/object:Gem::Requirement