confirm => t8('Do you really want to cancel this invoice?'),
disabled => !$form->{id} ? t8('This invoice has not been posted yet.') : undef,
],
action => [ t8('Delete'),
submit => [ '#form', { action => "delete" } ],
confirm => t8('Do you really want to cancel this invoice?'),
disabled => !$form->{id} ? t8('This invoice has not been posted yet.') : undef,
],
action => [ t8('Delete'),
submit => [ '#form', { action => "delete" } ],