Required suggestion for below Invoice customisation

Discussion in 'Tally & TDL Learning HUB' started by Dilip S H, May 8, 2024.

    
  1. Dilip S H

    Dilip S H Member


    [Field : TDL_ItemCodev]
    Width : 2 Cms
    Style : Small
    Align : Center
    Border : Thin Right
    Set as : $$StringWordEx:$StockItemName:"-":1

    [#Field: EXPINV Desc]
    Option : EXPINVDES:mad:@IsSales

    [!Field: EXPINVDES]
    Delete : Set as
    Add : setas : $$StringWordEx:$StockItemName:"-":2


    Where as item name is Item name is IE510164163 -983-71 YLW 50.8 X 150MM

    so Item code should be IE510164163

    Item name should be 983-71 YLW 50.8 X 150MM


    Kindly suggest how to achieve this



    FULL CODE AS BELOW
    [#Line: EI Column One]

    Option : EI Column One Sales Ascend :mad:@IsSales

    [!Line: EI Column One Sales Ascend]

    Add : Right Field : Before : VCH QtyTitle : VCH AscendBoxTit,VCH AscendRefTit

    [Field : VCH AscendBoxTit]
    Use : Name Field
    Info : "Box"
    Width : 10
    [Field : VCH AscendRefTit]
    Use : Name Field
    Info : "PO Ref No"
    Width : 12
    [#Line: EI InvInfo]

    Add : Option : EI InvInfo Ascend :mad:@IsSales

    [!Line: EI InvInfo Ascend]

    Add : Right Field : Before : VCH BilledQty : VCH BoxAscend,VCH RefAscend

    [Field : VCH BoxAscend]
    Use : Number Field
    Storage : VCHBoxAscend
    Width : 10

    [Field : VCH RefAscend]
    Use : Name Field
    Storage : VCHRefAscend
    Width : 12

    [System : UDF]
    VCHBoxAscend : Number : 50005
    VCHRefAscend : String : 50006
    ;============================
    [#Line: EXPINV Column1]

    Option : EXPINV Column1 Ascend :mad:@IsSales

    [!Line: EXPINV Column1 Ascend]

    Add : Right Field : Before : EXPINV QtyTitle : Inv AscendBoxFet,Inv AscendRefFet
    Add : Field : Before : EXPINV DescTitle : TDL_ItemCode

    [Field : TDL_ItemCode]
    Info : "Stock"
    Style : Small
    Width : 2 Cms
    Align : Center
    Border : Thin Right

    [Field : Inv AscendBoxFet]
    Use : Number Field
    Info : "Box"
    Width : 5
    Border : Thin Left
    Style : Small
    [Field : Inv AscendRefFet]
    Use : Name Field
    Info : "PO Ref No"
    Width : 10
    Style : Small
    Border : Thin Left

    [#Line : EXPINV Column2]

    Option : EXPINVAscendds:mad:@IsSales

    [!Line: EXPINVAscendds]
    Add : Right Field : Before : EXPINV QtyTitle : Inv AscendBoxFet,Inv AscendRefFet
    Add : Field : Before : EXPINV DescTitle : TDL_ItemCode
    Local : Field : TDL_ItemCode : Info : "Code"
    Local : Field : Inv AscendBoxFet : Inactive : Yes
    Local : Field : Inv AscendRefFet : Inactive : Yes
    /*[#Field: EXPINV QtyTitle]
    Use : QtyTitleField
    Info : $$LocaleString:"Quantity"
    ;; Border : Thin Left
    Align : Centre
    Style : Small*/

    ;[#Line: EXPINV AccDetails]

    [#Line:EXPINV InvDetails]

    Option : EXPINV AccDetails Ascend :mad:@IsSales

    [!Line: EXPINV AccDetails Ascend]

    Add : Right Field : Before : EXPINV Qty : VCH AscendBoxFet,VCH AscendRefFet
    Add : Field : Before : EXPINV Desc : TDL_ItemCodev

    [Field : TDL_ItemCodev]
    Width : 2 Cms
    Style : Small
    Align : Center
    Border : Thin Right
    Set as : $$StringWordEx:$StockItemName:"-":1

    [#Field: EXPINV Desc]
    Option : EXPINVDES:mad:@IsSales

    [!Field: EXPINVDES]
    Delete : Set as
    Add : setas : $$StringWordEx:$StockItemName:"-":2

    [Field : VCH AscendBoxFet]
    ;Use : Number Field
    Set as : $VCHBoxAscend
    Width : 5
    Border : Thin Left
    [Field : VCH AscendRefFet]
    ;Use : Name Field
    Set as : $VCHRefAscend
    Width : 10
    Border : Thin Left
    /*[#Field : EXPINV Qty]
    Print BG : red*/


    [#Line: EXPINV AccDetails]
    Option : EXPINVAcDet:mad:@IsSales

    [!Line: EXPINVAcDet]
    Add : Right Field : Before : EXPINV AccActualQty : VCH AscendBoxFetv,VCH AscendRefFetv
    Add : Field : Before : EXPINV AccDesc: TDL_ItemCodevA

    [Field : TDL_ItemCodevA]
    Width : 2 Cms

    [Field : VCH AscendBoxFetv]
    Width : 5
    [Field : VCH AscendRefFetv]
    Width : 10
    [Field :TDL_ItemCodevAT]
    Width : 2 Cms
    Border : Thin Right

    [#Line: EXPINV Totals]
    Option : EXPINVAcDetD:mad:@IsSales

    [!Line: EXPINVAcDetD]
    Add : Right Field : Before : EXPINV ActualQtyTotal: VCH AscendBoxFetv,VCH AscendRefFetv
    Add : Field : Before : EXPINV DescTitle: TDL_ItemCodevAT
    Local : Field : VCH AscendBoxFetv: Border:thin left
    Local : Field : VCH AscendRefFetv: Border:thin left
    ;[#Field: EXPINV HSNSACTotal]
    ; Border : Thin Left
    ;;;;;;;;;;;;;;;;;;;;;;;;;;
     


Share This Page