{"id":3115,"date":"2017-08-21T14:39:45","date_gmt":"2017-08-21T14:39:45","guid":{"rendered":"https:\/\/answers.gurussolutions.com\/answers\/comment-automatiser-la-case-a-cocher-facturable-de-la-feuille-de-temps-en-fonction-du-projet-et-de-lelement-de-service\/"},"modified":"2026-07-28T18:25:30","modified_gmt":"2026-07-28T18:25:30","slug":"comment-automatiser-la-case-a-cocher-facturable-de-la-feuille-de-temps-en-fonction-du-projet-et-de-lelement-de-service","status":"publish","type":"qa_entry","link":"https:\/\/answers.gurussolutions.com\/fr\/answers\/comment-automatiser-la-case-a-cocher-facturable-de-la-feuille-de-temps-en-fonction-du-projet-et-de-lelement-de-service\/","title":{"rendered":"Comment automatiser la case \u00e0 cocher \u00ab Facturable \u00bb de la feuille de temps en fonction du projet et de l&rsquo;\u00e9l\u00e9ment de service ?"},"content":{"rendered":"","protected":false},"template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","ga_subtitle":"Configurez NetSuite pour qu\u2019il d\u00e9finisse automatiquement le statut \u00ab facturable \u00bb des saisies de temps en utilisant des champs personnalis\u00e9s et des scripts c\u00f4t\u00e9 client.","ga_short_answer":"Automatisez la case \u00e0 cocher \u00ab Facturable \u00bb sur les feuilles de temps NetSuite en cr\u00e9ant des champs d\u2019entit\u00e9 et d\u2019\u00e9l\u00e9ment personnalis\u00e9s, en les configurant pour les projets et les \u00e9l\u00e9ments de service, puis en ajoutant des champs de colonne de transaction pour extraire ces valeurs. Un script client dot\u00e9 d\u2019une fonction postSourcing mettra ensuite \u00e0 jour de mani\u00e8re dynamique le statut \u00ab Facturable \u00bb en fonction de ces champs extraits.","ga_scenario":"Les utilisateurs doivent s\u2019assurer que la case \u00e0 cocher \u00ab Facturable \u00bb sur les feuilles de temps est automatiquement coch\u00e9e ou d\u00e9coch\u00e9e en fonction du projet et de l\u2019\u00e9l\u00e9ment de service associ\u00e9s. Le fait de modifier manuellement cette case \u00e0 cocher pour chaque saisie de temps peut s\u2019av\u00e9rer inefficace et source d\u2019erreurs, ce qui n\u00e9cessite une solution automatis\u00e9e.","ga_solution":"1. Cr\u00e9ez un champ d\u2019entit\u00e9 personnalis\u00e9 intitul\u00e9 \u00ab Facturable \u00bb.\n    *   Appliquez-le aux projets.\n    *   Activez-le par d\u00e9faut.\n\n2. Cr\u00e9ez un champ d\u2019\u00e9l\u00e9ment personnalis\u00e9 intitul\u00e9 \u00ab Facturable \u00bb.\n    *   Appliquez-le aux \u00e9l\u00e9ments de service.\n    *   Activez-le par d\u00e9faut.\n\n3. Personnalisez le formulaire de saisie \u00ab Temps \u00bb.\n    *   D\u00e9sactivez la case \u00e0 cocher \u00ab Facturable \u00bb existante.\n\n4. Ajoutez un nouveau champ de colonne de transaction au formulaire.\n    *   S'applique \u00e0 \u00ab Temps \u00bb.\n    *   Affichage : Masqu\u00e9.\n    *   ID interne : `custcol_customer_billable`.\n    *   Source : champ \u00ab Facturable \u00bb du projet.\n\n5. Ajoutez un autre nouveau champ de colonne de transaction au formulaire.\n    *   S'applique \u00e0 \u00ab Temps \u00bb.\n    *   Affichage : masqu\u00e9.\n    *   ID interne : `custcol_item_billable`.\n    *   Source : champ \u00ab Facturable \u00bb de l\u2019\u00e9l\u00e9ment.\n\n6. Ajoutez le script suivant \u00e0 la fonction de script client `postSourcing` :\n```\njavascript\nfunction postSourcing(scriptContext)\n{\n\n  if (name  'customer' || name  'it\n```","ga_source_author":"","ga_source_author_email":"","ga_date_original":"2017-08-21T16:39:45+02:00","ga_date_verified":"2026-07-05","ga_source_subject":"SOL0019 CRM - Time Sheet Automatic Billable Behavior","ga_ans_id":"ANS-1376","ga_publish_decision":"publish_with_edits","ga_staleness_risk":"high","ga_review_priority":"verify_soon","ga_tier2_verdict":"partially_outdated","ga_tier2_concerns":"The `postSourcing` client script function signature `function postSourcing(type, name)` is specific to SuiteScript 1.0 and is outdated; the current SuiteScript 2.x standard uses `postSourcing(scriptContext)`.; The custom field IDs `_customer_billable` and `_item_billable` as stated are not the full internal IDs NetSuite would assign; NetSuite automatically prefixes custom field IDs (e.g., `custcol_customer_billable` for transaction column fields).","ga_final_category":"Project Management","footnotes":""},"ga_category":[107,21,107],"ga_audience":[10],"ga_difficulty":[92],"class_list":["post-3115","qa_entry","type-qa_entry","status-publish","hentry","ga_category-gestion-de-projet","ga_category-project-management","ga_audience-developer-suitescript","ga_difficulty-niveau-intermediaire"],"taxonomy_info":{"ga_category":[{"value":107,"label":"Gestion de projet"},{"value":21,"label":"Project Management"},{"value":107,"label":"Gestion de projet"}],"ga_audience":[{"value":10,"label":"Developer\/SuiteScript"}],"ga_difficulty":[{"value":92,"label":"Niveau interm\u00e9diaire"}]},"featured_image_src_large":[],"author_info":[],"comment_info":"","_links":{"self":[{"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/qa_entry\/3115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/qa_entry"}],"about":[{"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/types\/qa_entry"}],"version-history":[{"count":1,"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/qa_entry\/3115\/revisions"}],"predecessor-version":[{"id":5035,"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/qa_entry\/3115\/revisions\/5035"}],"wp:attachment":[{"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/media?parent=3115"}],"wp:term":[{"taxonomy":"ga_category","embeddable":true,"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/ga_category?post=3115"},{"taxonomy":"ga_audience","embeddable":true,"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/ga_audience?post=3115"},{"taxonomy":"ga_difficulty","embeddable":true,"href":"https:\/\/answers.gurussolutions.com\/fr\/wp-json\/wp\/v2\/ga_difficulty?post=3115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}