From 08ec53730145c61305a3e14f70ff401770366767 Mon Sep 17 00:00:00 2001 From: feugy Date: Tue, 4 Sep 2018 07:59:38 +0200 Subject: [PATCH] fix(invoice): VAT lost and discount not shown on print --- .gitignore | 2 +- app/src/directive/invoice_item.coffee | 4 +++- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 8d19147..9d64d43 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ app/script app/style app/vendor data-test/ -node_modules +node_modules* test/fixture/out.* test/script test/vendor diff --git a/app/src/directive/invoice_item.coffee b/app/src/directive/invoice_item.coffee index fad923a..c2d7653 100644 --- a/app/src/directive/invoice_item.coffee +++ b/app/src/directive/invoice_item.coffee @@ -44,7 +44,9 @@ class InvoiceItemDirective # # @param option {Object} option assigned to current edited values prefill: (option) => - Object.assign @src, option, label: undefined + @src.name = option.name + @src.quantity = option.quantity + @src.price = option.price # check if field is missing or not # diff --git a/package.json b/package.json index 3a8ed76..18ccd84 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dancerm", - "version": "4.7.0", + "version": "4.7.1", "author": "Feugy ", "description": "DanceRM is a very simple Customer Relationship software specialized for dance schools", "repository": {