UDF in Daybook

Discussion in 'Tally Developer' started by Dipak_0003, Jun 29, 2020.

  1. Dipak_0003

    Dipak_0003 New Member

    Dear All,

    I have below code to add in Sales Invoice
    [#Part: EI BaseInfo]
    Add : Line : At end : SalesNM
    [Line : SalesNM]
    Field : SalesPerson, Salesperson2
    [Field : SalesPerson]
    Use : short Name Field
    Set As : "Salesman Name:"
    Skip : Yes
    Width : 15
    [Field: SalesPerson2]
    use : Name Field
    Set as : $Salesman1:ledger:#EIConsignee
    Storage : Salesman4
    Skip : Yes
    [System: UDF]
    Salesman4 : String :261

    Its working fine. Now i want add sales man name in Day book and i created below code but its not giving me name of Sales person in Day book.

    [#Line: DBTitle1]
    Add : Right Field : At Beginning : SalemsanName
    Local : Field : SalemsanName : Set as: "Salesman"
    Local : Field : Default : Style : Normal Bold
    Local : Field : SalemsanName : Align : Centre

    [#Line: DSP VchDetail]
    Add : Right Field : At Beginning : SalemsanName
    [Field: SalemsanName]
    Use : Name Field
    Set as : $SalesPerson2
    Style : Normal
    Colour : Blue
    [#Collection : Vouchers of Ledger]
    Fetch : SalesmanName

    Please help me to understand where i made mistake.

    Thanks in advance.

  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member

    Find out what Collection the Daybook uses....then compute your value in that collection and then call for it in your Field.

Share This Page