help required for fetching values of supplementary data to udf

Discussion in 'Free Source Codes' started by panam, Jun 9, 2021.

    
  1. panam

    panam Member


    dear sir,
    when i enter party name in sales voucher,then party supplementary form opens, there i require for fetching values of supplementary data to udf
    i know that some format name to be given in "set as" line. i dont know,
    please help me in this code.

    [#Part: EI BaseInfo]
    Add:lines:After:EI consignee :party add01

    [Line:partyadd01]
    Fields: suppgst1,suppcosignee
    Space Top: 1.5 mm

    [Field:suppgst1]
    Fields: Simple Prompt, Name Field
    Local : Field : simple prompt : info :$$localestring:"supp GSTIN:"
    Local : Field : simple prompt : width : 10
    Local : Field : name Field :Set as :$EIBuyerGSTIN:#EISUPPLEMENTARY
    Local : Field : name Field :Skip:Yes
    Local : Field : name Field :Style:normal bold 1.jpg


    [Field:suppcosignee]
    Fields: Simple Prompt, Name Field
    Local : Field : simple prompt : info :$$localestring:"party supp :"
    Local : Field : simple prompt : width : 9
    Local : Field : name Field : Set as : $EIBUYER
    Local : Field : name Field :Skip:Yes
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Are you NOT referring Tally Developer ???

    Refer the 2 fields in Developer and just simply use the UDF name......
     


  3. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Capture.PNG

    Capture2.PNG
     
    panam likes this.


  4. panam

    panam Member


    dear Amit sir,
    I refereed tally developer.
    i checked Ei supplementary.
    but i am not understanding how to give set as:" "
    Local : Field : name Field : Set as : $EIPartyledger

    is this correct?
     
    Last edited: Jun 9, 2021


  5. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    No...hover your mouse over the Field that you want, in a tooltip box...it will give the field name. { Open Tally in Developer mode }

    Search for field name in Developer .... and find the UDF/Storage name of that value.

    And simply use that in your field.
     
    panam likes this.


  6. panam

    panam Member


    thank you sir. now i got the logic.

    still i had doubt of partygstin and supplementary party gstin.
    now i solved myself.

    i got little confusion. now i got clarity
    Local : Field : name Field :Set as : $partygstin:Ledger:#EIConsignee
    so red mark one confused me.
    in this code buyergstin fetches from ledger

    Local : Field : name Field :Set as : $partygstin
    in this code buyergstin fetches from UDF
     


  7. panam

    panam Member


    Sir one problem.
    after saving voucher and again while changing party name, suppgst1 UDF (gstin)of buyername is updating but UDF of suppcosignee(EI partyledger) is not updating in altermode.

    [Field:suppgst1]
    Fields: Simple Prompt, Name Field
    Local : Field : simple prompt : info :$$localestring:"supp GSTIN:"
    Local : Field : simple prompt : width : 10
    Local : Field : name Field :Set as :$partygstin
    Local : Field : name Field :Skip:Yes
    Local : Field : name Field :Style:normal bold


    [Field:suppcosignee]
    Fields: Simple Prompt, Name Field
    Local : Field : simple prompt : info :$$localestring:"supp NAME "
    Local : Field : simple prompt : width : 20
    Local : Field : name Field : Set as : $Partyname
    Local : Field : name Field :Skip:Yes
     


  8. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    [Field:suppcosignee]
    Fields: Simple Prompt, Name Field
    Local : Field : simple prompt : info :$$localestring:"supp NAME "
    Local : Field : simple prompt : width : 20
    Local : Field : name Field : Set as : $Partyname
    Local : Field : name Field :Skip:Yes

    The UDF is wrong.......follow same example of above field.......Find the Field in the Developer and use the inbuilt UDF/Storage name.
     
    panam likes this.


  9. panam

    panam Member


    dear sir, i found out the mistake why udf values were not fetching.
    1.for sales voucher ,the party field name is EI buyer & storage is $BasicBuyerName
    2. for purchase voucher, the party field name is EIParty ledger & storage is $Partyname

    how to set the party name of both voucher in my udf
    when purchase is done set as:$Partyname and when sales is done set as:$BasicBuyerName

    sir, please help me.

    [Field:suppcosignee]
    ;Option: suppcosignee:mad:@ISPURCHASE
    Fields: Simple Prompt, Name Field
    Local : Field : simple prompt : info :$$localestring:"Supp-Name:"
    ;Local : Field : simple prompt:Align:Left
    Local : Field : simple prompt :width :10
    Local : Field : name Field : Set as :if ##SVVoucherOfType="purchase" Then $Partyname Else $BasicBuyerName
    Local : Field : name Field :Skip:Yes
    Local : Field : name Field :width :25


    is this correct? or there is any alternate method.
     
    Last edited: Jun 14, 2021
    Amit Kamdar likes this.


  10. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Good...another HUNT for you in Developer.......

    You made good effort........if ##SVVoucherOfType="purchase" Then $Partyname Else $BasicBuyerName

    But red marked is wrong......... so find the proper one and it will work.
     
    panam likes this.


  11. panam

    panam Member


    thank u sir. sir i am not able to proceed further. please give some syntax for the code "if ##SVVoucherOfType="purchase" Then $Partyname Else $BasicBuyerName "
    The code is working correctly.
     


  12. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Set as :if $$IsPurchase:##SVVoucherOfType Then $Partyname Else $BasicBuyerName
     
    panam likes this.


  13. panam

    panam Member


    Thank you very much sir
     


Share This Page