Skip to content

Wrong delivery date for supplier order when created from another object #37191

@glu000

Description

@glu000

Bug

When creating a supplier order from another object (eg customer order) the field delivery date is always taken from the origin object, even if the user specified a different date during creation of the supplier order

Dolibarr Version

22.0

Environment PHP

n/a

Environment Database

n/a

Steps to reproduce the behavior and expected behavior

  1. Open an existing customer order where the fiels delivery date is set (eg to 1.3.2026)
  2. Create a supplier order from this customer order
  3. Set the field delivery date in the form to create the supplier order to a different value than set in customer order (eg. 15.2.2026)
  4. Create the supplier order

In this case the delivery date is set to the delivery date of the customer order (in this example 1.3.2026) instead of 15.2.2026. This makes no sense, because the user defined a different date during creation of the supplier order

Attached files

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis is a bug (something does not work as expected)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions