You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Mridul Pathak (Jira)" <ji...@apache.org> on 2026/09/15 06:45:00 UTC

[jira] [Created] (OFBIZ-13587) checkInvoiceStatusInProgress loses its specific error messages

Mridul Pathak created OFBIZ-13587:
-------------------------------------

             Summary: checkInvoiceStatusInProgress loses its specific error messages
                 Key: OFBIZ-13587
                 URL: https://issues.apache.org/jira/browse/OFBIZ-13587
             Project: OFBiz
          Issue Type: Bug
          Components: accounting
    Affects Versions: 24.09.07, Upcoming Branch
            Reporter: Mridul Pathak
            Assignee: Mridul Pathak


{{checkInvoiceStatusInProgress}} was converted into a {{<permission-service>}} (used by {{createInvoiceItem}}/{{updateInvoiceItem}}/{{removeInvoiceItem}}/{{createInvoiceRole}}/{{removeInvoiceRole}}/{{createInvoiceTerm}}) that only returns {{hasPermission}}, never a {{failMessage}}. The original minilang raised distinct labeled errors ("Invoice not found" vs. "can only update while in process"). Since {{failMessage}} is absent, the permission framework substitutes a generic "you do not have permission" message, losing the specific reason for the rejection.

Needs fixing: set {{result.failMessage}} to the appropriate specific label ({{AccountingInvoiceNotFound}} / {{AccountingInvoiceUpdateOnlyWithInProcessStatus}}) in the failure branches.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)