# Belgian PCMN: how to assign invoiced amounts to a 2xx account?

**URL:** https://discuss.tryton.org/t/belgian-pcmn-how-to-assign-invoiced-amounts-to-a-2xx-account/5442
**Category:** User
**Tags:** accounting
**Created:** [July 28, 2022, 3:09pm UTC](https://discuss.tryton.org/t/belgian-pcmn-how-to-assign-invoiced-amounts-to-a-2xx-account/5442 "2022-07-28T15:09:20Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![hobbes](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/a698b9/32.png) [@hobbes](https://discuss.tryton.org/u/hobbes)
#### Post date: [July 28, 2022, 3:09pm UTC](https://discuss.tryton.org/t/belgian-pcmn-how-to-assign-invoiced-amounts-to-a-2xx-account/5442/1 "2022-07-28T15:09:20Z")

</div>

Hello,

Belgian chart of accounts here.

I received an invoice from a supplier with an amount that is similar to a deposit: I’ll receive that amount back when I quit that supplier.

That amount is not a cost, it cannot go to a 6xx account. It should go to a 288 account (or child of 288). But when I encode that invoice, there is no possibility to chose a 2 account, only 6 and some 4.

What is the canonical way to solve that kind of problem ?

Thanks

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [July 28, 2022, 3:40pm UTC](https://discuss.tryton.org/t/belgian-pcmn-how-to-assign-invoiced-amounts-to-a-2xx-account/5442/2 "2022-07-28T15:40:54Z")

</div>

It looks like the account type actif\_IV\_C\_2 should have deposit (from `account_deposit` module) checked.

---

<div class="post-metadata">

### Author: ![hobbes](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/a698b9/32.png) [@hobbes](https://discuss.tryton.org/u/hobbes)
#### Post date: [July 28, 2022, 3:58pm UTC](https://discuss.tryton.org/t/belgian-pcmn-how-to-assign-invoiced-amounts-to-a-2xx-account/5442/3 "2022-07-28T15:58:58Z")

</div>

hmmm, I had a look at the account\_deposit module description, and it seems to be used if I want to receive deposits from my customers.

Is it also required for handling deposits to my suppliers ?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [July 28, 2022, 4:43pm UTC](https://discuss.tryton.org/t/belgian-pcmn-how-to-assign-invoiced-amounts-to-a-2xx-account/5442/4 "2022-07-28T16:43:41Z")

</div>

The module supports both.

---

<div class="post-metadata">

### Author: ![hobbes](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/a698b9/32.png) [@hobbes](https://discuss.tryton.org/u/hobbes)
#### Post date: [July 29, 2022, 11:01am UTC](https://discuss.tryton.org/t/belgian-pcmn-how-to-assign-invoiced-amounts-to-a-2xx-account/5442/5 "2022-07-29T11:01:46Z")

</div>

yep, works, thanks a lot

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [July 29, 2022, 11:03am UTC](https://discuss.tryton.org/t/belgian-pcmn-how-to-assign-invoiced-amounts-to-a-2xx-account/5442/6 "2022-07-29T11:03:09Z")

</div>

Can you submit a patch: [Tryton - How to Develop](https://www.tryton.org/develop#submit-change)

---

<div class="post-metadata">

### Author: ![hobbes](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/a698b9/32.png) [@hobbes](https://discuss.tryton.org/u/hobbes)
#### Post date: [July 29, 2022, 3:48pm UTC](https://discuss.tryton.org/t/belgian-pcmn-how-to-assign-invoiced-amounts-to-a-2xx-account/5442/7 "2022-07-29T15:48:56Z")

</div>

damn, I tried, but the codereview system needs a google account and I don’t want to use such a thing. Is there any other way to authenticate to the codereview system ?

Anyway the patch is tiny, so here it is, to be applied to account\_be :

```auto
diff -r d0c06095caf4 account_be.xml
--- a/account_be.xml	Mon May 02 17:48:16 2022 +0200
+++ b/account_be.xml	Fri Jul 29 17:45:49 2022 +0200
@@ -189,6 +189,7 @@
             <field name="parent" ref="actif_IV_C"/>
             <field name="statement">balance</field>
             <field name="assets" eval="True"/>
+ <field name="deposit" depends="account_deposit" eval="True"/>
         </record>
 
         <record model="account.account.type.template" id="actif_circulant">
diff -r d0c06095caf4 account_be_fr.xml
--- a/account_be_fr.xml	Mon May 02 17:48:16 2022 +0200
+++ b/account_be_fr.xml	Fri Jul 29 17:45:49 2022 +0200
@@ -189,6 +189,7 @@
             <field name="parent" ref="actif_IV_C_fr"/>
             <field name="statement">balance</field>
             <field name="assets" eval="True"/>
+ <field name="deposit" depends="account_deposit" eval="True"/>
         </record>
 
         <record id="actif_circulant_fr" model="account.account.type.template">
diff -r d0c06095caf4 account_be_nl.xml
--- a/account_be_nl.xml	Mon May 02 17:48:16 2022 +0200
+++ b/account_be_nl.xml	Fri Jul 29 17:45:49 2022 +0200
@@ -189,6 +189,7 @@
             <field name="parent" ref="actif_IV_C_nl"/>
             <field name="statement">balance</field>
             <field name="assets" eval="True"/>
+ <field name="deposit" depends="account_deposit" eval="True"/>
         </record>
 
         <record id="actif_circulant_nl" model="account.account.type.template">

```

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [July 29, 2022, 10:46pm UTC](https://discuss.tryton.org/t/belgian-pcmn-how-to-assign-invoiced-amounts-to-a-2xx-account/5442/8 "2022-07-29T22:46:10Z")

</div>

For me it is more complex because not all accounts in this type are deposit so we need to create new sub-types. So I filled [Add missing receivable/payable and deposit flags (#11618) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue11618)

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [August 28, 2022, 10:46pm UTC](https://discuss.tryton.org/t/belgian-pcmn-how-to-assign-invoiced-amounts-to-a-2xx-account/5442/9 "2022-08-28T22:46:51Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
