|
| 1 | +--- |
| 2 | +prev: |
| 3 | + text: 🐤 Introduction |
| 4 | + link: documentation.md |
| 5 | +next: false |
| 6 | +--- |
| 7 | + |
| 8 | +<span id="readme-top"></span> |
| 9 | + |
| 10 | +# Mise à jour des paramètres comptable d'un dossier de production |
| 11 | + |
| 12 | +Le dossier de production possède un ensemble de paramétrages comptables éditable par le CRM et l'onglet `Comptabilité`. |
| 13 | + |
| 14 | +```bash |
| 15 | +$ curl --location --request GET 'https://api.myunisoft.fr/api/v1/society/accountingParameters' \ |
| 16 | +--header 'X-Third-Party-Secret: nompartenaire-L8vlKfjJ5y7zwFj2J49xo53V' \ |
| 17 | +--header 'Authorization: Bearer {{API_TOKEN}}' |
| 18 | +``` |
| 19 | + |
| 20 | +Ce endpoint retournera un JSON semblabe à celui-ci |
| 21 | + |
| 22 | +```json |
| 23 | +{ |
| 24 | + // Section: Type de comptabilité |
| 25 | + "comptability_type_id": 1, |
| 26 | + "comptability_type": { |
| 27 | + "id": 1, |
| 28 | + "label": "Engagement", |
| 29 | + "code": "ENGA" |
| 30 | + }, |
| 31 | + |
| 32 | + // Section: Type de dossier |
| 33 | + "mission_type_id": 1, |
| 34 | + "mission_type": { |
| 35 | + "id": 1, |
| 36 | + "label": "Tenue", |
| 37 | + "code": "TENU" |
| 38 | + }, |
| 39 | + |
| 40 | + // Section: Comptes d'attentes |
| 41 | + "customer_waiting_account": "", |
| 42 | + "accounting_firm_waiting_account": "", |
| 43 | + |
| 44 | + // Identifiant du plan comptable étalon |
| 45 | + "accounting_plan_id": -100, |
| 46 | + "accounting_plan": { |
| 47 | + "id": -100, |
| 48 | + "label": "Etalon MYUNISOFT" |
| 49 | + }, |
| 50 | + |
| 51 | + // Section: Paramètrage des comptes |
| 52 | + // Nombre maximum de caractères des comptes de tiers |
| 53 | + "max_car_third_p_account": 10, |
| 54 | + // Nombre maximum de caractères des autres comptes |
| 55 | + "max_car_general_account": 6, |
| 56 | + "auto_complete_account": true, |
| 57 | + |
| 58 | + // Section: Lettrage |
| 59 | + "account_income_lettering": { |
| 60 | + "id": 220880, |
| 61 | + "label": "758000 - PRODUITS DIV.GESTION" |
| 62 | + }, |
| 63 | + "account_expense_lettering": { |
| 64 | + "id": 220805, |
| 65 | + "label": "658000 - CHARGES DIV.GEST.COU" |
| 66 | + }, |
| 67 | + "diary_lettering": { |
| 68 | + "id": 5330, |
| 69 | + "label": "60 - JOURNAL OD LETTRAGE" |
| 70 | + }, |
| 71 | + // Montant de l'écart maximum (en valeur absolue) |
| 72 | + "maximum_difference_amount": 0.9, |
| 73 | + |
| 74 | + // Section: OCR |
| 75 | + "enable_create_account_ocr": true, |
| 76 | + "account_purchases": { |
| 77 | + "id": 220739, |
| 78 | + "label": "607000" |
| 79 | + }, |
| 80 | + "account_sales": { |
| 81 | + "id": 220850, |
| 82 | + "label": "707000" |
| 83 | + }, |
| 84 | + "account_expense_report": { |
| 85 | + "id": 220773, |
| 86 | + "label": "625600" |
| 87 | + }, |
| 88 | + "diary_purchases_id": 5320, |
| 89 | + "diary_purchases": { |
| 90 | + "id": 5320, |
| 91 | + "label": "01 - JOURNAL D'ACHATS" |
| 92 | + }, |
| 93 | + "diary_sales_id": 5321, |
| 94 | + "diary_sales": { |
| 95 | + "id": 5321, |
| 96 | + "label": "02 - JOURNAL DE VENTES" |
| 97 | + }, |
| 98 | + "expense_report_id": 5323, |
| 99 | + "expense_report": { |
| 100 | + "id": 5323, |
| 101 | + "label": "09 - JOURNAL NDF" |
| 102 | + }, |
| 103 | + |
| 104 | + // Section: Immobilisations |
| 105 | + "annual_depreciation_period": 360, |
| 106 | + "diary_dotation_id": 5326, |
| 107 | + "diary_dotation": { |
| 108 | + "id": 5326, |
| 109 | + "label": "20 - JOURNAL D' OD" |
| 110 | + }, |
| 111 | + |
| 112 | + // Section: Paramétrage des automatisations |
| 113 | + "enable_autolettering": true, |
| 114 | + "enable_RB_autoentries": true, |
| 115 | + |
| 116 | + // Section: Rapprochement |
| 117 | + "bank_reconciliation_state": true, |
| 118 | + |
| 119 | + // Section: Délais et modes de règlement |
| 120 | + // Identifiant Créancier Sepa |
| 121 | + "ics": "", |
| 122 | + // Clients |
| 123 | + "customer_payment_deadline_id": 3, |
| 124 | + "customer_payment_deadline": { |
| 125 | + "id": 3, |
| 126 | + "label": "30 jours fin de mois", |
| 127 | + "number_of_days": 30, |
| 128 | + "end_month": true, |
| 129 | + "day_number": null |
| 130 | + }, |
| 131 | + "customer_reglement_type_id": 84779, |
| 132 | + "customer_reglement_type": { |
| 133 | + "id": 84779, |
| 134 | + "label": "Carte bleue" |
| 135 | + }, |
| 136 | + // Fournisseurs |
| 137 | + "provider_payment_deadline_id": 2, |
| 138 | + "provider_payment_deadline": { |
| 139 | + "id": 2, |
| 140 | + "label": "45 jours net", |
| 141 | + "number_of_days": 45, |
| 142 | + "end_month": false, |
| 143 | + "day_number": null |
| 144 | + }, |
| 145 | + "provider_reglement_type_id": 84783, |
| 146 | + "provider_reglement_type": { |
| 147 | + "id": 84783, |
| 148 | + "label": "Prélèvement" |
| 149 | + }, |
| 150 | + |
| 151 | + // Section: Emprunts |
| 152 | + // Compte intérêts courus non échus(court terme) |
| 153 | + "short_account_interest_id": 11788187, |
| 154 | + "short_account_interest": { |
| 155 | + "id": 11788187, |
| 156 | + "label": "519800000000" |
| 157 | + }, |
| 158 | + // Compte intérêts courus non échus(long terme) |
| 159 | + "account_interest_id": 22645572, |
| 160 | + "account_interest": { |
| 161 | + "id": 22645572, |
| 162 | + "label": "168800000000" |
| 163 | + }, |
| 164 | + // Journal de comptabilisation des ICNE |
| 165 | + "diary_interest_id": 314004, |
| 166 | + "diary_interest": { |
| 167 | + "id": 314004, |
| 168 | + "label": "20 - JOURNAL D' OD" |
| 169 | + }, |
| 170 | + |
| 171 | + // Section: Situations intermédiaires |
| 172 | + "diary_situation_id": null, |
| 173 | + |
| 174 | + // Section: Clients Douteux |
| 175 | + "account_prov_depreciation": null, |
| 176 | + "account_dotation_prov": null, |
| 177 | + "account_reprise_prov": null, |
| 178 | + "account_irrecoverable_debts": null, |
| 179 | + "account_irrecoverable_vat": null, |
| 180 | + "account_vat_regularize": null, |
| 181 | + "account_purchases_provider": null, |
| 182 | + "account_sales_customer": null, |
| 183 | + |
| 184 | + // Gestion des portefeuilles du dossier |
| 185 | + "wallets": [ |
| 186 | + { |
| 187 | + "id": 1, |
| 188 | + "label": "TOUTES" |
| 189 | + } |
| 190 | + ] |
| 191 | +} |
| 192 | +``` |
| 193 | + |
| 194 | +## Type de Comptabilité |
| 195 | + |
| 196 | +La clé JSON correspondante est `comptability_type_id` : |
| 197 | + |
| 198 | +- **Comptabilité d'engagement** : `id 1` |
| 199 | +- **Comptabilité de trésorerie** : `id 2` |
| 200 | + |
| 201 | +## Type de Dossier |
| 202 | + |
| 203 | +La clé JSON correspondante est `mission_type_id` : |
| 204 | + |
| 205 | +- **Dossier en tenue** : `id 1` |
| 206 | +- **Dossier en révision** : `id 2` |
| 207 | + |
| 208 | +## Plan Comptable Étalon |
| 209 | + |
| 210 | +Utilisez la clé `accounting_plan_id` pour définir le plan comptable étalon par défaut à utiliser. |
| 211 | + |
| 212 | +Pour plus de détails ou pour récupérer les paramètres : [Récupérer le paramétrage des plans comptables étalons](./pcg_etalon.md) |
| 213 | + |
| 214 | +## Portefeuilles |
| 215 | + |
| 216 | +Le tableau avec la clé `wallets` permet d'assigner les portefeuilles d'appartenance du dossier. |
| 217 | +Si besoin de récupérer l'intégralité des portefeuilles merci de consulter le guide [suivant](wallets.md). |
0 commit comments