Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
a1726fc
Print VAT summary only if there are invoice rows.
emaijala Dec 1, 2018
c547a78
Fix printing of header and footer.
emaijala Dec 1, 2018
279517a
Fix a translation typo.
emaijala Dec 1, 2018
d1a30a6
Add support for printing multiple to a PDF from invoice and offer lists.
emaijala Dec 1, 2018
448a87d
Make setup a bit more robust and able to update the password of admin…
emaijala Dec 1, 2018
a06944a
Encapsulate form_switch to avoid registering so many globals.
emaijala Dec 2, 2018
67c992b
Suppress extra error message if YTJ search doesn't find anything.
emaijala Dec 2, 2018
ad52dac
Fix row selection action button activation.
emaijala Dec 5, 2018
b31a330
Fix copyright year.
emaijala Dec 5, 2018
67b0622
Encapsulate list_switch to avoid registering so many globals.
emaijala Dec 5, 2018
3cf5b17
Display billing company properly in invoice report.
emaijala Dec 5, 2018
34f3489
Switch on hard wrap in Markdown rendering. Fix several bugs with list…
emaijala Dec 6, 2018
c7d7a4f
Fix markdown.php to include autoloader and enable hard wraps. Fixes #…
emaijala Dec 23, 2018
f975503
Fix code style.
emaijala Dec 23, 2018
e83fe1c
Rewrite form JS as a separate module.
emaijala Dec 30, 2018
137c186
Fix Finvoice description splitting. Fixes #323.
emaijala Jan 7, 2019
e02a3e4
Add button classes to html.
emaijala Jan 7, 2019
2b8eb8c
Move form-specific functionality from mlinvoice.js to mlinvoice-form.js.
emaijala Jan 9, 2019
0a45795
Fix drop-down menus.
emaijala Jan 10, 2019
74d394a
Proper page title for company links.
emaijala Jan 10, 2019
adf0901
Write recipient email address to PDF with a proper link.
emaijala Jan 10, 2019
574dfc6
Fix form buttons e.g. in settings.
emaijala Jan 10, 2019
40b0a48
Make it possible to display delivery info in dispatch notes too.
emaijala Jan 10, 2019
9b3bb4f
Fix delete button.
emaijala Jan 19, 2019
717d3cb
Fix saving of checkbox values.
emaijala Jan 24, 2019
661078b
Add support for automatic creation of RF references. Closes #324.
emaijala Feb 1, 2019
9dd2074
Change task name.
emaijala Feb 1, 2019
6dc3b6e
Fix editing and display of client-specific prices in product lists.
emaijala Feb 1, 2019
5a9d8a1
Fix handling of default values of invoice rows and make row numbering…
emaijala Feb 1, 2019
3ae4d12
Fix saving of select field values.
emaijala Feb 10, 2019
fb141e7
Upgrade DataTables and add support for selecting invoice rows to disp…
emaijala Feb 13, 2019
19cee7e
Bump version number.
emaijala Feb 13, 2019
23bad15
Make the printout file name sanitization a bit smarter.
emaijala Feb 18, 2019
b9a39cf
Fix saving of tags.
emaijala Feb 18, 2019
0bf2db1
Add support for tags in reports.
emaijala Feb 18, 2019
8719b28
Fix saving of products.
emaijala Feb 22, 2019
ecefc70
Include css/custom.css if it exists.
emaijala Feb 22, 2019
25f4502
Tweak list styles a bit and make secondary and tertiary sort visible.
emaijala Feb 22, 2019
0761402
Use consecutive numbering when updating row order by dragging.
emaijala Feb 26, 2019
49d938c
Switch most style tags to use classes instead.
emaijala Feb 26, 2019
5570443
Start row renumbering from 1.
emaijala Feb 26, 2019
80a2cf5
Update LICENSE.
emaijala Feb 26, 2019
958387b
Minify JS, switch to SASS for CSS using grunt.
emaijala Feb 26, 2019
02191df
Don't package node_modules into a release.
emaijala Feb 26, 2019
905d7b1
Fix checks to ignore minified js.
emaijala Feb 27, 2019
cf2a3c1
Fix code style.
emaijala Feb 27, 2019
7fee1eb
Fix addition of reminder fees.
emaijala Mar 2, 2019
9df1a70
Create source map in uglify.
emaijala Mar 2, 2019
f452631
Ignore partial payments and reminder fees when adding dispatch note b…
emaijala Mar 2, 2019
cab838e
Remove console.log debug message and copy button from reminder fees.
emaijala Mar 2, 2019
98e009a
Fix row total calculation for partial payments.
emaijala Mar 2, 2019
80abbb1
Remove extraneous '<br>' from deleted record message.
emaijala Mar 2, 2019
e165a97
Handle partial payments properly when creating a refunding invoice.
emaijala Mar 2, 2019
1451c95
Use the invoicing company of last saved invoice as default during ses…
emaijala Mar 4, 2019
bfccfa5
Make password recovery more robust.
emaijala Mar 8, 2019
e62eef3
Add more delays to login attempts.
emaijala Mar 8, 2019
d4f6f1d
Add Markdown editor. Closes #321.
emaijala Mar 10, 2019
a463531
Add node_modules to .gitignore.
emaijala Mar 10, 2019
9c0ae0b
Clean up editor toolbar transitions and fix fullscreen layout.
emaijala Mar 17, 2019
9402010
Fix code style.
emaijala Mar 18, 2019
0cb9774
Add a setting for disabling the visual Markdown editor.
emaijala Mar 18, 2019
b4e56d6
Guard password recovery with a csrf token.
emaijala Mar 18, 2019
914fa13
Use FA in more places and add some accessibility labels.
emaijala Mar 18, 2019
72fe4c9
Make the attachments button more accessible. Simplify code.
emaijala Mar 19, 2019
c31a264
Use caret for the dropdown button.
emaijala Mar 19, 2019
de44f86
Remove empty function.
emaijala Mar 20, 2019
d4036b7
Update minified file.
emaijala Mar 20, 2019
79e9469
Add an option to never print out a separate statement.
emaijala Mar 23, 2019
3b67d38
Update spec file for version 1.20.0.
emaijala Mar 23, 2019
f3f9ddf
Fix spec file.
emaijala Mar 23, 2019
9878076
Fix positioning of field and attached element.
emaijala Mar 23, 2019
56ccf39
Fix multieditor style.
emaijala Mar 23, 2019
17fe271
Fix displaying and hiding of fields in offers.
emaijala Mar 25, 2019
486fb3a
Don't let Markdown editor height grow.
emaijala Mar 25, 2019
5ee1158
Fix translation.
emaijala Mar 25, 2019
d996758
Fix spec file to not include node_modules.
emaijala Mar 25, 2019
d2cdc86
Add custom.css to .gitignore.
emaijala Mar 25, 2019
a33ad97
Fix sending of invoices via Postita.fi.
emaijala Mar 25, 2019
f49f951
Bump version to 1.20.1.
emaijala Mar 25, 2019
6095c4c
Fix editing multiple offers. Fixes #327.
emaijala Mar 30, 2019
2a14b54
Fix offer name list header.
emaijala Mar 30, 2019
f92c4c5
Fix embedding of landscape PDF's. Fixes #326.
emaijala Mar 31, 2019
1514600
Bump version to 1.20.2.
emaijala Mar 31, 2019
3c17e1e
Fix column order in invoice printout,
emaijala Apr 2, 2019
dae1d18
Fix copying of records. Fixes #328.
emaijala Apr 2, 2019
363de91
Check for empty password in Postita.fi. Fixes #329.
emaijala Apr 2, 2019
45d522a
Tweak button spacing a bit.
emaijala Apr 2, 2019
cb5eca4
Bump version number to 1.20.3.
emaijala Apr 2, 2019
4d47ed2
Fix an edge case with rounding the prices in printouts.
emaijala Apr 3, 2019
f531142
Fix saving of send method passwords.
emaijala Apr 4, 2019
934bf95
Bump version to 1.20.4.
emaijala Apr 4, 2019
b516734
Remove type attribute from script tags.
emaijala Apr 30, 2019
00a48e9
Remove extraneous input close tags.
emaijala Apr 30, 2019
ddbfff8
Make parameter handling more robust. Closes #330.
emaijala Apr 30, 2019
e731622
Fix wrapping of client's reference, terms of payment and valid until …
emaijala Apr 30, 2019
15296d0
Fix default text selection when sending email.
emaijala Apr 30, 2019
4bceaea
Fix select fields in extended search.
emaijala Apr 30, 2019
f6d160d
Make editor toolbars always visible. Tweak margins in non-fullscreen …
emaijala Apr 30, 2019
d64c1ad
Bump version number to 1.20.5.
emaijala Apr 30, 2019
4363fbb
Fix code style.
emaijala Apr 30, 2019
5ba1741
Fix paginator when quick filter is set.
emaijala Jul 16, 2019
fbb00d5
Fix export of decimal values to Excel.
emaijala Jul 16, 2019
7857039
Fix multieditor to not screw up records with data form the first sele…
emaijala Jul 17, 2019
462f1b9
Switch to EasyMDE and avoid forceSync.
emaijala Jul 18, 2019
069fb05
Disable EasyMDE on Android for now. Closes #337.
emaijala Jul 18, 2019
16f96df
Add possibility to configure whether the last invoicing company. Clos…
emaijala Jul 18, 2019
906f07e
Fix a typo in Swedish translation.
emaijala Jul 18, 2019
5c57732
Always display delivery address if defined. Fixes #336.
emaijala Jul 18, 2019
36be6f3
Add support for forcing connection to https.
emaijala Aug 17, 2019
c4e5f46
Bump version to 1.21.0.
emaijala Aug 17, 2019
c55966c
Fix saving of password fields on forms.
emaijala Aug 21, 2019
a0ebd96
Disable keepalive on login and logout page.
emaijala Aug 21, 2019
2686a57
Try to disable max execution time in db upgrade too.
emaijala Aug 21, 2019
5ce4741
Bump version to 1.21.1.
emaijala Aug 21, 2019
215f421
Fix doc comment.
emaijala Aug 21, 2019
0441647
Update EasyMDE to 2.8.0.
emaijala Aug 24, 2019
4640b08
Fix handling of Markdown-enabled fields when MDE is not active.
emaijala Aug 24, 2019
1e4b903
Fix height of Markdown editor in fullscreen and elsewhere than invoic…
emaijala Aug 24, 2019
2672687
Fix several list filtering options. Fixes #341 and #342.
emaijala Aug 27, 2019
404fe24
Fix translation of print template types.
emaijala Aug 27, 2019
349fd46
Fix totals in footer in product report.
emaijala Aug 31, 2019
58f5153
Remove IP address check due to issues with mobile connections.
emaijala Aug 31, 2019
31b5832
Bump version to 1.21.2.
emaijala Aug 31, 2019
6716d57
Add support for attachments in installations missing mime_content_typ…
emaijala Sep 15, 2019
7f08eb4
Handle uppercase file extensions in attachment type detection.
emaijala Sep 16, 2019
8e36265
Include error code if file upload fails.
emaijala Sep 16, 2019
4e08b6a
Display maximum attachment size in upload prompts.
emaijala Sep 30, 2019
72c10d3
Use normal PDF margins also in invoices with discounted rows.
emaijala Oct 9, 2019
2138699
Add support for info fields longer than 512 characters in Finvoice. C…
emaijala Jan 11, 2020
ea3c5d7
Fix variable name.
emaijala Jan 11, 2020
3aa295f
Add decimal and thousand separators to DataTables translations.
emaijala Jan 11, 2020
5f193a7
Add support for printing selected invoices in all lists. Closes #346.
emaijala Jan 11, 2020
c0bbedd
Add "All" choice to number of rows to display in a table.
emaijala Jan 11, 2020
fd3bc4c
Fix list name consistency, prefer singular form.
emaijala Jan 11, 2020
e3dd948
Fix doc comment.
emaijala Jan 11, 2020
c9cbb90
Update dependencies.
emaijala Jan 11, 2020
b763738
Add Travis build for PHP 7.3.
emaijala Jan 11, 2020
8615618
Add 500 records per page as a safe option for multiedit. Warn about p…
emaijala Jan 13, 2020
eaede70
Die with an error message if print template file cannot be read.
emaijala Oct 17, 2020
965a768
Add original payment date to message about already paid invoice to st…
emaijala Oct 17, 2020
ca23eb8
Fix code style.
emaijala Oct 17, 2020
a8aa406
Use eslint 6.x to avoid requiring node v10.
emaijala Oct 17, 2020
97e6f08
Upgrade dependencies and fix mailer for compatibility with new Swift …
emaijala Oct 17, 2020
fc33ab7
Fix PHP 8 compatibility issues.
emaijala Mar 9, 2021
625bfcf
Update dependencies.
emaijala Apr 27, 2021
35cfa6e
Update npm packages.
emaijala May 13, 2021
25b788e
Add package-lock.json.
emaijala May 13, 2021
91e01cf
Update dependencies.
emaijala May 13, 2021
4c85196
Improve updater messages and functionality.
emaijala Sep 18, 2021
f0e4e2a
Add support for requirements checks in updater.
emaijala Sep 19, 2021
95a5661
Fix version checks in updater.
emaijala Sep 19, 2021
862430a
Update npm dependencies.
emaijala Oct 23, 2021
423c733
Fix a PHP 8 compatibility issue with mysqli_stmt_bind_param.
emaijala Oct 27, 2021
0a4ce3d
Fix dbParamQuery when copying or converting invoice.
emaijala Oct 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 6 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ module.exports = {
"error",
"last"
],
"complexity": "error",
"complexity": [
"error",
{
"max": 25
}
],
"computed-property-spacing": [
"error",
"never"
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ tcpdf/cache/*
vendor
.php_cs.cache
db_data/*
node_modules
css/custom.css
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
sudo: false
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4

before_script:
- phpenv config-rm xdebug.ini
- phpenv rehash
- composer install
- npm install -g eslint
- npm install -g eslint@6

cache:
directories:
- $HOME/.composer/cache
- .php_cs.cache

script:
- vendor/bin/phing travis -Dphp-cs-fixer-extra-params="--cache-file=.php_cs.cache/.php_cs.cache"
- vendor/bin/phing ci -Dphp-cs-fixer-extra-params="--cache-file=.php_cs.cache/.php_cs.cache"
46 changes: 46 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
options: {
atBegin: true
},
scss: {
files: 'css/*.scss',
tasks: ['sass']
},
js: {
files: ['js/mlinvoice.js', 'js/mlinvoice-form.js'],
tasks: ['uglify']
}
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
sourceMap: true
},
build: {
files: {
'js/mlinvoice.min.js': ['js/mlinvoice.js', 'js/mlinvoice-form.js']
}
}
},
sass: {
dist: {
options: {
style: 'compressed'
},
files: {
'css/style.css': 'css/style.scss',
'css/table.css': 'css/table.scss',
}
}
}
});

grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.loadNpmTasks('grunt-contrib-sass');

grunt.loadNpmTasks('grunt-contrib-watch');
};
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MLInvoice: web-pohjainen laskutusohjelma.
Copyright (C) 2010-2017 Ere Maijala
Copyright (C) 2010-2019 Ere Maijala

Perustuu osittain sovellukseen:
PkLasku laskutusohjelma : web-pohjainen laskutusohjelma.
Expand Down Expand Up @@ -27,7 +27,7 @@ Ere Maijala
ere at labs.fi

MLInvoice: web-based invoicing application.
Copyright (C) 2010-2017 Ere Maijala
Copyright (C) 2010-2019 Ere Maijala

Portions based on:
PkLasku-invoicing : web-based invoicing software.
Expand Down
61 changes: 57 additions & 4 deletions abstract_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,58 @@ abstract class AbstractReport
*/
abstract public function createReport();

/**
* Create a limit query
*
* @return array
*/
protected function createLimitQuery()
{
$strQuery = '';
$arrParams = [];

$intBaseId = getPostOrQuery('base', false);
if ($intBaseId) {
$strQuery .= ' AND i.base_id = ?';
$arrParams[] = $intBaseId;
}
$intCompanyId = getPostOrQuery('company', false);
if ($intCompanyId) {
$strQuery .= ' AND i.company_id = ?';
$arrParams[] = $intCompanyId;
}

$dateRange = explode(' - ', getPostOrQuery('date', ''));
$startDate = $dateRange[0];
$endDate = isset($dateRange[1]) ? $dateRange[1] : $startDate;
if ($startDate) {
$strQuery .= ' AND i.invoice_date >= ?';
$arrParams[] = dateConvDate2DBDate($startDate);
}
if ($endDate) {
$strQuery .= ' AND i.invoice_date <= ?';
$arrParams[] = dateConvDate2DBDate($endDate);
}

if ($tags = getPostOrQuery('tags')) {
$tagsQuery = [];
foreach (explode(',', $tags) as $tag) {
$tag = trim($tag);
$tagsQuery[] = <<<EOT
c.id IN (
SELECT ctl.company_id FROM {prefix}company_tag_link ctl WHERE ctl.tag_id=(
SELECT ct.id FROM {prefix}company_tag ct WHERE ct.tag=?
)
)
EOT;
$arrParams[] = $tag;
}
$strQuery .= ' AND (' . implode(' OR ', $tagsQuery) . ')';
}

return [$strQuery, $arrParams];
}

/**
* Get a string with the selected parameters
*
Expand All @@ -63,9 +115,10 @@ protected function getParamsStr($html)
'accounting_date' => ['name' => 'DateInterval'],
'row_date' => ['name' => 'InvoiceRowDateInterval'],
'payment_date' => ['name' => 'PaymentDateInterval'],
'tags' => ['name' => 'Tags'],
'base' => [
'name' => 'Biller',
'sql' => 'SELECT name FROM {prefix}base WHERE id = ?'
'sql' => 'SELECT name as v FROM {prefix}base WHERE id = ?'
],
'company' => [
'name' => 'Client',
Expand Down Expand Up @@ -128,7 +181,7 @@ protected function getParamsStr($html)
$states = [];
while ($row = mysqli_fetch_assoc($res)) {
$stateId = $row['id'];
if (getRequest("stateid_$stateId", false)) {
if (getPostOrQuery("stateid_$stateId", false)) {
$states[] = Translator::translate($row['name']);
}
}
Expand All @@ -149,7 +202,7 @@ protected function getParamsStr($html)
protected function addInvoiceStateSelection()
{
?>
<div style="float: left; margin-right: 20px;">
<div class="invoice-states">
<div class="medium_label"><?php echo Translator::translate('PrintReportStates')?></div>
<?php
$strQuery = 'SELECT id, name, invoice_offer FROM {prefix}invoice_state WHERE deleted=0'
Expand All @@ -159,7 +212,7 @@ protected function addInvoiceStateSelection()
while ($row = mysqli_fetch_assoc($intRes)) {
$intStateId = $row['id'];
$strStateName = Translator::translate($row['name']);
$strChecked = getRequest("stateid_$intStateId", $row['invoice_offer'] ? false : true) ? ' checked' : '';
$strChecked = getPostOrQuery("stateid_$intStateId", $row['invoice_offer'] ? false : true) ? ' checked' : '';
if (!$first) {
echo " <div class=\"medium_label\"></div>\n";
}
Expand Down
14 changes: 10 additions & 4 deletions accounting_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ public function __construct()
*/
protected function addLimitSelection()
{
$intBaseId = getRequest('base', false);
$intCompanyId = getRequest('company', false);
$dateRange = getRequest('date', '');
$intBaseId = getPostOrQuery('base', false);
$intCompanyId = getPostOrQuery('company', false);
$dateRange = getPostOrQuery('date', '');
$companyTags = getPostOrQuery('tags', '');
?>
<div class="medium_label">
<?php echo Translator::translate('DateInterval')?>
Expand All @@ -78,6 +79,11 @@ protected function addLimitSelection()
<div class="field">
<?php echo htmlFormElement('company', 'LIST', $intCompanyId, 'medium', 'SELECT id, company_name FROM {prefix}company WHERE deleted=0 ORDER BY company_name', 'MODIFY', false)?>
</div>

<div class="medium_label"><?php echo Translator::translate('Tags')?></div>
<div class="field">
<?php echo htmlFormElement('tags', 'TAGS', $companyTags, 'noemptyvalue long', 'table=company_tag&sort=tag', 'MODIFY', false)?>
</div>
<?php
}

Expand All @@ -99,7 +105,7 @@ protected function createLimitQuery()
{
list($query, $params) = parent::createLimitQuery();

$dateRange = explode(' - ', getRequest('accounting_date', ''));
$dateRange = explode(' - ', getPostOrQuery('accounting_date', ''));
$startDate = $dateRange[0];
$endDate = isset($dateRange[1]) ? $dateRange[1] : $startDate;
if ($startDate) {
Expand Down
4 changes: 2 additions & 2 deletions attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
require_once 'datefuncs.php';
require_once 'miscfuncs.php';

$id = getRequest('id', false);
$type = getRequest('type', false);
$id = getPostOrQuery('id', false);
$type = getPostOrQuery('type', false);

$attachment = 'invoice' === $type ? getInvoiceAttachment($id) : getAttachment($id);
if ($attachment) {
Expand Down
14 changes: 7 additions & 7 deletions base_logo.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

sesVerifySession();

$func = getRequest('func', 'view');
$baseId = getRequest('id', null);
$func = getPostOrQuery('func', 'view');
$baseId = getPostOrQuery('id', null);

if (!isset($baseId) || !is_numeric($baseId) || !isset($func)) {
exit();
Expand Down Expand Up @@ -112,22 +112,22 @@

echo htmlPageStart();
?>
<div class="form_container ui-widget-content">
<div class="form_container ui-widget-content base-logo">
<div class="message"><?php echo $messages?></div>

<div class="form ui-widget">
<div style="margin-bottom: 10px">
<div class="image-link">
<img class="image" src="?func=view&amp;id=<?php echo $baseId?>">
</div>
<form id="form_upload" enctype="multipart/form-data"
action="base_logo.php" method="POST">
<input type="hidden" name="func" value="upload"> <input type="hidden"
name="id" value="<?php echo $baseId?>">
<div class="label" style="clear: both; margin-top: 10px; margin-bottom: 10px"><?php printf(Translator::translate('BaseLogo'), $maxFileSize)?></div>
<div class="label file"><?php printf(Translator::translate('BaseLogo'), $maxFileSize)?></div>
<div class="long">
<input name="logo" type="file">
</div>
<div class="form_buttons" style="clear: both">
<div class="form_buttons">
<input type="submit"
value="<?php echo Translator::translate('BaseSaveLogo')?>">
</div>
Expand All @@ -136,7 +136,7 @@
action="base_logo.php" method="POST">
<input type="hidden" name="func" value="clear"> <input type="hidden"
name="id" value="<?php echo $baseId?>">
<div class="form_buttons" style="clear: both">
<div class="form_buttons">
<input type="submit"
value="<?php echo Translator::translate('BaseEraseLogo')?>">
</div>
Expand Down
8 changes: 4 additions & 4 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<property name="php-cs-fixer-rules" value="no_spaces_after_function_name,no_trailing_whitespace,no_unused_imports,lowercase_keywords,encoding,no_spaces_inside_parenthesis,no_closing_tag,visibility_required,no_empty_statement,no_extra_consecutive_blank_lines,no_blank_lines_after_class_opening,no_blank_lines_after_phpdoc,binary_operator_spaces,no_singleline_whitespace_before_semicolons,ternary_operator_spaces,phpdoc_no_access,no_leading_import_slash" />
<property name="php-cs-fixer-extra-params" value=""/>

<!-- Travis Tasks -->
<target name="travis" description="Travis tasks">
<!-- CI Checks -->
<target name="ci" description="CI checks">
<!-- Call standard tasks -->
<phingcall target="eslint"/>
<phingcall target="phpcs-n"/>
Expand All @@ -15,10 +15,10 @@

<!-- eslint -->
<target name="eslint">
<exec command="eslint js/functions.js js/mlinvoice.js js/stock_balance.js" escape="false" checkreturn="true" passthru="true" />
<exec command="eslint js/mlinvoice.js js/mlinvoice-form.js" escape="false" checkreturn="true" passthru="true" />
</target>
<target name="eslint-fix">
<exec command="eslint js/functions.js js/mlinvoice.js js/stock_balance.js --fix" escape="false" checkreturn="true" passthru="true" />
<exec command="eslint js/mlinvoice.js js/mlinvoice-form.js --fix" escape="false" checkreturn="true" passthru="true" />
</target>

<!-- PHP CodeSniffer -->
Expand Down
25 changes: 12 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "emaijala/MLInvoice",
"name": "emaijala/mlinvoice",
"description": "Free web-based invoicing primarily for Finnish companies",
"authors": [
{
Expand All @@ -10,23 +10,22 @@
"license": "GPL-2.0",
"config": {
"platform": {
"php": "5.6.0"
"php": "7.2.5"
}
},
"require": {
"michelf/php-markdown": "^1.8",
"paragonie/random_compat": "^2.0",
"ramsey/uuid": "^3.7",
"setasign/fpdi": "^2.1",
"swiftmailer/swiftmailer": "^5.4",
"tecnickcom/tcpdf": "^6.2",
"guzzlehttp/guzzle": "^6.3",
"phpseclib/phpseclib": "^2.0"
"michelf/php-markdown": "^1.9.0",
"ramsey/uuid": "^4.1.1",
"setasign/fpdi": "^2.3.4",
"swiftmailer/swiftmailer": "^6.2.3",
"tecnickcom/tcpdf": "^6.3.5",
"guzzlehttp/guzzle": "^7.2.0",
"phpseclib/phpseclib": "^2.0.31"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^v2.10.3",
"phing/phing" : "^2.16.1",
"squizlabs/php_codesniffer": "^3.2.3"
"friendsofphp/php-cs-fixer": "^v2.16.4",
"phing/phing" : "^2.16.3",
"squizlabs/php_codesniffer": "^3.5.6"
},
"scripts": {
"post-install-cmd": [
Expand Down
Loading