Modify Master from a voucher entry

Discussion in 'Tally Developer' started by Arun Prasath, Jul 6, 2022.

    
  1. Arun Prasath

    Arun Prasath Member


    Dear Experts,

    I am trying to store value (for a UDF Field) in the Cost centre master when accepting the sales entry. It doesn't work properly. Pls check and advise how I could achieve this.
    Code:
    [#Line: MSTCostCentreParent]
        
    Add : Field : Led Blacklist
    
    [field:Led Blacklist]
       
        use : logical field
        Type : Logical:Forced
        Table : YesNoTable
         Set as : If $$Increatemode then  "No" Else $Blacklist
        Set Always  : Yes
        Storage:Blacklist
    
    
    [System: UDF]
       
    Blacklist : Logical: 140
    
    
    
    [#Form: Sales Color]
       
    On                : Form Accept    : Yes    : Call    : NGSTCCentreUpdate
    
    
    
    [Function: NGSTCCentreUpdate]
       
    Variable: CCNameName: String
       
    100: Set    :CCNameName : "Vehicle-TNAB3456" ;;$CostCentreName
    200: Modify Object : (CostCentre,##CCNameName).Blacklist : Yes
    
    
     


  2. Maulik Patel

    Maulik Patel Active Member


    Try this

    Code:
    200: Modify Object : (CostCentre,##CCNameName).Blacklist.Balcklist : Yes
     


Share This Page