Open thibdrev opened 1 year ago
Hello,
Exactly in the same situation. We've upgraded to 16.0.3 and we still have the issue, when do you think you can fix this issue ?
We also have this issue on the modules "Paiements/Salaires" :
And "Paiements/Paiements Divers" :
It was working before upgrade to 16.0.x I guess.
I can report the same here, on a Doli 16.0.3
I am investigating root causes in the code, without much success
After a bit of investiguation, this is a false alert. The auxiliary code, if defined, is used. The point is taht it make impossible to know if it is defined...
Then it is not a bug, but you might open a separate request if you think the message needs to change
@AurelienBISOTTI I do think it is a bug The code is defined, and the user alterted that it is not
Unfortunately, even looking for a while to the code, I was not able to get where the issue comes from
Then I don't get the "The auxiliary code, if defined, is used" Where is it used ? In the bookeeping ? But not showed in bank account ?
More screenshots would be welcome, so I could test if there is still this issue in v18
Yes, exactly. The auxiliary code is difned, but not showned in the Bank journal "ventilation", and used properly in the bookeeping
In the "ventilation" for bank journal:
In the bookeeping, the exact same entry :
In the bookkeeping, everything is ok
In bank journal, account is 220, but is 2310 in bookkeeping.
Are you sure bookkeeping was not modified afterward ?
Can you try again to create salary, and check it ? From the bank journal, you can also check that this line is "in accouting"
Yes, I am 200 % sure.
I did modified the master code in the bookeeping, because of another strange behaviour in Dolibarr, but I can guarantee that in 17.0.0
, use in prod, I still have the problem of missing auxiliary count. Thanks god, the auxiliary is working properly n the bookeeping ^^"
I create about 20 salaries per months, and then ventilate every beginning of following month, so I can ensure the bug is not fixed.
In the "Ventilation" part, the php doesn't get the auxiliary account for an unknown reason, and report it as missing, while it is not.
How can you explain that "main" account number (not the auxiliary) has changed between the "ventilation" for bank journal and bookkeeping (220 vs 2310) ?
I simply changed it inthe bookeeping, but this is a complete other story, definitly unrelated to the fact that:
htdocs/accountancy/journal/bankjournal.php?mainmenu=accountancy&leftmenu=accountancy_journal&id_journal=3
htdocs/accountancy/bookkeeping/listbyaccount.php?mainmenu=accountancy&leftmenu=accountancy_accountancy
recognize the auxiliary accountThe variable in htdocs/accountancy/journal/bankjournal.php?mainmenu=accountancy&leftmenu=accountancy_journal&id_journal=3
supposed to carry the auxiliary account is broken.
Okay, I have been able to reproduce the problem
Hello,
Is it still the case on V18 ?
Hi @ksar-ksar,
Yes, I still observe this behaviour on a V18.0.2.
If I create an expense report, validate it and bound it to a finance account, then I see it normally in the Expense reports Journal:
However, once I pay it and check the Bank journal, I still get the message:
It seems that the subledger account is not retrieved.
I have a similar message on a salary payment :
An here as well, the bank entry is rightly linked to a user with an accountancy code (421xxx).
Hello @thibdrev ,
I confirm. I have the same problem in the bank journal for expense reports on a version 18.0.4.
same for me on 18.0.4
Bug
In the Auxiliary Account column of the Bank Journal,![image](https://user-images.githubusercontent.com/7697736/199775335-16f20e2f-cc0c-4d92-9ff6-5303e9d273fd.png)
NotDefined
is returned instead of a default value:Environment Version
16.0.1
Environment OS
Linux builder.o2switch.net 4.18.0-348.12.2.lve.el7h.x86_64
Environment Web server
Apache
Environment PHP
7.4.30
Environment Database
MySQL or MariaDB 5.5.5-10.5.17-MariaDB
Environment URL(s)
/htdocs/accountancy/journal/bankjournal.php?id_journal=3
Expected and actual behavior
Steps to reproduce the behavior
At first I thought this was linked to the user accountancy account not being defined before I made the payment. But I checked the following on a test instance: create a user and fill in its accountancy account > create an expense report, validate it and pay it. And I still get this behaviour.
The translated message is located here on Transifex: https://www.transifex.com/dolibarr-association/dolibarr/translate/#fr_FR/accountancy/165994858
Compte auxiliaire non défini ou tiers ou utilisateur inconnu. Nous utiliserons %s
It is linked to the translation key
ThirdpartyAccountNotDefinedOrThirdPartyUnknown
which is used here: https://github.com/Dolibarr/dolibarr/blob/57feb24f4acd82c25fe28c8706d902335d70220f/htdocs/accountancy/journal/bankjournal.php#L1287So I'm guessing the
$tabcompany[$key]['code_compta']
is theNotDefined
value.Attached files
No response