Skip to content

New proforma document error: no discount field #3

@Lordchapter

Description

@Lordchapter

When creating a new document of type "proforma", it gives an error when the field "discount" is present.

{"error":500,"message":"MF\Json\ValidationException:property []: The property discount is not defined and the definition does not allow additional properties\n"}

When I exclude the "discount" field, the document is created.

The following json is send to the API endpoint:

{"type":"proforma","client":xxxx,"items":[{"id":0,"label":"description","price":50.0,"tax":21,"count":1}],"payment":"transfer","currency":"EUR","discount":null}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions