Skip to content

Commit

Permalink
Merge pull request #27 from LinkNacional/feat-invoice-pdf
Browse files Browse the repository at this point in the history
1.2.0 - Add PDF generation for invoices
  • Loading branch information
brunoferreiralkn authored Oct 18, 2023
2 parents 7945f3c + 5a709fd commit bc37b75
Show file tree
Hide file tree
Showing 50 changed files with 5,442 additions and 99 deletions.
20 changes: 10 additions & 10 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": "standard",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
}
}
"env": {
"browser": true,
"es2021": true
},
"extends": "standard",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
}
}
5 changes: 4 additions & 1 deletion .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
.devcontainer/devcontainer.json
vendor
.phan/stubs
node_modules
node_modules
includes/phpqrcode/cache/*/
includes/phpqrcode/cache/*.png
includes/phpqrcode/cache/*.dat
15 changes: 11 additions & 4 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@

return (new PhpCsFixer\Config())
->setRules(array(
// Built-ins
'short_scalar_cast' => true,
'visibility_required' => true,
'elseif' => true,
'no_superfluous_elseif' => true,
'@PhpCsFixer' => true,
'align_multiline_comment' => array('comment_type' => 'phpdocs_like'),
'array_syntax' => array('syntax' => 'long'),
'binary_operator_spaces' => true,
Expand All @@ -36,7 +34,7 @@
'control_structure_continuation_position' => true,
'dir_constant' => true,
'fully_qualified_strict_types' => true,
'global_namespace_import' => true,
'global_namespace_import' => false,
'include' => true,
'list_syntax' => array('syntax' => 'long'),
'lowercase_cast' => true,
Expand Down Expand Up @@ -81,13 +79,22 @@
'identical' => true,
'always_move_variable' => true,
),

'modernize_types_casting' => true,
'final_class' => true,
'final_internal_class' => true,
'final_public_method_for_abstract_class' => true,
'void_return' => true,
'logical_operators' => true,
'array_indentation' => true,
'whitespace_after_comma_in_array' => array(
'ensure_single_space' => true,
),
'method_argument_space' => array(
'keep_multiple_spaces_after_comma' => false,
'on_multiline' => 'ensure_fully_multiline',
),
'native_function_invocation' => false,
'native_constant_invocation' => false,
))
->setIndent(' ')
->setLineEnding("\n")
Expand Down
Empty file modified .vscode/settings example.json
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions CHANGELOG.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 1.2.0 - 18/10/23
- Add PDF generation for invoices

### v1.1.4 - 07/06/23
- Fix invoices table error when the invoice order is deleted.

Expand Down
Empty file modified LICENSE.txt
100644 → 100755
Empty file.
8 changes: 8 additions & 0 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@ The Invoice Payment for WooCommerce plugin is now live and working.

You have created your first invoice with the Invoice Payment for WooCommerce plugin.


## Development notes

HTML to PDF lib: https://github.com/dompdf/dompdf

Setup a WYSIWYG editor in a textarea: https://codex.wordpress.org/Javascript_Reference/wp.editor

QR Code lib: https://phpqrcode.sourceforge.net/#home
5 changes: 4 additions & 1 deletion README.txt
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.linknacional.com/wordpress/plugins/
Tags: woocommerce, invoice, payment
Requires at least: 5.7
Tested up to: 6.1
Stable tag: 1.1.4
Stable tag: 1.2.0
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -64,6 +64,9 @@ The Invoice Payment for WooCommerce plugin is now live and working.

== Changelog ==

= 1.2.0 =
* Add PDF generation for invoices

= 1.1.4 =
* Fix invoices table error when the invoice order is deleted.

Expand Down
Loading

0 comments on commit bc37b75

Please sign in to comment.