Jump to content


ari

Member Since 21 Dec 2013
Offline Last Active Jan 13 2014 08:06 PM
-----

Topics I've Started

Readonly value from set_relation

22 December 2013 - 03:15 AM

Hi there,

 
I have tables like :
 

transactiondetail (id,productid,price,qty)
products (productid,productname,minimumprice)

the standard relation formula is :
$crud->set_relation('productid','products','{productname}-{minimumprice}');

but i wanna split the minimumprice into textbox in the form entry as readonly, because i wanna show to the user that the sales price cannot be lower than the minimum price.

So how can i do that ?