How to store Amount UDF as Dr Value by Default

Discussion in 'Tally Developer' started by Pritam Krishna, Apr 16, 2020.

    

  1. Dear All,

    I am repeating Aggregate collection like as the screen shot below. By default if i enter the value it is storing as Cr value, which is to stored as Dr Value. I tried $$Negative function and $$Value * -1 in Set By Condition, but no luck.

    At the same time, if i give input Percentage value, it is taking the value as Dr.

    Kindly suggest how to achieve the value to store as Dr in the case no percentage value given.

    Thanks in Advance
    Preetham Krishna

    upload_2020-4-16_22-24-5.png
     



  2. Dear All,

    Any inputs / ideas ?

    TIA
     


  3. mutharasan

    mutharasan Member


    sir,
    Try following

    Use : Amount Field
    storage : myamount (your UDF)
    set As : $$Asamount:$myamount
    set Always ; yes
     


  4. Vijay Shetye

    Vijay Shetye Member


    Try
    Set as:$$AsDrAmt:$MyAmount

    in case this doesnot work please share the code will have to check the same..
     


Share This Page