Hi!
I have this script in my event of grid.
$current_date = date(‘Y-m-d’);
{amount_days} = sc_date_dif({scadri}, ‘aaaa-mm-dd’, $current_date, ‘aaaa-mm-dd’);
if({amount_days} < 0)
{
sc_field_style({scadri}, “#ea3a43”);
sc_field_style({iscir}, “#ea3a43”);
sc_field_style({poz}, “#ea3a43”);
//if amount is bigger then 0, means that current date is bigger then {field_due_date}
//send an email to the user, this bill is overdue.
}
elseif({amount_days} < 60)…
I want to write “amount_days” variable in database for further aplication.
can you help me?
Thank you.