Warning: Attempt to read property "datepaye" on string in supplier payment module

Hi everyone,

I’m encountering a warning message in the supplier payment module of Dolibarr and I’m hoping someone can offer some guidance.

The warning is: “Warning: Attempt to read property “datepaye” on string in /home/itcamr8n/public_html/lTadmin/core/modules/supplier_payment/m”

This appears when configuring supplier payment numbering using a custom mask (specifically with “brodator” using the mask “REFF(yyyy)(000)”). The generated example is “REF2025001”.

Here’s what I’ve observed:

  • The issue seems related to how the datepaye property is being handled within the code, possibly treating a string value as an object.
  • The standard numbering method (“bronan” using “SPAYyymm-nnnn”) does not produce this warning.

My questions are:

  • Has anyone else encountered this warning?
  • What is the root cause of this issue?
  • Is there a known fix or workaround?

I’m running [Insert Dolibarr version here] on [Insert PHP version here] and [Insert Database version here].

Any help or insights would be greatly appreciated.

Thanks in advance!

which dolibarr and PHP version?


version > 20.0.3 dollibar