problem in Code understanding

Discussion in 'Tally Developer' started by thisisayushjain, Dec 2, 2020.

    
  1. thisisayushjain

    thisisayushjain New Member


    i took a code from internet to add coloum to the sales but i did not understand few lines from the code can anyone explain me


    [#Line: EI InvDetails]

    Option : GWLW EI InvDetails : @@IsSales


    [#Line: CI InvDetails]

    Option : GWLW CI InvDetails : @@IsSales


    [#Line: EI InvInfo]

    Option : GWLW EI InvInfo : @@IsSales

    [#Line: CI InvInfo]

    Option : GWLW EI InvInfo : @@IsSales


    these are the line from the code
    thanks
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    It means...if it is a SALES voucher, the activate the Optional LINE as mentioned.
     


  3. kirandham

    kirandham New Member


    [#Line: EI InvDetails]

    Option : GWLW EI InvDetails : @@IsSales
    This line helps to add or remove excisting fields from the line "[#Line: EI InvDetails]"
    STockitems are visible on this line.

    [#Line: CI InvDetails]
    Above line is activated when you enables the voucher class.
    If u enable voucher class above line will work.

    Like same based on the condition different lines will work.

    Hope u understood..
     
    thisisayushjain likes this.


  4. thisisayushjain

    thisisayushjain New Member


    thank you sir

    below is the original code
    i'm unable to get the total in the end can you help me

    [#Line: EI ColumnOne]

    Option : t EI ColumnOne : (@@IsSales or @@IsPurchase)

    [!Line: t EI ColumnOne]

    Add : Right Fields : At Beginning : t VCH Marks1,t VCH Marks2,t VCH Marks3


    Local : Field : Default : Align : Center

    Local : Field : t VCH Marks1 : Info : "Column 1"
    Local : Field : t VCH Marks2 : Info : "Column 2"
    Local : Field : t VCH Marks3 : Info : "Column 3"




    [#Line: EI ColumnTwo]

    Option : t EI ColumnTwo : @@IsSales

    [!Line: t EI ColumnTwo]

    Add : Right Fields : At Beginning : t VCH Marks1,t VCH Marks2,t VCH Marks3
    Local : Field : Default : Align : Center



    ;; used for something

    [#Line: EI InvDetails]

    Option : t EI InvDetails : @@IsSales


    [#Line: CI InvDetails]

    Option : t CI InvDetails : @@IsSales


    [#Line: EI InvInfo]

    Option : t EI InvInfo : @@IsSales

    [#Line: CI InvInfo]

    Option : t EI InvInfo : @@IsSales



    [!Line: t EI InvInfo]

    Add : Right Fields : At Beginning : t VCH Marks1,t VCH Marks2,t VCH Marks3
    Local : Field : t VCH Marks1 : Storage : BasicPackageMarks1
    Local : Field : t VCH Marks2 : Storage : BasicPackageMarks2
    Local : Field : t VCH Marks3 : Storage : BasicPackageMarks3

    [Field: t VCH Marks1]

    Use : Short Name Field
    Width : 8
    Align : Right
    Invisible : NOT ##VrVarC1
    Skip on : $$IsEnd:$StockItemName

    [Field: t VCH Marks2]

    Use : Short Name Field
    Width : 8
    Align : Right
    Invisible : NOT ##VrVarC1
    Skip on : $$IsEnd:$StockItemName

    [Field: t VCH Marks3]

    Use : Short Name Field
    Width : 8
    Align : Right
    Invisible : NOT ##VrVarC1
    Skip on : $$IsEnd:$StockItemName


    [#Form: Export Invoice]

    Option : t Export Invoice NP : @@IsSales

    [!Form : t Export Invoice NP]


    Local : Line : VCH NarrPrompt: Add : Right Fields : At Beginning : t Total Marks1,t Total Marks2,t Total Marks3

    [Field: t Total Marks1]

    Use : t VCH Marks1
    Border : Totals
    Set as : $$String:mad:@NumPackMarksTotal1
    Set always : Yes
    Skip : Yes

    [Field: t Total Marks2]

    Use : t VCH Marks2
    Border : Totals
    Set as : $$String:mad:@NumPackMarksTotal2
    Set always : Yes
    Skip : Yes

    [Field: t Total Marks3]

    Use : t VCH Marks3
    Border : Totals
    Set as : $$String:mad:@NumPackMarksTotal3
    Set always : Yes
    Skip : Yes

    [System: Formula]

    NumPackMarksTotal1 : $$CollNumTotal:InventoryEntries:$$Number:$BasicPackageMarks1
    NumPackMarksTotal2 : $$CollNumTotal:InventoryEntries:$$Number:$BasicPackageMarks2
    NumPackMarksTotal3 : $$CollNumTotal:InventoryEntries:$$Number:$BasicPackageMarks3
     


  5. thisisayushjain

    thisisayushjain New Member


    thank you sir

    below is the original code
    i'm unable to get the total in the end can you help me

    [#Line: EI ColumnOne]

    Option : t EI ColumnOne : (@@IsSales or @@IsPurchase)

    [!Line: t EI ColumnOne]

    Add : Right Fields : At Beginning : t VCH Marks1,t VCH Marks2,t VCH Marks3


    Local : Field : Default : Align : Center

    Local : Field : t VCH Marks1 : Info : "Column 1"
    Local : Field : t VCH Marks2 : Info : "Column 2"
    Local : Field : t VCH Marks3 : Info : "Column 3"




    [#Line: EI ColumnTwo]

    Option : t EI ColumnTwo : @@IsSales

    [!Line: t EI ColumnTwo]

    Add : Right Fields : At Beginning : t VCH Marks1,t VCH Marks2,t VCH Marks3
    Local : Field : Default : Align : Center



    ;; used for something

    [#Line: EI InvDetails]

    Option : t EI InvDetails : @@IsSales


    [#Line: CI InvDetails]

    Option : t CI InvDetails : @@IsSales


    [#Line: EI InvInfo]

    Option : t EI InvInfo : @@IsSales

    [#Line: CI InvInfo]

    Option : t EI InvInfo : @@IsSales



    [!Line: t EI InvInfo]

    Add : Right Fields : At Beginning : t VCH Marks1,t VCH Marks2,t VCH Marks3
    Local : Field : t VCH Marks1 : Storage : BasicPackageMarks1
    Local : Field : t VCH Marks2 : Storage : BasicPackageMarks2
    Local : Field : t VCH Marks3 : Storage : BasicPackageMarks3

    [Field: t VCH Marks1]

    Use : Short Name Field
    Width : 8
    Align : Right
    Invisible : NOT ##VrVarC1
    Skip on : $$IsEnd:$StockItemName

    [Field: t VCH Marks2]

    Use : Short Name Field
    Width : 8
    Align : Right
    Invisible : NOT ##VrVarC1
    Skip on : $$IsEnd:$StockItemName

    [Field: t VCH Marks3]

    Use : Short Name Field
    Width : 8
    Align : Right
    Invisible : NOT ##VrVarC1
    Skip on : $$IsEnd:$StockItemName


    [#Form: Export Invoice]

    Option : t Export Invoice NP : @@IsSales

    [!Form : t Export Invoice NP]


    Local : Line : VCH NarrPrompt: Add : Right Fields : At Beginning : t Total Marks1,t Total Marks2,t Total Marks3

    [Field: t Total Marks1]

    Use : t VCH Marks1
    Border : Totals
    Set as : $$String:mad:@NumPackMarksTotal1
    Set always : Yes
    Skip : Yes

    [Field: t Total Marks2]

    Use : t VCH Marks2
    Border : Totals
    Set as : $$String:mad:@NumPackMarksTotal2
    Set always : Yes
    Skip : Yes

    [Field: t Total Marks3]

    Use : t VCH Marks3
    Border : Totals
    Set as : $$String:mad:@NumPackMarksTotal3
    Set always : Yes
    Skip : Yes

    [System: Formula]

    NumPackMarksTotal1 : $$CollNumTotal:InventoryEntries:$$Number:$BasicPackageMarks1
    NumPackMarksTotal2 : $$CollNumTotal:InventoryEntries:$$Number:$BasicPackageMarks2
    NumPackMarksTotal3 : $$CollNumTotal:InventoryEntries:$$Number:$BasicPackageMarks3

     


Share This Page