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"> + +