Personal I have a payroll table, and I have an indemnification code for each transaction, when receiving the data of the update, I want to get the data and insert in update in another table of the bank being that 1 of the fields does not have in the other table that is
In the table that I will update, has user and value, but n has the code, and to define if really and that user is going to receive the code and not duplicate, I need to be specific of that code ... someone could me to help? example:
USER 1 bought 30 reais, xx3 purchase code
When the purchase is approved, will receive from the purchase code xx3 the return of purchase and release of these 30 reais of credit, and will insert in the table (the 30 reais) of credit.