Hello guys working on a simple sales record application. I have a table (salestbl) with columns salesid, salesdate,salesamount,salesqty,salestype.
Salestype could be either sold or returned now ,what i want to achieve is to deduct salesqty and amount if salestype = returned
if ($Salestype =returned) {
//deduct salesqty and salesamount
}
Thanks