UPDATE `comp_acc_det` SET `amountdr` = amountdr +0, `amountcr` = amountcr +300, `total` = amountdr - amountcr, `updatedBy` = '52' WHERE `companyID` =  '111' AND `acctID` =  '29736' AND `year` =  '2014' AND `period` =  '10'