Skip to content

[16.0][17.0][18.0] stock_request: expected_date is ignored on create, and breaks duplicate #69

@matt454357

Description

@matt454357

Module

stock_request

Bug Description

  1. When creating a new stock request, the Expected date is always today, ignoring the date entered by the user
  2. When duplicating a stock request, the value of the expected_date field (which is required) is not passed to the create method, resulting in a validation error

To Reproduce

Affected versions: 16.0, 17.0, 18.0

Steps to reproduce the behavior of bug 1:

  1. Click New
  2. Specify an expected date other than today, and any other required fields
  3. Save the new stock request

Steps to reproduce the behavior of bug 2:

  1. Open an existing stock request
  2. Click Action -> Duplicate

Expected behavior

  1. New stock request should have the expected date as specified
  2. Stock request should duplicate without validation error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions