Tuesday, December 29, 2015

hasmany validation and save data in a form, best approach

hello,
lets say that i have a form that represents an invoice and the invoice items. the invoice has many invoice items relation.
the form has some inputs for the invoice, and 10 rows with inputs for the invoice items: item code, item qty, item price, etc...
Not always all the 10 rows are filled with invoice items and you do not wants that the validation rules be applied to these rows that are not used.
the question is, what is the best approach to accomplish this?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: