{
    "idDS":  "DocD_Id",
    "TableRE":  "",
    "Webformgroup":  "",
    "DS":  "DocumentD",
    "Titre":  "DocumentD",
    "id":  "documentd_details",
    "U_timestamp":  [
                        0,
                        0,
                        0,
                        0,
                        0,
                        82,
                        207,
                        57
                    ],
    "pieceJoint":  true,
    "TitreOnglet":  "",
    "Drawer":  false,
    "Onglet":  false,
    "SubTitle":  "DocumentD",
    "Detail":  "",
    "TableRE_Detail":  "",
    "Config":  {
                   "type":  "div",
                   "width":  "12",
                   "buttons":  [

                               ],
                   "children":  [
                                    {
                                        "type":  "span",
                                        "label":  "Ressource(s)"
                                    },
                                    {
                                        "type":  "table",
                                        "table":  "DocumentD",
                                        "width":  "12",
                                        "children":  [
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xRessource_Num",
                                                             "label":  "Code",
                                                             "type":  "search",
                                                             "width":  "100",
                                                             "tableRE_Code":  "API_Ressource",
                                                             "TableRE_ChampRetour":  "xRessource_Num",
                                                             "TableRE_ChampRetourAffichage":  "xRessource_Num"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "zRessource_Libelle",
                                                             "label":  "Désignation",
                                                             "type":  "Input",
                                                             "width":  "250"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_Unite",
                                                             "label":  "Unité",
                                                             "type":  "Input",
                                                             "width":  "75"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_Q",
                                                             "label":  "Qté",
                                                             "type":  "decimal",
                                                             "width":  "100"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "zDocD_PUHTB",
                                                             "label":  "Prix",
                                                             "type":  "decimal",
                                                             "width":  "100"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_xTempsAffecte",
                                                             "label":  "Temps affecté (h)",
                                                             "type":  "decimal",
                                                             "width":  "100"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "zDocD_xMargeTotale",
                                                             "label":  "Marge %",
                                                             "type":  "Input",
                                                             "width":  "100",
                                                             "readonly":  "true"
                                                         }
                                                     ],
                                        "filter":  "item.DocD_Lien == ds[\u0027DocumentD\u0027][activeRows[\u0027table1\u0027]][\u0027DocD_Lien\u0027] \u0026\u0026 item.DocD_ArtType == 2 \u0026\u0026 item.Art_Des == \u0027Ressource\u0027",
                                        "defaultValues":  "{ \u0027DocD_ArtType\u0027 : 2, \u0027DocD_Lien\u0027: ds[\u0027DocumentD\u0027][activeRows[\u0027table1\u0027]][\u0027DocD_Lien\u0027],\u0027Doc_Num\u0027:ds[\u0027DocumentD\u0027][activeRows[\u0027table1\u0027]][\u0027Doc_Num\u0027],\u0027Art_Code\u0027 : \u0027A0259\u0027, \u0027Art_Des\u0027 : \u0027Ressource\u0027 }",
                                        "id":  "table_ressources"
                                    },
                                    {
                                        "type":  "span",
                                        "label":  "Pièce(s) de rechange"
                                    },
                                    {
                                        "type":  "table",
                                        "table":  "DocumentD",
                                        "width":  "12",
                                        "id":  "table10",
                                        "filter":  "item.DocD_Lien == ds[\u0027DocumentD\u0027][activeRows[\u0027table1\u0027]][\u0027DocD_Lien\u0027] \u0026\u0026 item.DocD_ArtType == 2 \u0026\u0026 item.Art_Des != \u0027Ressource\u0027",
                                        "defaultValues":  "{ \u0027DocD_ArtType\u0027 : 2, \u0027DocD_Lien\u0027: ds[\u0027DocumentD\u0027][activeRows[\u0027table1\u0027]][\u0027DocD_Lien\u0027],\u0027Doc_Num\u0027:ds[\u0027DocumentD\u0027][activeRows[\u0027table1\u0027]][\u0027Doc_Num\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_xDivers",
                                                             "label":  "Divers",
                                                             "type":  "checkbox",
                                                             "width":  60
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_Q",
                                                             "label":  "Qté",
                                                             "type":  "Input",
                                                             "width":  "40"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_Unite",
                                                             "label":  "Unité",
                                                             "type":  "Input",
                                                             "width":  "60",
                                                             "tableRE_Code":  "Unit"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_PUHTB",
                                                             "label":  "PV brut ",
                                                             "type":  "Input",
                                                             "width":  90,
                                                             "class_wrapper":  "bg-stone-200"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_TxRem1",
                                                             "label":  "R 1",
                                                             "type":  "Input",
                                                             "width":  "40",
                                                             "class_wrapper":  "bg-[#B4C6E7]"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_TxRem",
                                                             "label":  "R 2",
                                                             "type":  "Input",
                                                             "width":  "40",
                                                             "class_wrapper":  "bg-[#B4C6E7]"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_PUHTN",
                                                             "label":  "PV net",
                                                             "type":  "Input",
                                                             "width":  90,
                                                             "class_wrapper":  "bg-lime-400"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_xPUHTNArticle",
                                                             "label":  "PU Article",
                                                             "type":  "Input",
                                                             "width":  90,
                                                             "readonly":  "false"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_xFAUnitVente",
                                                             "label":  "FA Net Unit",
                                                             "type":  "Input",
                                                             "width":  90,
                                                             "readonly":  "true"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_xFDUnitVente",
                                                             "label":  "FD Net Unit",
                                                             "type":  "Input",
                                                             "width":  90,
                                                             "readonly":  "true"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_THT",
                                                             "label":  "Montant HT Ligne",
                                                             "type":  "Input",
                                                             "width":  90,
                                                             "class_wrapper":  "bg-[#B4C6E7]",
                                                             "readonly":  "true"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_TxTVA",
                                                             "label":  "Taux TVA",
                                                             "type":  "search",
                                                             "width":  40,
                                                             "tableRE_Code":  "TVA",
                                                             "TableRE_ChampRetour":  "TVA_Code",
                                                             "TableRE_ChampRetourAffichage":  "TVA_Taux"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "QStock",
                                                             "label":  "Qté Dispo",
                                                             "type":  "Input",
                                                             "width":  100,
                                                             "readonly":  "true"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "Site_Code",
                                                             "label":  "Site",
                                                             "type":  "search",
                                                             "width":  80,
                                                             "tableRE_Code":  "SITES",
                                                             "TableRE_ChampRetour":  "Site_Code",
                                                             "TableRE_ChampRetourAffichage":  "Site_Code"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "XProcedureAchat",
                                                             "label":  "Proc. Achat",
                                                             "type":  "select",
                                                             "width":  "100",
                                                             "param":  "PROCACH"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xaffichePrixNet",
                                                             "label":  "Affiche Prix Net",
                                                             "type":  "checkbox",
                                                             "width":  60
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xBlocage_Conditions",
                                                             "label":  "Blocage Condition",
                                                             "type":  "checkbox",
                                                             "width":  100
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "XCommentaire",
                                                             "label":  "Commentaire",
                                                             "type":  "Input",
                                                             "width":  160
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xCommentaire_BL",
                                                             "label":  "Commentaire BL",
                                                             "type":  "checkbox",
                                                             "width":  60
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xCommentaire_CMD",
                                                             "label":  "Commentaire Commande",
                                                             "type":  "checkbox",
                                                             "width":  60
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xCommentaire_FACT",
                                                             "label":  "Commentaire Facture",
                                                             "type":  "checkbox",
                                                             "width":  60
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "XDateLiv",
                                                             "label":  "Délai",
                                                             "type":  "date",
                                                             "width":  100
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xDocD_FraisPort",
                                                             "label":  "Frais Port",
                                                             "type":  "Input",
                                                             "width":  100,
                                                             "class_wrapper":  "bg-[#B4C6E7]",
                                                             "readonly":  "true"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xgratuit",
                                                             "label":  "Gratuit",
                                                             "type":  "checkbox",
                                                             "width":  60
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xMotif_gratuite",
                                                             "label":  "Motif de Gratuité",
                                                             "type":  "Input",
                                                             "width":  160
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "XLigneComplete",
                                                             "label":  "Ligne complète",
                                                             "type":  "checkbox",
                                                             "width":  90
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "XProcedureAchat",
                                                             "label":  "Procédure Achat",
                                                             "type":  "checkbox",
                                                             "width":  90,
                                                             "tableRE_Code":  "5555",
                                                             "children":  [

                                                                          ]
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "XStockReserve",
                                                             "label":  "Quantité reservée",
                                                             "type":  "Input",
                                                             "width":  100
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_xFraisApproche",
                                                             "label":  "frais d\u0027approche",
                                                             "type":  "decimal",
                                                             "width":  "100"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "Date_Create",
                                                             "label":  "Date de création",
                                                             "type":  "date",
                                                             "width":  200,
                                                             "readonly":  true
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "Date_Modif",
                                                             "label":  "Date de modification",
                                                             "type":  "date",
                                                             "width":  200,
                                                             "readonly":  true
                                                         }
                                                     ]
                                    },
                                    {
                                        "type":  "table",
                                        "table":  "DocumentD",
                                        "width":  "12",
                                        "ds":  "DocumentD",
                                        "idDS":  "DocD_Id",
                                        "filter":  "item.DocD_PosId == ds[\u0027DocumentD\u0027][activeRows[\u0027table10\u0027]][\u0027DocD_PosId\u0027]",
                                        "children":  [
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xDocD_Fournisseur",
                                                             "label":  "Fournisseur",
                                                             "type":  "search",
                                                             "width":  100,
                                                             "tableRE_Code":  "FOURNISSEUR",
                                                             "TableRE_ChampRetour":  "Tiers_code",
                                                             "TableRE_ChampRetourAffichage":  "Tiers_code",
                                                             "class_input":  "bg-yellow-300"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xDocD_UniteAchat",
                                                             "label":  "Unité Achat",
                                                             "type":  "search",
                                                             "width":  60,
                                                             "tableRE_Code":  "Unit",
                                                             "class_input":  "bg-yellow-300",
                                                             "TableRE_ChampRetour":  "Unit_Code",
                                                             "TableRE_ChampRetourAffichage":  "Unit_Code"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xDocD_RefFour",
                                                             "label":  "Ref",
                                                             "type":  "Input",
                                                             "width":  100,
                                                             "class_wrapper":  "bg-yellow-300"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "XInfoAchat",
                                                             "label":  "Info Achat",
                                                             "type":  "Input",
                                                             "width":  100,
                                                             "class_wrapper":  "bg-yellow-300"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_xMargeProduit",
                                                             "label":  "M Pdt %",
                                                             "type":  "Input",
                                                             "width":  "70",
                                                             "readonly":  "true"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_xMargeFA",
                                                             "label":  "M FA %",
                                                             "type":  "Input",
                                                             "width":  "70",
                                                             "readonly":  "true"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_xMargeFD",
                                                             "label":  "M FD %",
                                                             "type":  "Input",
                                                             "width":  "70",
                                                             "readonly":  "true"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_xMargeTotale",
                                                             "label":  "M Total %",
                                                             "type":  "Input",
                                                             "width":  "70",
                                                             "readonly":  "true"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xDocD_PUBA",
                                                             "label":  "Prix achat",
                                                             "type":  "Input",
                                                             "width":  "80",
                                                             "class_wrapper":  "bg-yellow-300"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xDocD_RemA",
                                                             "label":  "Rem1 %",
                                                             "type":  "Input",
                                                             "width":  "60",
                                                             "class_wrapper":  "bg-yellow-300"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xDocD_TxRemA1",
                                                             "label":  "Rem2 %",
                                                             "type":  "Input",
                                                             "width":  "60",
                                                             "class_wrapper":  "bg-yellow-300"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xDocD_PUNA",
                                                             "label":  "PUNA",
                                                             "type":  "Input",
                                                             "width":  "80",
                                                             "readonly":  "true"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_xFATotalAchat",
                                                             "label":  "FA Total",
                                                             "type":  "Input",
                                                             "width":  "80",
                                                             "class_wrapper":  "bg-yellow-300"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_xFAUnitAchat",
                                                             "label":  "FA Unit",
                                                             "type":  "Input",
                                                             "width":  "80",
                                                             "readonly":  "true"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_xPrixAchatTotalUnitaire",
                                                             "label":  "P A Total",
                                                             "type":  "Input",
                                                             "width":  "80",
                                                             "readonly":  "true"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_xFDTotalAchat",
                                                             "label":  "FD Total",
                                                             "type":  "Input",
                                                             "width":  "80",
                                                             "class_input":  "bg-yellow-300"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xDocD_Four_FraisDivers",
                                                             "label":  "Fournisseur Frais Divers",
                                                             "type":  "search",
                                                             "width":  100,
                                                             "tableRE_Code":  "FOURNISSEUR",
                                                             "TableRE_ChampRetour":  "Tiers_code",
                                                             "TableRE_ChampRetourAffichage":  "Tiers_code"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xDocD_CoeffFA",
                                                             "label":  "Coeff FA",
                                                             "type":  "Input",
                                                             "width":  60
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xDocD_CoeffFD",
                                                             "label":  "Coeff FD",
                                                             "type":  "Input",
                                                             "width":  60
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "xDocD_CoeffMarge",
                                                             "label":  "Coeff Marge",
                                                             "type":  "Input",
                                                             "width":  60
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_xCoutUI",
                                                             "label":  "Coût unitaire initial",
                                                             "type":  "decimal",
                                                             "width":  "3"
                                                         },
                                                         {
                                                             "table":  "DocumentD",
                                                             "champs":  "DocD_xMargeLI",
                                                             "label":  "Marge ligne initiale",
                                                             "type":  "decimal",
                                                             "width":  "3"
                                                         }
                                                     ]
                                    }
                                ]
               },
    "Table_Name":  "DocumentD"
}