please help how to print employ name "abhu"on simple format sales invoice

Discussion in 'Tally Developer' started by abhinand vk, Nov 20, 2020.

    
  1. abhinand vk

    abhinand vk Active Member


    please help how to print employ name "Abhu" on the simple format sales invoice

    upload_2020-11-20_9-12-47.png


    I need Emply Name under the "employee name"
    upload_2020-11-20_9-15-23.png




    ;; please help on this code


    [#Part: EXPSMP CompName]
    Add:Line:Before:EXPSMP Company:Employ1,Employ2

    [Line:Employ1]
    Space Top:.5
    Right Field:employ1
    Local:Field:Default:Align:Center
    Local:Field:Default:Border:Thin Box
    Height:1.5
    [Field:employ1]
    Use:Name Field
    Set as:"Employee Name"

    [Line:Employ2]
    Right Field:employ2
    Local:Field:Default:Align:Center
    Local:Field:Default:Border:Thin Box
    Height:1.5
    [Field:employ2]
    Use:Name Field
    Set as:#VCHCSTNAME
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    You are doing it wrong way...... what if there are multiple Expense Ledgers and hence multiple Cost Centres ??

    Correct and efficient manner would be to have a NEW FIELD next to the "Party A/c Name", wherein the user can select the Employee\s name.
    Also instead of this you can use the LOGIN Name ...directly in the Print.
     


  3. Vijay Shetye

    Vijay Shetye Member


    You can use this code but it will pick the first cost centre name mentioned in Accounting Allocations of First Stock Item

    [Field:employ2]
    Use:Name Field
    Set as:$TestCCName

    [#Object: Voucher]
    TestCCName : $InventoryEntries[1].AccountingAllocations[1].CategoryAllocations[1].CostCentreAllocations[1].Name
     


  4. abhinand vk

    abhinand vk Active Member



    thank you sir
     


Share This Page