|
|
|
@ -49,7 +49,7 @@ export class DemandeOpCommercialComponent implements OnInit, OnDestroy {
|
|
|
|
|
this.opCommDataRejeter = this.afDb.list('/OperationCommercial/',{
|
|
|
|
|
query: {
|
|
|
|
|
orderByChild: 'validationXJC',
|
|
|
|
|
equalTo: 'rejeté'
|
|
|
|
|
equalTo: 'Rejeté'
|
|
|
|
|
}
|
|
|
|
|
}).map((array) => array.reverse()) as FirebaseListObservable<any[]>;
|
|
|
|
|
}
|
|
|
|
@ -64,7 +64,7 @@ export class DemandeOpCommercialComponent implements OnInit, OnDestroy {
|
|
|
|
|
const opTarifFRef = this.databaseRef.child('OperationCommercial').child(opRejeter.uid).child('tarifXJCFilleul');
|
|
|
|
|
opTarifFRef.set('');
|
|
|
|
|
const opEnvRef = this.databaseRef.child('OperationCommercial').child(opRejeter.uid).child('validationXJC');
|
|
|
|
|
opEnvRef.set('rejeté');
|
|
|
|
|
opEnvRef.set('Rejeté');
|
|
|
|
|
this.tarifXJCParr = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -75,7 +75,7 @@ export class DemandeOpCommercialComponent implements OnInit, OnDestroy {
|
|
|
|
|
const opTarifFRef = this.databaseRef.child('OperationCommercial').child(opValider.uid).child('tarifXJCFilleul');
|
|
|
|
|
opTarifFRef.set(this.tarifXJCParr.toString());
|
|
|
|
|
const opEnvRef = this.databaseRef.child('OperationCommercial').child(opValider.uid).child('validationXJC');
|
|
|
|
|
opEnvRef.set('validé');
|
|
|
|
|
opEnvRef.set('Validé');
|
|
|
|
|
this.tarifXJCParr = 0;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|