Authorized UserWise Daybook filtration Problem.

Discussion in 'Tally Developer' started by HarshaLalzare, Apr 6, 2016.

    
  1. HarshaLalzare

    HarshaLalzare New Member


    Dear Experts,

    I was trying to make Authorized Userwise daybook if in user security i give that user yes.
    Filtration is OK if given Yes but blank daybook display for all other user.
    my filter if condition is work properly but else condition not work
    Kindly help how to fetch all the vouchers for other users.

    Please suggest me how to give filter condition my code are as

    [#Report:daybook]
    local:collection:dbvoucher src:Filter:dusew
    ; Add:Filter : DUSW :mad:@OlyAuthorisation = "Yes"
    [System:Formulas];

    dusew :if @@OlyAuthorisation = "Yes" then $Enteredby = $$CmpUserName else $Enteredby = $Enteredby

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;; User Level Security Setting
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    [#Line : CUTitle]

    Add : Fields : At End : Info Field

    Local : Field : Info Field : Info : "Individual Daybook?"


    [#Part: ComPany Users]

    Local : Line : Company Users : Add : Fields : OlyIsAuthorised


    [Field : OlyIsAuthorised]

    Use : Logical Field
    Storage : IsInvAuthorised
    Width : @@NameWidth/2
    Set as : No
    Inactive : $$IsSysName:$$Name


    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;; UDF Informations
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    [System : UDF]

    IsInvAuthorised : Logical : 99

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;; Variables
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;; Formulas
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    [System : Formula]

    Company Security Name :$$FilterValue:$Security:CompanyUsersCollection:First:CompanySecurityFilter
    Company Security Filter : $Name = #AuthorisationUN

    Company PName : $$FilterValue:$OlyPW:CompanyUsersCollection:First:CompanySecurityFilter
    Incorect Password : "Incorrect \n PassWord"
    FrmIsInvAuthorised : $IsInvAuthorised

    OlyAuthorisation : $$FilterValue:$IsInvAuthorised:CompanyUsersCollection:First:CompanyAuthorisedFilter
    CompanyAuthorisedFilter : $Name=$$CmpUserName

    OlyVoucherAlter : "Voucher Alteration" + $$NewLine + "is not allowed"

    NotAdminAndNotAuthorised : @@OlyAuthorisation ;AND NOT (@@OlyAuthorisation="Yes")

    PrintAuthorised : $$FilterValue:$IsInvAuthorised:CompanyUsersCollection:First:CompanyAuthorisedFilter
    NotPrintAuthorised : Not $$IsCmpOwner AND @@PrintAuthorised="No"

    DuplicatePerson : $$FilterValue:$IsDuplicateAuthorized:CompanyUsersCollection:First:CompanyAuthorisedFilter
    NotDuplicatePerson : Not $$IsCmpOwner AND @@DuplicatePerson="No"



    [Collection : Company Users Collection]

    Type : User List : Company
    Child Of : ##SVCurrentCompany


    Thanks i advanced
     


  2. RIBU

    RIBU New Member


    Hi,

    Pls change the System Formula, Below the TDL Snippet

    [System:Formulas]

    dusew :if $$IsCmpOwner then Yes Else If @@OlyAuthorisation = "Yes" then $Enteredby = $$CmpUserName else $Enteredby = $Enteredby
     


  3. HarshaLalzare

    HarshaLalzare New Member


    Thank you very much sir its working
     


Share This Page