[T5266][FIX] last max_dues_bodega (not null) from res.config.settings gets selected

Merged Javier Vescio requested to merge T5266 into main

Merge request reports