From 4c7aae95aa4fc4e5ac56947380cf6f4fc2f1fbcb Mon Sep 17 00:00:00 2001 From: alexandre Date: Mon, 13 Feb 2023 13:04:22 +0100 Subject: [PATCH 01/11] refs #5172 added default icon --- modules/client/back/methods/client/getCard.js | 1 + modules/client/front/descriptor/index.html | 19 ++++++++++++------- modules/client/front/descriptor/index.js | 5 +++++ modules/client/front/descriptor/locale/es.yml | 4 +++- 4 files changed, 21 insertions(+), 8 deletions(-) diff --git a/modules/client/back/methods/client/getCard.js b/modules/client/back/methods/client/getCard.js index afbe36e49..99c59f757 100644 --- a/modules/client/back/methods/client/getCard.js +++ b/modules/client/back/methods/client/getCard.js @@ -80,6 +80,7 @@ module.exports = function(Self) { const data = await Self.rawSql(query, [id, date], myOptions); client.debt = data[0].debt; + client.unpaid = await Self.app.models.ClientUnpaid.findOne({id}, myOptions); return client; }; diff --git a/modules/client/front/descriptor/index.html b/modules/client/front/descriptor/index.html index ef5c2997f..a85c97803 100644 --- a/modules/client/front/descriptor/index.html +++ b/modules/client/front/descriptor/index.html @@ -18,26 +18,26 @@
+ info="Invoices minus payments plus orders not yet invoiced"> - {{$ctrl.client.salesPersonUser.name}} @@ -70,6 +70,11 @@ icon="icon-no036" ng-if="$ctrl.client.isTaxDataChecked == false"> + +