Please Solve my Problem with this code.

Discussion in 'Requests' started by sattam, Oct 18, 2016.

         
  1. sattam

    sattam Member


    Dear Respected Members,
    I have fields in all voucher for voucher creation and alteration date and time.Its works fine.but the problem is when I create a duplicate voucher it takes the same date and time of previous voucher.
    I tried but not succeed. pls help me.


    [#Part : DBLLINE Narration]
    Add : Lines : CrDtTm,AltDtTm
    [Line : CrDtTm]

    Fields : Short Prompt,CrDtTm1,CrDtTm2,CrDtTm3
    Local : Field : Default :Style:Normal Bold
    Local : Field : Short Prompt : Info : "Created By-"
    Local : Field : Short Prompt :Border:Left Full Thin Top

    [Field:CrDtTm1]
    Set as : If $$InCreatemode Then $$CmpUserName Else $CrDtTm1
    Storage : CrDtTm1
    Skip : Yes
    Border: Full Thin Top
    Width : 12
    [Field:CrDtTm2]

    Set as : If $$InCreateMode Then $$MachineDate Else $CrDtTm2
    Storage : CrDtTm2
    Skip : yes
    Border: Full Thin Top
    Width : 12
    [Field:CrDtTm3]

    Set as : If $$InCreateMode Then $$MachineTime Else $CrDtTm3
    Storage : CrDtTm3
    Skip : yes
    Border:Full Thin Top Right
    Width : 6
    [Line : AltDtTm]

    Field : Short Prompt,AltDtTm1,AltDtTm2,AltDtTm3
    Local : Field : Default :Style:Normal Bold
    Local : Field : Short Prompt : Info : "Altered By-"
    Local : Field : Short Prompt : Invisible : NOT $$InAltermode
    Local : Field : Short Prompt :Border:Left Full Thin Bottom
    [Field:AltDtTm1]
    Set as : If $$InAltermode Then $$CmpUserName Else " "
    Storage : AltDtTm1
    Skip : Yes

    Invisible : NOT $$InAltermode
    Width : 12
    Border: Full Thin Bottom

    [Field:AltDtTm2]
    Invisible : NOT $$InAltermode
    Set as : If $$InAlterMode Then $$MachineDate Else " "
    Storage : AltDtTm2
    Skip : yes
    Border: Full Thin Bottom
    Width : 12
    [Field:AltDtTm3]

    Invisible : NOT $$InAltermode
    Set as : If $$InAlterMode Then $$MachineTime Else " "
    Storage : AltDtTm3
    Skip : yes
    Width : 6
    Border: Left Sub Column Titles

    [Border:Full Thin Top Right]
    Top : Thin, Full Length
    Right : Thin

    [System : Udf]
    CrDtTm1 : String : 2111
    CrDtTm2 : string : 2112
    CrDtTm3 : String : 2113
    AltDtTm1 : String : 2114
    AltDtTm2 : string : 2115
    AltDtTm3 : String : 2116

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
     



  2. sattam

    sattam Member


    any body pls help me.
     



  3. sattam

    sattam Member


    any body pls help me
     



  4. sattam

    sattam Member


    Sir when I creat duplicate voucher I want machine date and time.sir help me pls correct my code.
     



  5. sattam

    sattam Member


    Sir when I creat duplicate voucher I want machine date and time.sir help me pls correct my code.
     



  6. sattam

    sattam Member


    My problem not solved till now
     



  7. anish

    anish Member


    Sir ,
    Please use
    Set as : If $$InAlterMode or $$InDuplicateMode Then $$MachineTime Else " "
    Hope it will work
     



  8. sattam

    sattam Member


    brother I tried $$Induplicate mode but it not work
     



  9. anish

    anish Member


    I don;t know but in my Tally ERP 9.4.93 its working well evening in duplicate mode also.
     



Share This Page