How to Fetch User defined attribute of particualr ledger

Discussion in 'Tally Developer' started by Anshul Garg, Jul 1, 2013.

    
  1. Anshul Garg

    Anshul Garg Member


    I have Created a User Definrd filed Broker Percentage in the Ledger Creation and i want to show this Broker Percentage at the time of creating Sales Voucher of particular Broker Choosed

    ;To create Field "Broker Percentage" at the time of creating Ledger

    ;;Variable and Collections
    [System: UDF]
    BrokerPerc : Number: 199
    BrokerageType:String: 200

    [Collection: Brokerage Type]
    List Name : "By Quantity", "By Weight", "By Value"
    Title: "Select"

    ;; Changing the MST Led Details Part to add broker percentage and typr of Broker filed
    [#Part:MST LED Details]
    Add:Lines:BrLines,BrTypeLine


    ;;Adding Broker Percentage
    [Line:BrLines]
    Field:Medium Prompt,tBrLine
    Local:Field:Medium Prompt:Set as:"Broker Percantage"
    Local:Field:Medium Prompt :Inactive:NOT $Parent = "Brokers"


    [Field:tBrLine]
    Type: Number
    Storage:BrokerPerc
    Inactive:NOT $Parent = "Brokers"
    Set as: 0

    ;Adding Type Of Broker
    [Line:BrTypeLine]
    Field:Medium Prompt,tBrTypeLine
    Local:Field:Medium Prompt:Set as:"Brokerage Type"
    Local:Field:Medium Prompt :Inactive:NOT $Parent = "Brokers"


    [Field:tBrTypeLine]
    Type: String
    Storage:BrokerageType
    Inactive:NOT $Parent = "Brokers"
    Use: Name Field
    Table : Brokerage Type
    Show Table: Always

    ;; Checking Broker related fields in Sales Voucher ;;Checking Whether the invoice is Sales or not [System: UDF] BrokerName : String: 111 BrokerAmount : Amount : 112 [Table:BrokerName] Collection:Brokerledgers [Collection:BrokerLedgers] Type:Ledger Child Of:"Brokers" Belongs To:Yes [#Form: EI Supplementary] Option: BrokerDetails : $$IsSales:##SVVoucherType [!Form : BrokerDetails] Add: Parts: Before:EI OrderTitle: BrokerDetailsTitle, BrokerDetails [Part : BrokerDetailsTitle] Lines : Form SubTitle Local : Field : Form SubTitle : Info : $$LocaleString:"Broker Details" [Part : BrokerDetails] Border : Thin Bottom Space Bottom: 0.25 Lines : BrokerInfo [Line : BrokerInfo] Fields:lBrokerName,BrokerName,lBrokerPerc,BrokerPercentage [Field:lBrokerName] Use:Medium Prompt Set as:"Broker Name" Align:Left [Field: BrokerName] Use: Name Field Storage:BrokerName Keys: create ledger Table: BrokerName,Not Applicable Show Table:Always [Field: lBrokerPerc] Use : Medium Prompt Set as:"Broker Percentage" Align: Right [Field: BrokerPercentage] Use: Name Field Read Only:Yes
     


  2. Anshul Garg

    Anshul Garg Member


    i got it. I have to use
    $BrokerPerc:Ledger:$BrokerName

    syntax
    attribute:type of object::eek:bject Value
     



  3. ??
     
    Last edited: Oct 25, 2019


Share This Page