Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #12 from AndresMorelos/tax-amount-0-available
Browse files Browse the repository at this point in the history
Enabling 0% as tax value.
  • Loading branch information
AndresMorelos authored Jan 11, 2022
2 parents 4123e85 + a7ea52d commit 262c13f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ function validateDiscount(isRequired, discount) {
function validateTax(isRequired, tax) {
const { amount } = tax;
if (isRequired) {
if (!amount || amount === '' || amount <= 0) {
if ([null, undefined, ''].includes(amount) || amount < 0) {
openDialog({
type: 'warning',
title: i18n.t('dialog:validation:tax:title'),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "invoncify",
"homepage": "https://invoncify.andresmorelos.me",
"productName": "Invoncify",
"version": "1.4.1",
"version": "1.4.2",
"license": "GPL-3.0",
"description": "Flexible invoicing desktop app with beautiful & customizable templates",
"author": {
Expand Down

0 comments on commit 262c13f

Please sign in to comment.