|
|
|
@ -75,6 +75,7 @@ export class EnvoyerCarteComponent implements OnInit, OnDestroy {
|
|
|
|
|
this.parrain = new Parrain();
|
|
|
|
|
this.commercant = new Commercant();
|
|
|
|
|
this.cartePar = new CarteParrainage();
|
|
|
|
|
this.cartePar.uid = firebase.database().ref().child('CarteParrainage').push().key;
|
|
|
|
|
this.parrainAffList = null;
|
|
|
|
|
this.minDateTimeTest = new Date('1917-01-01');
|
|
|
|
|
this.maxDateTimeTest = new Date('2117-01-01');
|
|
|
|
@ -110,7 +111,7 @@ export class EnvoyerCarteComponent implements OnInit, OnDestroy {
|
|
|
|
|
this.opCommList.forEach(op => {
|
|
|
|
|
op.forEach(element => {
|
|
|
|
|
this.opComm = element;
|
|
|
|
|
this.cartePar.uid = firebase.database().ref().child('CarteParrainage').push().key;
|
|
|
|
|
|
|
|
|
|
this.cartePar.name = this.opComm.name;
|
|
|
|
|
this.cartePar.commercantCarte = this.opComm.commercantOpCom;
|
|
|
|
|
this.cartePar.operationCommercialID = this.opComm.uid;
|
|
|
|
@ -324,7 +325,7 @@ export class EnvoyerCarteComponent implements OnInit, OnDestroy {
|
|
|
|
|
|
|
|
|
|
envoyerCartePar(){
|
|
|
|
|
this.creerCartePar();
|
|
|
|
|
this.goToOpComm();
|
|
|
|
|
// this.goToOpComm();
|
|
|
|
|
}
|
|
|
|
|
creerCartePar() {
|
|
|
|
|
// this.opComService.creerCartePar(this.cartePar); inutile
|
|
|
|
|