Skip to content

The Bill property is not valid when DocType != DocumentType.Bill #1

@sgutbaplicada

Description

@sgutbaplicada

Hi, I'm receiving this error from MPOST ''The Bill property is not valid when DocType != DocumentType.Bill''
i can't replicate this situation....in wich situations you receive this error? when someone is trying to use something that's not a bill?
is it correct to solve it like this?
if (BillAcceptor.DocType == DocumentType.Bill)
{
(.....)
BillAcceptor.EscrowStack();
}
else
{
(....)
BillAcceptor.EscrowReturn();
}

thanks

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