help in alter voucher

Discussion in 'Free Source Codes' started by Mac, Sep 18, 2022.

    
  1. Mac

    Mac Member


    hello friends

    i have created report and its work properly with all vouchertype like (Columnar) sales , purchase and all

    but i want to do when user click on that row it should open voucher

    i am using below code

    Option: AlterVchOnEnter : yes

    but problem is that if voucher is sales still its open payment screen , my concern is if voucher type sales then
    it should be open sales , if purchase then should be open Purchase alter voucher with detail.

    Kindly Suggest, Thank You !
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Alter : Voucher : $$IsVoucher --- in the appropriate field
     


  3. Mac

    Mac Member


    i tried this sir but not working

    [Line: TSPL SMP SourceFetch]

    Field : TSPL SMP VchDate, TSPL SMP VchNumber, TSPL SMP VchType, PartyName,productf,PQTY,TSPL SMP BName
    Right Field : TSPL SMP BAmount, TSPL SMP VchAmount
    Local: Field: Default : Style : Normal
    Option: AlterVchOnEnter : yes
     


  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Kindly read my message again.... i have asked that the BOLD line be put in the appropriate "FIELD".
     


  5. Mac

    Mac Member


    sir i had tried that , but not found , can you suggest ?


    [Field:productf]
    Use:name field
    Set as:$StockItemName
    ;Width: 10
    Border : Thin Left
    Alter : Voucher : $$IsVoucher

    [Field:pQTY]
    Use:Qty Primary Field
    Set as:$BilledQty;$DspVChinQTY;$VchQty;$BilledQuantity;$origactualqty;$ActualQty;$BilledQty;$QTY
    ;Width: 10
    Border : Thin Left
    Alter : Voucher : $$IsVoucher

    [Field:partyName]

    Use:name field
    Set as:$PartyName
    ;Width:10
    Border : Thin Left
    Alter : Voucher : $$IsVoucher

    [Field: TSPL SMP VchDate]

    Use : Uni Date Field
    Set as : $Date
    Width : 8
    Align : Left
    Alter : Voucher : $$IsVoucher

    [Field: TSPL SMP VchNumber]

    Use : Name Field
    Border : Thin Left
    Set as : $VoucherNumber
    Alter : Voucher : $$IsVoucher

    [Field: TSPL SMP VchType]

    Use : Name Field
    Border : Thin Left
    Set as : $VoucherTypeName
    ; Alter : Voucher : $$IsVoucher
    ;Option: AlterVchOnEnter : Yes
    Alter : Voucher : $$IsVoucher
    [Field: TSPL SMP BName]

    Use : Name Field
    Border : Thin Left
    Set as : $BName
    Alter : Voucher : $$IsVoucher

    [Field: TSPL SMP BAmount]

    Use : Amount Field
    Border : Thin Left
    Set as : $BAmt
    Alter : Voucher : $$IsVoucher


    [Field: TSPL SMP VchAmount]

    Use : Amount Field
    Border : Thin Left
    Set as : $Amount ;; This is fetched from the Source Object using Attribute Source Fetch
    Alter : Voucher : $$IsVoucher
     


  6. Mac

    Mac Member


    @Amitji Kindly Help
     


  7. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    The default setting of Voucher is Payment ......... and in case of open tally session data....... the last type of voucher created or altered will be the new default.

    Other Option is to use Function....

    In LINE level..........
    Option : AlteronMouseDoubleClick

    [!Line : AlteronMouse DoubleClick]
    Key : AlteronMouseDoubleClick

    [Key : AlteronMouseDoubleClick]
    Key : Left Double Click
    Action : Call : ThisVchAlter
    Inactive: (NOT $$InDisplayMode )

    [Function: ThisVchAlter]
    Variable : VoucherID
    00 : Set : VoucherID:<Ur Fld Name> where the MasterID is, if not there then create a Field for Master ID.
    20 : Alter : Voucher
     


Share This Page