My app has 3 models:
- Customer
- RMA
- Item
Customer hasMany Order hasMany Item.
each model has his own Controller.
everything works smoothly.
now i'm trying to code a particular form (first time for me). my goal
is to do something similar to this:
RMA.code (hidden, this field will be auto-generated)
RMA.customer (selectBox, filled by data coming from a linked model
(Customer.id, Customer.name))
//here's the problem
RMA.items
//the customer should be able to add more than one line, without
saving the Order.
//for example:
Item.Quantity Item.Description
1 Laptop
2 Router
1 Cellphone
//the order should be saved ONLY when the user says so. ("Confirm
Order" button)
//@ "Confirm Order" app should save RMA order and all the items,
creating the proper associations.
What's, in your opinion, the best way to do this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment