function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
himanshu huske 7himanshu huske 7 

Task On Amount Transaction

Please Help Me With VisualForce Code:
I have Customer__c object, it has First_Name__c  Last_Name__c field.
Also i have another transaction__c object which is child of Customer__c object having lookup relationship, In transaction__c object i have AmountBalance__c field and AmountTransfer__c field,
My requirement is i want to create custom button on transaction__c, and on clicking this button vf page should be open, on that page i will have lookup field of customer__c to which amount is to be transfered, also there is Submit button, on clicking submit button mail should be sent to Customer__c with otp, There is also a field for otp in transaction__c object if otp matches amount will be deducted from Customer.
Eg: Customer1 has 10000/-  balance if  5000/- are transfered to  customer2, customer1 should have 5000 in balance