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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...