Hi, I am trying to figure out a meaningful display for the end user. I tried to do var_dump of the description column of the sc_log table and I have got the following output
array(2) { [“keys”]=> array(1) { [“ledger_id”]=> string(1) “1” } [“fields”]=> array(2) { [“old”]=> array(1) { [“LEDGER_NAME”]=> string(43) “90 Ordinary shares of Rs. 10/-” } [“new”]=> array(1) { [“LEDGER_NAME”]=> string(44) “90 Ordinary shares of Rs. 50/-” } } } string(0) “” string(0) “” string(0) “” string(0) “” string(0) “” string(0) “” string(0) “”
When I show the description directly to the end user (administrator of the application) then it displays as below
–> keys <-- ledger_id : 1||–> fields <-- LEDGER_NAME (old) : 90 Ordinary shares of Rs. 10/-||LEDGER_NAME (new) : 90 Ordinary shares of Rs. 50/-
I am looking for ways to display this as below
LEDGER_NAME (old) : 90 Ordinary shares of Rs. 10/-
LEDGER_NAME (new) : 90 Ordinary shares of Rs. 50/-
This way we can clearly understand what has been changed.
Any thoughts?