Topic: Unable to void Work Order

While voiding work order the following error comes

https://prnt.sc/1oesuya

The possible fix could be following.

    @@ -161,7 +161,7 @@ function void_work_order_produce($type_no)
        return;

    // deduct the quantity of this production from the parent work order
    -  work_order_update_finished_quantity($prod["workorder_id"], -$prod["quantity"], false);
    + work_order_update_finished_quantity($prod["workorder_id"], -$prod["quantity"], 0);

www.boxygen.pk

Re: Unable to void Work Order

Whats ur php version?

False is alternatively 0, may be the new version of php started giving trouble, though you dont need to pass the 0 as well, the default is already 0, which will work fine.

@joe checkout it

Subscription service based on FA
HRM CRM POS batch Themes

Re: Unable to void Work Order

7.4

www.boxygen.pk

Re: Unable to void Work Order

Fixed according to @kvvaradha solution and committed to stable repo.

/Joe