Formula is not updating

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • esforim
    replied
    Test it with the Sandbox.
    Try it with another field, for example the description field.

    description = "Full Settlement"

    Leave a comment:


  • rabii
    replied
    try this

    PHP Code:
    if (orderValue == amountReceived) {
        
    entity\setAttribute('type''Full Settlement')
    } else {
        
    entity\setAttribute('type''advance')
    }
    ​ 
    Maybe you have the value full settlement and it is translation is shown as Full Settlement

    Leave a comment:


  • Ashif Malayil
    replied
    Yes, Full Settlement and Advance is there as a option in Enum.

    Leave a comment:


  • eymen-elkum
    replied

    ifThenElse(
    orderValue == amountReceived,
    type = 'Full Settlement',
    type = 'advance'
    );​​

    Make sure 'Full Settlement' is defined as option for the enum field, because will not save if not listed on options already,

    Leave a comment:


  • Ashif Malayil
    started a topic Formula is not updating

    Formula is not updating

    I do have 2 fields Order value and Amount received. If Order Value is 5000 and Amount Received 5000, then i need to update 'type' as Full Settlement. This type is Enum field. But this formula is not effecting. How can i achieve this?

    ifThenElse(
    orderValue == amountReceived,
    entity\setAttribute('type', 'Full Settlement'),
    entity\setAttribute('type', 'advance')
    );​
Working...