Skip to content

Payments for zero-amount orders are handled #1478

Description

@wouterwp

Here some logic is present to prevent payment handling of zero-amount orders:

function handlePayments(order) {
if (order.totalNetPrice === 0.0) {
return {};
}

But since order.totalNetPrice is of type dw.value.Money this comparison (using === will always be false. Instead this comparison should be done: order.totalNetPrice.value === 0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions