{
    "idDS":  "Doc_Num",
    "TableRE":  "docCmd\u0026param=FACTAC",
    "Webformgroup":  null,
    "DS":  "FACTAC",
    "Titre":  "Facture acompte",
    "id":  "FACTAC",
    "U_timestamp":  [
                        0,
                        0,
                        0,
                        0,
                        0,
                        81,
                        228,
                        219
                    ],
    "pieceJoint":  true,
    "TitreOnglet":  null,
    "Drawer":  false,
    "Onglet":  false,
    "SubTitle":  "Facture acompte",
    "Detail":  null,
    "TableRE_Detail":  null,
    "Config":  {
                   "type":  "div",
                   "class":  "",
                   "buttons":  [
                                   {
                                       "name":  "Email",
                                       "style":  "flex items-center gap-1 h-8 px-3 text-xs font-medium rounded-md border border-gray-500 text-gray-600 hover:bg-green-500 hover:border-green-500 hover:text-white transition",
                                       "visible":  true,
                                       "fonction":  "calc",
                                       "icon":  "fas fa-envelope",
                                       "dynamicBtn":  true,
                                       "onClick":  "DV_Email"
                                   }
                               ],
                   "children":  [
                                    {
                                        "type":  "tab",
                                        "width":  "12",
                                        "children":  [
                                                         {
                                                             "label":  "Général",
                                                             "children":  [
                                                                              {
                                                                                  "type":  "div",
                                                                                  "width":  "12",
                                                                                  "children":  [
                                                                                                   {
                                                                                                       "label":  "Attention ! Vérifier les commentaires du client",
                                                                                                       "type":  "span",
                                                                                                       "width":  "12",
                                                                                                       "class_label":  "hidden bg-red-200 text-red-800 p-2 rounded-md",
                                                                                                       "champs":  "msg_commentaireClients",
                                                                                                       "table":  "msg"
                                                                                                   },
                                                                                                   {
                                                                                                       "table":  "Document",
                                                                                                       "champs":  "Doc_Num",
                                                                                                       "label":  "Num",
                                                                                                       "type":  "Input",
                                                                                                       "width":  "2",
                                                                                                       "readonly":  "true"
                                                                                                   },
                                                                                                   {
                                                                                                       "table":  "Document",
                                                                                                       "champs":  "Doc_Date",
                                                                                                       "label":  "Date",
                                                                                                       "type":  "date",
                                                                                                       "width":  "2"
                                                                                                   },
                                                                                                   {
                                                                                                       "table":  "Document",
                                                                                                       "champs":  "Doc_DateP",
                                                                                                       "label":  "Date validité",
                                                                                                       "type":  "date",
                                                                                                       "width":  "2"
                                                                                                   },
                                                                                                   {
                                                                                                       "table":  "Document",
                                                                                                       "champs":  "Tiers_code",
                                                                                                       "label":  "Fournisseur",
                                                                                                       "type":  "search",
                                                                                                       "width":  "2",
                                                                                                       "tableRE_Code":  "FOURNISSEUR",
                                                                                                       "TableRE_ChampRetour":  "Tiers_code",
                                                                                                       "TableRE_ChampRetourAffichage":  "Tiers_RS"
                                                                                                   },
                                                                                                   {
                                                                                                       "table":  "Document",
                                                                                                       "champs":  "Site_Code",
                                                                                                       "label":  "Site",
                                                                                                       "type":  "Input",
                                                                                                       "width":  "2",
                                                                                                       "tableRE_Code":  "SITES",
                                                                                                       "TableRE_ChampRetour":  "Site_Code",
                                                                                                       "TableRE_ChampRetourAffichage":  "Site_Des",
                                                                                                       "onValidate":  "Doc_openModalModifierSiteLignes"
                                                                                                   },
                                                                                                   {
                                                                                                       "table":  "Document",
                                                                                                       "champs":  "Doc_Ref",
                                                                                                       "label":  "Réf",
                                                                                                       "type":  "search",
                                                                                                       "width":  "2",
                                                                                                       "tableRE_Code":  "docCMD\u0026param=CMD",
                                                                                                       "TableRE_ChampRetour":  "Doc_Num",
                                                                                                       "TableRE_ChampRetourAffichage":  "Doc_Num",
                                                                                                       "TableRE_Filter":  "\"Tiers_code= \u0027\"+ ds[\u0027Document\u0027][0][\u0027Tiers_code\u0027]  +\"\u0027\""
                                                                                                   },
                                                                                                   {
                                                                                                       "table":  "Document",
                                                                                                       "champs":  "Doc_RS",
                                                                                                       "label":  "Nom client",
                                                                                                       "type":  "Input",
                                                                                                       "width":  "3"
                                                                                                   },
                                                                                                   {
                                                                                                       "table":  "Document",
                                                                                                       "champs":  "Doc_Tiers_Adresse1",
                                                                                                       "label":  "Adresse 1",
                                                                                                       "type":  "Input",
                                                                                                       "width":  "4"
                                                                                                   },
                                                                                                   {
                                                                                                       "table":  "Document",
                                                                                                       "champs":  "Doc_Tiers_Adresse2",
                                                                                                       "label":  "Adresse 2",
                                                                                                       "type":  "Input",
                                                                                                       "width":  "4"
                                                                                                   },
                                                                                                   {
                                                                                                       "table":  "Document",
                                                                                                       "champs":  "Doc_Tiers_CP",
                                                                                                       "label":  "CP",
                                                                                                       "type":  "search",
                                                                                                       "width":  "1",
                                                                                                       "tableRE_Code":  "API_CodePostal",
                                                                                                       "TableRE_ChampRetour":  "id",
                                                                                                       "TableRE_ChampRetourAffichage":  "XCodePostal_Code"
                                                                                                   },
                                                                                                   {
                                                                                                       "table":  "Document",
                                                                                                       "champs":  "Doc_Tiers_Ville",
                                                                                                       "label":  "Ville",
                                                                                                       "type":  "search",
                                                                                                       "width":  "3",
                                                                                                       "tableRE_Code":  "API_CodePostal",
                                                                                                       "TableRE_ChampRetour":  "id",
                                                                                                       "TableRE_ChampRetourAffichage":  "XCodePostal_Libelle"
                                                                                                   },
                                                                                                   {
                                                                                                       "table":  "Document",
                                                                                                       "champs":  "Doc_Tiers_TiersC_Id",
                                                                                                       "label":  "N° contact",
                                                                                                       "type":  "search",
                                                                                                       "width":  "3",
                                                                                                       "tableRE_Code":  "TiersC",
                                                                                                       "TableRE_ChampRetour":  "TiersC_Id",
                                                                                                       "TableRE_ChampRetourAffichage":  "TiersC_Id",
                                                                                                       "TableRE_Filter":  "\"Tiers_code = \u0027\" + ds[\u0027Document\u0027][0][\u0027Tiers_code\u0027] + \"\u0027\""
                                                                                                   },
                                                                                                   {
                                                                                                       "table":  "Document",
                                                                                                       "champs":  "Doc_Valide",
                                                                                                       "label":  "Statut",
                                                                                                       "type":  "search",
                                                                                                       "width":  "1",
                                                                                                       "tableRE_Code":  "DiverSys\u0026param=cmd",
                                                                                                       "TableRE_ChampRetour":  "DiverSys_Index",
                                                                                                       "TableRE_ChampRetourAffichage":  "DiverSys_Libelle"
                                                                                                   },
                                                                                                   {
                                                                                                       "type":  "table",
                                                                                                       "width":  "12",
                                                                                                       "table":  "DocumentD",
                                                                                                       "ds":  "DocumentD",
                                                                                                       "idDS":  "DocD_Id",
                                                                                                       "contextMenu":  [
                                                                                                                           {
                                                                                                                               "label":  "Kit",
                                                                                                                               "shortcut":  "F2",
                                                                                                                               "action":  "OPEN_MODAL",
                                                                                                                               "configId":  "table-kit",
                                                                                                                               "filter":  "item.DocD_Lien == ds[\u0027DocumentD\u0027][activeRows[\u0027table1\u0027]][\u0027DocD_Lien\u0027] \u0026\u0026 item.DocD_ArtType == 2",
                                                                                                                               "defaultValues":  {
                                                                                                                                                     "DocD_ArtType":  2,
                                                                                                                                                     "DocD_Lien":  "ds[\u0027DocumentD\u0027][activeRows[\u0027table1\u0027]][\u0027DocD_Lien\u0027]"
                                                                                                                                                 }
                                                                                                                           }
                                                                                                                       ],
                                                                                                       "children":  [
                                                                                                                        {
                                                                                                                            "table":  "DocumentD",
                                                                                                                            "champs":  "Art_Code",
                                                                                                                            "label":  "Code",
                                                                                                                            "type":  "search",
                                                                                                                            "width":  100,
                                                                                                                            "tableRE_Code":  "Article",
                                                                                                                            "TableRE_ChampRetour":  "Art_Code",
                                                                                                                            "TableRE_ChampRetourAffichage":  "Art_Code"
                                                                                                                        },
                                                                                                                        {
                                                                                                                            "table":  "DocumentD",
                                                                                                                            "champs":  "Art_Des",
                                                                                                                            "label":  "Désignation",
                                                                                                                            "type":  "Input",
                                                                                                                            "width":  "200",
                                                                                                                            "class":  "text-red-500"
                                                                                                                        },
                                                                                                                        {
                                                                                                                            "table":  "DocumentD",
                                                                                                                            "champs":  "DocD_Q",
                                                                                                                            "label":  "Qté",
                                                                                                                            "type":  "Input",
                                                                                                                            "width":  "40"
                                                                                                                        },
                                                                                                                        {
                                                                                                                            "table":  "DocumentD",
                                                                                                                            "champs":  "DocD_PUHTB",
                                                                                                                            "label":  "PV brut ",
                                                                                                                            "type":  "Input",
                                                                                                                            "width":  "100"
                                                                                                                        }
                                                                                                                    ],
                                                                                                       "id":  "table1"
                                                                                                   },
                                                                                                   {
                                                                                                       "type":  "div",
                                                                                                       "width":  "12",
                                                                                                       "class":  "flex flex-nowrap overflow-auto",
                                                                                                       "table":  "Document",
                                                                                                       "children":  [
                                                                                                                        {
                                                                                                                            "table":  "Document",
                                                                                                                            "champs":  "Doc_THT",
                                                                                                                            "label":  "THT",
                                                                                                                            "type":  "Input",
                                                                                                                            "width":  2,
                                                                                                                            "children":  [

                                                                                                                                         ],
                                                                                                                            "readonly":  "true"
                                                                                                                        },
                                                                                                                        {
                                                                                                                            "table":  "Document",
                                                                                                                            "champs":  "Doc_TTVA",
                                                                                                                            "label":  "TVA",
                                                                                                                            "type":  "Input",
                                                                                                                            "width":  2,
                                                                                                                            "children":  [

                                                                                                                                         ],
                                                                                                                            "readonly":  "true"
                                                                                                                        },
                                                                                                                        {
                                                                                                                            "table":  "Document",
                                                                                                                            "champs":  "Doc_TTTC",
                                                                                                                            "label":  "TOTAL NET TTC",
                                                                                                                            "type":  "Input",
                                                                                                                            "width":  2,
                                                                                                                            "readonly":  "true"
                                                                                                                        }
                                                                                                                    ]
                                                                                                   }
                                                                                               ]
                                                                              }
                                                                          ]
                                                         }
                                                     ]
                                    }
                                ]
               },
    "Table_Name":  "Document"
}