Jump to content

Private Function Addline() To Public Function Addline()


Recommended Posts

Posted

Hello,


 


To be able in the future add line to invoices, can you change in the next release the private function addLine() in app/modules/invoices.php  to public function addLine() ?


 


Thanks in advance 


Posted

No, we wouldn't change the scope of that method from private. It performs no data validation itself, as it is not open to being called outside of the Invoices model, and you shouldn't have a need to call it directly. You can call Invoices::edit to add more line items to an invoice.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...