+
+
+
+
+
+
+
+
+
diff --git a/client/app/account/contacts/service/edit/edit.routing.js b/client/app/account/contacts/service/edit/edit.routing.js
index b54af0532..1adb32693 100644
--- a/client/app/account/contacts/service/edit/edit.routing.js
+++ b/client/app/account/contacts/service/edit/edit.routing.js
@@ -1,4 +1,5 @@
import _ from 'lodash';
+import { DEBT_ALL } from './edit.constants';
export default /* @ngInject */ ($stateProvider) => {
$stateProvider.state('app.account.useraccount.contacts.services.edit', {
@@ -10,6 +11,7 @@ export default /* @ngInject */ ($stateProvider) => {
},
layout: 'modal',
resolve: {
+ billLink: /* @ngInject */ $state => $state.href('app.account.billing.main.history.pay-debt', { debtId: DEBT_ALL }),
changeContact: /* @ngInject */
AccountContactsService => service => AccountContactsService.changeContact(service),
goBack: /* @ngInject */ goToContacts => goToContacts,
diff --git a/client/app/account/contacts/service/edit/translations/Messages_fr_FR.json b/client/app/account/contacts/service/edit/translations/Messages_fr_FR.json
index 46b5c426c..ad3183da0 100644
--- a/client/app/account/contacts/service/edit/translations/Messages_fr_FR.json
+++ b/client/app/account/contacts/service/edit/translations/Messages_fr_FR.json
@@ -7,5 +7,8 @@
"account_contacts_service_edit_cancel": "Annuler",
"account_contacts_service_edit_confirm": "Valider",
"account_contacts_service_edit_error": "Une erreur est survenue lors de la demande de changement de contact : {{ message }}",
- "account_contacts_service_edit_success": "La demande de changement de contact a été efféctuée avec succès. Les contacts concernés par la demande recevront un email contenant la procédure de validation."
+ "account_contacts_service_edit_success": "La demande de changement de contact a été effectuée avec succès. Les contacts concernés par la demande recevront un e-mail contenant la procédure de validation.",
+ "account_contacts_service_edit_warn_debt": "Vous ne pouvez pas modifier le contact de facturation, car une facture est en attente de règlement pour ce service. Nous vous invitons à la régler afin d’effectuer ce changement.",
+ "account_contacts_service_edit_pay": "Régler la facture",
+ "account_contacts_service_edit_warn_contact_billing": "Vous ne pouvez pas modifier le contact de facturation, car une facture est en attente de règlement pour ce service. Nous vous invitons à joindre le contact de facturation actuel {{ nicBilling }} afin qu’il effectue ce changement."
}
diff --git a/client/app/account/contacts/service/user-contacts-service.routes.js b/client/app/account/contacts/service/user-contacts-service.routes.js
index 820895c4a..90766096e 100644
--- a/client/app/account/contacts/service/user-contacts-service.routes.js
+++ b/client/app/account/contacts/service/user-contacts-service.routes.js
@@ -5,11 +5,7 @@ export default /* @ngInject */ ($stateProvider) => {
resolve: {
editContacts: /* @ngInject */ $state => service => $state.go('app.account.useraccount.contacts.services.edit', { service: service.serviceName }),
getServiceInfos: /* @ngInject */
- AccountContactsService => service => AccountContactsService.getServiceInfos(service)
- .then(serviceInfos => ({
- ...service,
- ...serviceInfos,
- })),
+ AccountContactsService => service => AccountContactsService.getServiceInfos(service),
goToContacts: /* @ngInject */ ($state, $timeout, Alerter) => (message = false, type = 'success') => {
const reload = message && type === 'success';
diff --git a/client/app/models/BillingService.class.js b/client/app/models/BillingService.class.js
index 70e1da906..6adb97f24 100644
--- a/client/app/models/BillingService.class.js
+++ b/client/app/models/BillingService.class.js
@@ -65,7 +65,12 @@ export default class BillingService {
}
hasDebt() {
- return _.includes(['PENDING_DEBT', 'UN_PAID'], this.status);
+ return _.includes([
+ 'PENDING_DEBT',
+ 'UN_PAID',
+ 'pendingDebt',
+ 'unPaid',
+ ], this.status);
}
hasEngagement() {