UPDATE rcpt_print_detail SET discount = 0 WHERE discount IS NULL
UPDATE rcpt_print_detail SET total_amount = rcptamt - discount WHERE total_amount IS NULL
UPDATE rcpt_print SET discount = 0 WHERE discount IS NULL
UPDATE rcpt_print SET total_amount = bill_amount - discount WHERE total_amount IS NULL