<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>14 Dec 2018 16:46:26 Z</lastBuildDate><pubDate>12 Dec 2018 12:12:59 Z</pubDate><description>Bonjour à tous,&#13;
Je voudrais savoir comment faire pour passer les paramètres lorsque l'on a des : [ ]&#13;
Voici mon code : &#13;
[code:wl]&#13;
vJsonIn.modeDepot="SAISIE_API"&#13;
vJsonIn.numeroFactureSaisi = Null&#13;
&#13;
vJsonIn.destinataire.codeDestinataire = "22460001500511"&#13;
vJsonIn.destinataire.codeServiceExecutant = "DIRINFRA"&#13;
&#13;
vJsonIn.fournisseur.idFournisseur = 160&#13;
vJsonIn.fournisseur.idServiceFournisseur = 436&#13;
vJsonIn.fournisseur.codeCoordonneesBancairesFournisseur = 132&#13;
&#13;
vJsonIn.cadreDeFacturation.codeCadreFacturation = "A1_FACTURE_FOURNISSEUR"&#13;
vJsonIn.cadreDeFacturation.codeStructureValideur = Null&#13;
&#13;
vJsonIn.references.deviseFacture = "EUR"&#13;
vJsonIn.references.typeFacture = "FACTURE"&#13;
vJsonIn.references.typeTva = "TVA_SUR_DEBIT"&#13;
vJsonIn.references.motifExonerationTva = Null&#13;
vJsonIn.references.numeroMarche = "VABFM001"&#13;
vJsonIn.references.numeroBonCommande = Null&#13;
vJsonIn.references.numeroFactureOrigine = Null&#13;
vJsonIn.references.modePaiement = "ESPECE"&#13;
&#13;
//************************************************C'est ici que cela ne fonctionne pas********************************\\&#13;
vJsonIn.lignePoste.lignePosteNumero = 1&#13;
vJsonIn.lignePoste.lignePosteReference = "R1"&#13;
vJsonIn.lignePoste.lignePosteDenomination = "D1"&#13;
vJsonIn.lignePoste.lignePosteQuantite = 10&#13;
vJsonIn.lignePoste.lignePosteUnite = "lot"&#13;
vJsonIn.lignePoste.lignePosteMontantUnitaireHT = 50.000000&#13;
vJsonIn.lignePoste.lignePosteMontantRemiseHT = Null&#13;
vJsonIn.lignePoste.lignePosteTauxTva = "TVA5"&#13;
vJsonIn.lignePoste.lignePosteTauxTvaManuel = Null&#13;
//*********************************************************************************************************************\\&#13;
&#13;
vJsonIn.montantTotal.montantHtTotal = 1326.000000&#13;
vJsonIn.montantTotal.montantTVA = 130.272000&#13;
vJsonIn.montantTotal.montantTtcTotal = 1406.272000&#13;
vJsonIn.montantTotal.montantRemiseGlobaleTTC = 50.000000&#13;
vJsonIn.montantTotal.motifRemiseGlobaleTTC = "Geste commercial"&#13;
vJsonIn.montantTotal.montantAPayer = 1400.000000&#13;
[/code]&#13;
Voici le jSon à compléter : &#13;
[code:xml]&#13;
{&#13;
      "modeDepot" : "SAISIE_API",&#13;
      "numeroFactureSaisi" : null,&#13;
&#13;
      "destinataire" : { &#13;
            "codeDestinataire" : "22460001500511",&#13;
            "codeServiceExecutant" : "DIRINFRA"&#13;
      },&#13;
      "fournisseur" : { &#13;
            "idFournisseur" : 160,&#13;
            "idServiceFournisseur" : 436,&#13;
            "codeCoordonneesBancairesFournisseur" : 132&#13;
      },&#13;
      "cadreDeFacturation" : { &#13;
            "codeCadreFacturation" : "A1_FACTURE_FOURNISSEUR",&#13;
            "codeStructureValideur" : null&#13;
      },&#13;
      "references" : { &#13;
            "deviseFacture" : "EUR",&#13;
            "typeFacture" : "FACTURE",&#13;
            "typeTva" : "TVA_SUR_DEBIT",&#13;
            "motifExonerationTva" : null,&#13;
            "numeroMarche" : "VABFM001",&#13;
            "numeroBonCommande" : null,&#13;
            "numeroFactureOrigine" : null,&#13;
            "modePaiement" : "ESPECE"&#13;
      },&#13;
****************************************************C'est ici les crochets****************************************&#13;
      "lignePoste" : [ &#13;
                               { &#13;
                                    "lignePosteNumero" : 1,&#13;
                                     "lignePosteReference" : "R1",&#13;
                                     "lignePosteDenomination" : "D1",&#13;
                                     "lignePosteQuantite" : 10,&#13;
                                     "lignePosteUnite" : "lot",&#13;
                                     "lignePosteMontantUnitaireHT" : 50.000000,&#13;
                                     "lignePosteMontantRemiseHT" : null,&#13;
                                     "lignePosteTauxTva" : "TVA5",&#13;
                                     "lignePosteTauxTvaManuel" : null&#13;
                               }&#13;
                               ,{&#13;
                                     "lignePosteNumero" : 2,&#13;
                                     "lignePosteReference" : "R2",&#13;
                                    "lignePosteDenomination" : "D2",&#13;
                                     "lignePosteQuantite" : 12,&#13;
                                     "lignePosteUnite" : "Kg",&#13;
                                     "lignePosteMontantUnitaireHT" : 36.000000,&#13;
                                     "lignePosteMontantRemiseHT" : null,&#13;
                                     "lignePosteTauxTva" : null,&#13;
                                     "lignePosteTauxTvaManuel" : 2.1&#13;
                               }&#13;
                               ,{&#13;
                                     "lignePosteNumero" : 3,&#13;
                                     "lignePosteReference" : "R3",&#13;
                                     "lignePosteDenomination" : "D3",&#13;
                                     "lignePosteQuantite" : 16,&#13;
                                     "lignePosteUnite" : "lot",&#13;
                                     "lignePosteMontantUnitaireHT" : 24.000000,&#13;
                                     "lignePosteMontantRemiseHT" : null,&#13;
                                     "lignePosteTauxTva" : null,&#13;
                                     "lignePosteTauxTvaManuel" : 5&#13;
                               }&#13;
                               ,{&#13;
                                     "lignePosteNumero" : 4,&#13;
                                     "lignePosteReference" : "XX",&#13;
                                     "lignePosteDenomination" : "XX",&#13;
                                     "lignePosteQuantite" : 1,&#13;
                                     "lignePosteUnite" : "lot",&#13;
                                     "lignePosteMontantUnitaireHT" : 10.000000,&#13;
                                     "lignePosteMontantRemiseHT" : null,&#13;
                                     "lignePosteTauxTva" : "TVA5",&#13;
                                     "lignePosteTauxTvaManuel" : null&#13;
                               }&#13;
      ],&#13;
      "ligneTva" : [ &#13;
                               { &#13;
                                    "ligneTvaTauxManuel" : null,&#13;
                                     "ligneTvaTaux" : "TVA5",&#13;
                                     "ligneTvaMontantBaseHtParTaux" : 510.000000,&#13;
                                     "ligneTvaMontantTvaParTaux" : 102.000000&#13;
                               }&#13;
                               ,{&#13;
                                     "ligneTvaTauxManuel" : 2.1,&#13;
                                     "ligneTvaTaux" : null,&#13;
                                     "ligneTvaMontantBaseHtParTaux" : 432.000000,&#13;
                                     "ligneTvaMontantTvaParTaux" : 9.072000&#13;
                               }&#13;
                               ,{&#13;
                                     "ligneTvaTauxManuel" : 5,&#13;
                                     "ligneTvaTaux" : null,&#13;
                                     "ligneTvaMontantBaseHtParTaux" : 384.000000,&#13;
                                     "ligneTvaMontantTvaParTaux" : 19.200000&#13;
                               }&#13;
      ],&#13;
      "montantTotal" : { &#13;
            "montantHtTotal" : 1326.000000,&#13;
            "montantTVA" : 130.272000,&#13;
            "montantTtcTotal" : 1406.272000,&#13;
            "montantRemiseGlobaleTTC" : 50.000000,&#13;
            "motifRemiseGlobaleTTC" : "Geste commercial",&#13;
            "montantAPayer" : 1400.000000&#13;
      },&#13;
      "commentaire" : "Création_VABF_SoumettreFacture"&#13;
}&#13;
[/code]&#13;
&#13;
Merci d'avance de votre aide.&#13;
&#13;
--&#13;
Stéphane.</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet/read.awp</link><title>Json et crochet</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Stéphane D.</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet-222689/read.awp</comments><pubDate>14 Dec 2018 16:46:26 Z</pubDate><description>Ok super et encore merci de ton temps.&#13;
@+++ et bon Week-End&#13;
&#13;
--&#13;
Stéphane.</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet-222689/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet-222689/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet/read.awp">Json et crochet</source><title>Re: Json et crochet</title></item><item><author>ROMULUS001</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet-222612/read.awp</comments><pubDate>12 Dec 2018 14:48:56 Z</pubDate><description>Le soucis est que je ne comprends pas vraiment comment ça fonctionne, la partie "documentation" n'est pas très claire (même conc…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet-222612/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet-222612/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet/read.awp">Json et crochet</source><title>Re: Json et crochet</title></item><item><author>Stéphane D.</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet-222608/read.awp</comments><pubDate>12 Dec 2018 14:37:39 Z</pubDate><description>Et une autre dernière question, comment je fais lorsque j'ai deux jSon à compléter ?&#13;
 Toujours sur le même exemple, mais voici …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet-222608/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet-222608/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet/read.awp">Json et crochet</source><title>Re: Json et crochet</title></item><item><author>Stéphane D.</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet-222605/read.awp</comments><pubDate>12 Dec 2018 14:08:47 Z</pubDate><description>Parfait merci Romu, sa fonctionne parfaitement.&#13;
Bonne fêtes de fin d'années.&#13;
&#13;
--&#13;
Stéphane.</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet-222605/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet-222605/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet/read.awp">Json et crochet</source><title>Re: Json et crochet</title></item><item><author>ROMULUS001</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet-222602/read.awp</comments><pubDate>12 Dec 2018 12:18:12 Z</pubDate><description>vJsonIn.lignePoste[1].lignePosteNumero = 1&#13;
vJsonIn.lignePoste[2].lignePosteNumero = 2&#13;
.....</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet-222602/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet-222602/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/222601-json-crochet/read.awp">Json et crochet</source><title>Re: Json et crochet</title></item></channel></rss>
