You need to sign in to do that
Don't have an account?
SFDC Dummy
How to create trigger for updating field based on picklist
Hi Friends
Now i have created two object masterTest and bankbooktest
in mastertest object i have created field like
Type---Bank Account an party account
Mastercode
master name
Opening balance
Closing balance
In bankbookTest object i have created field like
date
BankAccount(which is masterdetails with masterTest and putting filter if type==bank Account)
Party Code (which is lookup with masterTest and putting filter if type==Party Account)
Payment Type
Amount
I am creating some record manualy in masterTest with respect to Type
when i am creating BankbookTest record ,i am selecting date ,bankaccount ,payment type ,party code,amount,after save it will update the closing balance of masterTest
If payment type==payment/receipt then it will update closing balance of mastertest if type==bank Account, closing balance will be opening balance-total payment+total reciept)
If payment type==payment/receipt then it will update closing balance of mastertest if type==Party Account, closing balance will be opening balance+total payment-total reciept)
Now i have created two object masterTest and bankbooktest
in mastertest object i have created field like
Type---Bank Account an party account
Mastercode
master name
Opening balance
Closing balance
In bankbookTest object i have created field like
date
BankAccount(which is masterdetails with masterTest and putting filter if type==bank Account)
Party Code (which is lookup with masterTest and putting filter if type==Party Account)
Payment Type
Amount
I am creating some record manualy in masterTest with respect to Type
when i am creating BankbookTest record ,i am selecting date ,bankaccount ,payment type ,party code,amount,after save it will update the closing balance of masterTest
If payment type==payment/receipt then it will update closing balance of mastertest if type==bank Account, closing balance will be opening balance-total payment+total reciept)
If payment type==payment/receipt then it will update closing balance of mastertest if type==Party Account, closing balance will be opening balance+total payment-total reciept)
Please find the required trigger below :
Let me know if there is any issue.
Thanks,
Abhishek