Voila, j'ai un bout de code en javascript, je ne comprend pas pourquoi mes classes imbriqué ne fonctionnent pas, j'aimerais que quelqu'un m'explique.
function Fournisseur() {//Classe parent
this.nom = "";
this.adresse = Adresse;
this.options = Options;
this.taxes = Taxes;
this.statistiques = Statistiques;
/*this.memo = Memo;
this.imExPortation = ImExPortation;
this.info = Info; */
this.activite = false;
this.destinataireChargesSociales = false;
//this.print =
debug();
}
function Adresse() { //classe enfant
debug();
this.contact = "";
this.rue1 = "";
this.rue2 = "";
this.ville = "";
this.province = "";
this.codePostal = "";
this.pays = "";
this.telephone1 = "";
this.telephone2 = "";
this.telecopieur = "";
this.noInsTaxe = "";
this.courriel = "";
this.siteWeb = "";
this.dateDepuis = "";
}
function Options() {//classe enfant
this.compteDeCharges = "";
this.langueAffaire = "Français";
this.remise = "";
this.remiseJours = "";
this.montantNetJours = "";
this.calculerRemisesAvantTaxe = false;
this.inclureQuandImpressionT5018 = false;
this.methodeDeBonDeCommande = "Imprimer";
this.impressionNomContactSurCheque = false;
this.confirmationFacturesEtDevisParCourriel = false;
this.MSOutLookSync = false;
}
function Taxes(){//classe enfant
this.noms = new Array();
this.noms[0] = "TPS";
this.noms[1] = "TVQ";
this.activites = new Array();
this.activites[0] = false;
this.activites[1] = false;
this.taxes = new array();
this.taxes["noms"] = this.noms;
this.taxes["activites"] = this.isActiveTaxe;
this.add = addTaxe;
this.get = getTaxe;
this.codeTaxe = false;
this.addCode = addCodeTaxe;
}
function Statistiques(){//classe enfant
var aujourdhui = new Date();
this.anneeTaxe = new array();
var anneePaiement = new array();
this.paiements = new array();
}