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

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

It looks like the account type actif_IV_C_2 should have deposit (from account_deposit module) checked.

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 ?

The module supports both.

yep, works, thanks a lot

Can you submit a patch: Tryton - How to Develop

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 :

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">

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 Issue 11618: Add missing receivable/payable and deposit flags - Tryton issue tracker