print_clerk 0.5 → 0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/app/views/products/barcode_button.haml +1 -1
- data/lib/print_clerk.rb +1 -0
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b9590bed06aeb1638559a1adb59f88adb984d2b6
|
|
4
|
+
data.tar.gz: a7c3f36f8ebee38c48e8450e32aed233e6f0142b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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"
|
data/lib/print_clerk.rb
CHANGED
|
@@ -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.
|
|
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:
|
|
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:
|
|
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:
|
|
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: '
|
|
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: '
|
|
68
|
+
version: '2.0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: reference_number
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|