• husna aziz
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi everyone
scenario
suppose we have two objects 1.item and 2.bill
object item has 4 fields
field1-name
field2-quantity
field3-price
field4-bill(look up relationship with custom object bill).
now bill is another custom object with fields
customer name and
total amount
now i need to write trigger to calculate total amount in the bill object

example we buy 2 soaps of $10
and 2 shirts of $100
so total amount would be 20 + 200 =220

anyone plz help..
Hi everyone
scenario
suppose we have two objects 1.item and 2.bill
object item has 4 fields
field1-name
field2-quantity
field3-price
field4-bill(look up relationship with custom object bill).
now bill is another custom object with fields
customer name and
total amount
now i need to write trigger to calculate total amount in the bill object

example we buy 2 soaps of $10
and 2 shirts of $100
so total amount would be 20 + 200 =220

anyone plz help..