Ledger Description

Discussion in 'Tally Developer' started by DEEPAK B, Dec 7, 2022.

    
  1. DEEPAK B

    DEEPAK B Member


    Can Anyone Help Me with This

    In the last part I have called Machine 1 and Machine 2 But in sales voucher entry
    But it show in all ledger Description I just want it to show in only the ledger which is related to Sales or Purchase in account Master

    As in the Image below it shows in cgst and sgst also which it should not come
    Only I should come in Ledger Name defined in Sales Ledger

    upload_2022-12-7_12-26-47.png

    Code:
    [ SYSTEM        : UDF ]
          Machine1UDF       : STRING    : 2
          Machine2UDF        :STRING    : 3
        
    
    [#Part: LED Contact]
      ADD        : LINE    : AFTER:  LED Mobile  : Machine1,Opo
     
    [ LINE           : Machine1]
                FIELD        : MEDIUM PROMPT, MachineNo1 FIELD
                LOCAL        : FIELD    : MEDIUM PROMPT        : SET AS       : "Machine No 1:"
                LOCAL        : FIELD    : DEFAULT              : COLOR        : BLACK
               
    [ LINE           : Opo]
                FIELD        : MEDIUM PROMPT, Opo FIELD
                LOCAL        : FIELD    : MEDIUM PROMPT        : SET AS       : "Machine No. 2:"
                LOCAL        : FIELD    : DEFAULT              : COLOR        : BLACK
               
    [ FIELD            : MachineNo1 FIELD ]
                USE            : SHORT NAME FIELD
                STORAGE        : Machine1UDF
                INACTIVE    : NOT @@ISDEBTORCREDITOR
               
    [ FIELD            : Opo FIELD ]
                USE            : SHORT NAME FIELD
                STORAGE        : Machine2UDF
                INACTIVE    : NOT @@ISDEBTORCREDITOR
               
    [ LINE             : MachineNo1 ]
                ADD            : FIELD              : MachineNo1
                INVISIBLE      : NOT (@@ISPURCHASE OR @@ISSALES)
               
    [ LINE             : MachineNo2 ]
                ADD            : FIELD              : MachineNo2
                INVISIBLE      : NOT (@@ISPURCHASE OR @@ISSALES)
    
               
    [ FIELD            : MachineNo1 ]
                FIELDS       : SIMPLE PROMPT, NAME FIELD
                LOCAL        : FIELD    : SIMPLE PROMPT        : SET AS        : "Machine No.1:"
                LOCAL        : FIELD    : NAME FIELD           : SET AS        : $Machine1UDF:LEDGER:$LEDGERNAME
                LOCAL        : FIELD    : SIMPLE PROMPT        : WIDTH         : 15
                LOCAL        : FIELD    : DEFAULT              : SKIP          : YES
               
    [ FIELD            : MachineNo ]
                FIELDS       : SIMPLE PROMPT, NAME FIELD
                LOCAL        : FIELD    : SIMPLE PROMPT        : SET AS        : "Machine No.2:"
                LOCAL        : FIELD    : NAME FIELD           : SET AS        : $Machine2UDF:LEDGER:$LEDGERNAME
                LOCAL        : FIELD    : SIMPLE PROMPT        : WIDTH         : 15
                LOCAL        : FIELD    : DEFAULT              : SKIP          : YES
    
           
    [#Form: EI LedDescExplosion]
        Local: Line: EI DescExplosion: Local: Field: EI Desc: +
        Set as: If $$Line = 1 Then $Machine1UDF:LEDGER:$PARTYLEDGERNAME Else if $$Line = 2 Then $Machine2UDF:LEDGER:$PARTYLEDGERNAME Else $$Value
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Use OPTION ......... and condition $$IsBelongsto.......Group creditors or debtors...........

    Search Function $$IsBelongsto in Developer and implement it in your code.
     
    Jaydeep Shah likes this.


Share This Page