Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk change for accounting code don't work with PostgreySQL database #20279

Closed
soundheritage opened this issue Mar 4, 2022 · 2 comments
Closed
Labels
Bug This is a bug (something does not work as expected)

Comments

@soundheritage
Copy link

soundheritage commented Mar 4, 2022

Bug

You can't change by "bulk methode" (multiple lines, in same times), the accounting code, on a environnement dolibarr V12 V13 V14 V15 installed on PostgreySQL Database. There is this error message for eatch lines :
"ERROR: 42703: column 'l' of relation 'llx_facture_fourn_det' does not exist LINE 1: UPDATE llx_facture_fourn_det as l SET l.fk_code_ventilation=... ^ LOCATION: transformUpdateTargetList, analyze.c:2333
ERROR: 42703: column 'l' of relation 'llx_facture_fourn_det' does not exist LINE 1: UPDATE llx_facture_fourn_det as l SET l.fk_code_ventilation=... ^ LOCATION: transformUpdateTargetList, analyze.c:2333"

Environment Version

Tested on Dolibarr V12 V13 V14 V15

Environment OS

Linux

Environment Web server

Apache

Environment PHP

PHP 7.4

Environment Database

PostgreSQL 12

Environment URL(s)

accountancy/supplier/lines.php
accountancy/customer/lines.php

Expected and actual behavior

We expect can be use the bulk changes with PostgreySQL database that working fine on a MySql database

Steps to reproduce the behavior

Check multiples lines, to change in bulk mode the accountancy code. Then, you try to apply the changes, by click to the button "changing link". and you have an error code, like the screenshot. The changing wasn't apply.

But if you change line by line, using the "modifying pen" on the right of the line, you can change the accountancy code.

Attached files

masse_changing_code
Code_comptable_change_error

@soundheritage soundheritage added the Bug This is a bug (something does not work as expected) label Mar 4, 2022
@soundheritage soundheritage changed the title Bulk change for accounting code Bulk change for accounting code don't work with PostgreySQL database Mar 4, 2022
@soundheritage
Copy link
Author

The database structure, for the llx_facture_fourn_det table :

database structure

Do you think there will be a fast workaround for this issue ?

aspangaro added a commit to aspangaro/dolibarr that referenced this issue Mar 8, 2022
@aspangaro
Copy link
Member

I proposed an easy fix #20297, possibility to apply to verify if it's work ?

eldy added a commit that referenced this issue Mar 24, 2022
FIX #20279 Accountancy - PostGreSQL - Error on mass update lines already binded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

2 participants