Image not show in invoice

Discussion in 'Free Source Codes' started by Rohit Khedar, Feb 21, 2021.

    
  1. Rohit Khedar

    Rohit Khedar Member


    anyone expert i want add image before Description but not show . help plz

    [#Part: EI DescExplosion]

    Delete : Line
    Delete : Repeat
    Delete : BreakOn
    Delete : Scroll
    Delete : Option


    Add : Left Parts : EI DescExplosion_Left
    Add : Right Parts: EI DescExplosion_Right

    Vertical : yes

    [Part: EI DescExplosion_Left]

    Line : EI DescExplosion_Left_Line
    Image : EI Desc_Resource
    Width : 15 mms
    Height : 15 mms

    [Line: EI DescExplosion_Left_Line]

    Field : EI DescExplosion_Left_Field

    [Field : EI DescExplosion_Left_Field]
    Set as: "Demo"


    [Resource: EI Desc_Resource]

    Source : ##SALogoPath ;; "C:\Users\Rohit Kumar\Desktop\A\Nokia 105.jpg"
    Resource Type :jpeg


    ;----------------------------------;

    [Part: EI DescExplosion_Right]

    Line : EI DescExplosion
    Repeat : EI DescExplosion : BasicUserDescription
    BreakOn : $$IsEmpty:$BasicUserDescription
    Scroll : Vertical
    Option : EI VATGCC DescExplosion : @@IsVchGVATApplicable AND ($$InPrintMode OR $$InExportMode)
     
    Last edited: Feb 21, 2021


  2. Rohit Khedar

    Rohit Khedar Member


    I want add image this type
     

    Attached Files:

    • 3.jpg
      3.jpg
      File size:
      14 KB
      Views:
      214


  3. Rohit Khedar

    Rohit Khedar Member


    anyone expert i change hear my code and one item is pikup on right point.
    but second item not show . please any expert hlp me or update my code

    ;; Sri Ganeshji Maharaj : Sri Pitreshwarji Maharaj : Sri Balaji Maharaj

    [#Form: Comprehensive Invoice]
    Option: TlyTrng Invoice : @@IsSales

    [#Form: Simple Printed Invoice]
    Option: TlyTrng Invoice : @@IsSales

    [!Form : TlyTrng Invoice]

    Delete : Parts
    Delete : Bottom Parts
    Delete : PageBreak

    Space Bottom : 0
    Space Left : 0.25 inch
    Space Right : 0
    Height : 250 mms

    Add : Parts : TlyTrng Invoice Top Part
    Add : Parts : TlyTrng Invoice Title Part

    Add : Parts : TlyTrng Invoice Body Part

    Add : Parts : TlyTrng Invoice Center Part
    Add : Bottom Parts : TlyTrng Invoice Bottom Part


    [Part: TlyTrng Invoice Top Part] ;; ===================== Part 1 start

    Lines : TlyTrng Name, TlyTrng CmpName, TlyTrng VCHDate, TlyTrng PartyName

    [Line: TlyTrng Name]
    Fields : TlyTrng Name
    Space Bottom : 0.8

    [Line: TlyTrng CmpName]
    Fields : TlyTrng CmpName
    Space Bottom : 0.8

    [Field: TlyTrng Name]
    Use : Name Field
    Set as : "Invoice with Item Image"
    FullWidth : Yes
    Align : Centre
    Style: Large Bold Italic
    Print FG : @@SV_VCHCOLOR
    Print BG : @@SV_VCHTYPE

    [Field: TlyTrng CmpName]
    Use : Name Field
    Set as : @@CMPMailNAme
    FullWidth : Yes
    Align : Centre
    Print FG : Blue
    Style: Normal Bold Italic

    [Line: TlyTrng VCHDate]
    Fields : Short Prompt, TlyTrng VCHDate
    Right Fields: Simple Prompt, TlyTrng VCHNo
    Space Bottom : 0.2

    Local: Field: Default : Print FG : @@SV_VCHCOLOR
    Local: Field: Default : Print BG : Orchid

    Local: Field: Short Prompt : Set as : "Invoice Date : "
    Local: Field: Short Prompt : Style: Normal Bold Italic


    Local: Field: Simple Prompt : Set as : "Invoice No : "
    Local: Field: Simple Prompt : Style: Normal Bold Italic




    [Field: TlyTrng VCHDate]
    Use : Name Field
    Set as : $Date



    [Field: TlyTrng VCHNo]
    Use : Name Field
    Set as : $VoucherNumber


    [Line: TlyTrng PartyName]
    Fields : Short Prompt, TlyTrng PartyName
    Space Bottom : 0.2

    Local: Field: Short Prompt : Set as : "Party Name: "
    Local: Field: Short Prompt : Print FG : @@SV_VCHCOLOR
    Local: Field: Short Prompt : Print BG : @@SV_VCHTYPE

    [Field: TlyTrng PartyName]
    Use : Name Field
    Set as : $PartyLedgerName
    Print FG : @@SV_VCHCOLOR
    Print BG : @@SV_VCHTYPE


    [Part : TlyTrng Invoice Title Part] ;; ===================== Part 2 start
    Line: TlyTrng Column Titles

    [Line: TlyTrng Column Titles]
    Use : TlyTrng IE Details

    Local: Field: Default : Lines : 2
    Local: Field: Default : Type : String
    Local: Field: Default : Style : Normal Bold

    Local: Field: Default : Print FG : Blue
    Local: Field: Default : Print BG : Yellow Green
    Local: Field: TlyTrng IE SrNo : Set as : "Sr No"
    Local: Field: TlyTrng IE SiName : Set as : "Item Description "
    Local: Field: TlyTrng IE HSN : Set as : "HSN/SAC"
    Local: Field: TlyTrng IE Qty : Set as : "Qty"
    Local: Field: TlyTrng IE Rate : Set as : "Rate"
    Local: Field: TlyTrng IE Per : Set as : "Per"
    Local: Field: TlyTrng IE Amount : Set as : "Amount"

    Border : Column Titles


    [Part: TlyTrng Invoice Body Part] ;; ===================== Part 3 start

    Part: TlyTrng Body Title, TlyTrng Body Detail
    Common Border: Yes
    Vertical:yes

    [Part: TlyTrng Body Title] ;; -----------------------Part 3-1 start
    Lines : TlyTrng IE Details
    Repeat : TlyTrng IE Details : Inventory Entries
    Total : TlyTrng IE Qty, TlyTrng IE Discount, TlyTrng IE Amount

    [Line: TlyTrng IE Details]
    Fields : TlyTrng IE SrNo, TlyTrng IE SiName,
    Right Fields : TlyTrng IE HSN, TlyTrng IE Qty, TlyTrng IE Rate, TlyTrng IE Per, TlyTrng IE Amount

    [Field: TlyTrng IE SrNo]
    Use : Short Name Field
    Set as : $$Line
    Border : Thin Left
    Width : 5

    [Field: TlyTrng IE SIName]
    Use : Name Field
    Set as : $StockItemName
    Border : Thin Left
    FullWIdth : Yes
    Style : Normal

    [Field: TlyTrng IE HSN]
    Use : Name Field
    Set as : $GSTHSNCode:StockItem:$StockItemName
    Border : Thin Left
    Align : Right
    Width : 8

    [Field: TlyTrng IE Qty]
    Use : Number Field
    Set as : $BilledQty
    Border : Thin Left
    Format : "NoSymbol"
    Align : Right
    Width : 6

    [Field: TlyTrng IE Rate]
    Use : Rate Price Field
    Set as : $Rate
    Border : Thin Left
    Width : 6

    [Field: TlyTrng IE Per]
    Use : Rate Units Field
    Width : @@VCHRateUnitsWidth
    Style : Normal Bold
    Storage : Rate
    Skip On : @@HasInvSubAlloc OR $$IsEmpty:$BilledQty OR (NOT @@DoEditAll AND $$IsValidPriceLevel:$PriceLevel AND @@StdVchFldSkipCond)
    SubForm : VCHFOREX Rate : @@HasMultiCurrencyRate
    Inactive : $$IsEnd:$StockItemName OR @@NoBaseUnits
    Option : VCH POSRateUnit : @@IsPOSInvoice
    Border : Thin Left Right

    [Field: TlyTrng IE Amount]
    Use : Amount Field
    Set as : $Amount
    Border : Thin Left Right
    Format : "NoComma, NoZero"
    Width : 10


    [Part: TlyTrng Body Detail] ;; -----------------------Part 3-2 start

    Left Parts: TlyTrng Body Image Detail, TlyTrng Body Desc Detail
    Vertical: No
    Height : 15 mms
    Space Left: 12.5 mms

    [Part: TlyTrng Body Image Detail] ;; ............... Part 3-2-1 start

    Line : Empty
    Print BG: Grey
    Height: 15 mms
    width : 20 mms
    Border: Thin Top Bottom

    Image : TlyTrngINVResource


    [Resource: TlyTrngINVResource]
    Source : $StockItemImagepath:Company:##SVCurrentCompany+"\"+$stockitemname+".jpg"
    ;; Source : ##SALogoPath ;; =======
    this is default tally logo path , only for testing
    Resource Type :jpeg


    [Part: TlyTrng Body Desc Detail] ;; ............... Part 3-2-2 start

    Line: TlyTrng BDD Line
    Height:15 mms
    width:72 mms
    Border: Thin Top Bottom
    Print BG: Light Grey

    [Line:TlyTrng BDD Line]
    Field: TlyTrng BDD Field

    [Field: TlyTrng BDD Field]
    Set as : "User Description not Show in this Field" ;$UserDescription ;;$Description:StockItem:$StockItemName
    Use : Name Field
    Style : Normal Bold Italic
    Print FG: Blue

    [Part : TlyTrng Invoice Center Part] ;; ===================== Part 4 start
    Scroll : Vertical
    Common Border: Yes
    Lines : TlyTrng IE Totl Details
    Repeat : TlyTrng IE Totl Details : Ledger Entries
    Scroll : Vertical

    [Line: TlyTrng IE Totl Details]
    Use : TlyTrng IE Details


    Local: Field: TlyTrng IE SrNo : Set as : ""
    Local: Field: TlyTrng IE SiName : Set as : $LedgerName
    Local: Field: TlyTrng IE HSN : Set as : $GSTHSNCode:StockItem:$StockItemName
    Local: Field: TlyTrng IE Qty : Set as : ""
    Local: Field: TlyTrng IE Rate : Set as : $$String:$RateOfInvoiceTax + "%"
    Local: Field: TlyTrng IE Per : Set as : ""
    Local: Field: TlyTrng IE Amount : Set as : $Amount
    Local: Field: TlyTrng IE SiName : Align : Right
    Local: Field: TlyTrng IE Qty : Format : "NoZero"
    Local: Field: TlyTrng IE Rate : Inactive : $RateOfInvoiceTax = 0
    Local: Field: TlyTrng IE Rate : Type : String

    Remove if : $LedgerName = $PartyLedgerName

    [Part: TlyTrng Invoice Bottom Part] ;;; ===================== Part 5 start

    Lines : TlyTrng Total Line, TlyTrng AmtInWords, TlyTrng ForCmp, TlyTrng AuthSign

    [Line: TlyTrng Total Line]
    Use : TlyTrng IE Details

    Local: Field: Default : Style : Normal Bold

    Local: Field: Default : Print FG : @@SV_VCHCOLOR
    Local: Field: Default : Print BG : @@SV_VCHTYPE

    Local: Field: TlyTrng IE SrNo : Set as : ""
    Local: Field: TlyTrng IE SiName : Set as : "Totals"
    Local: Field: TlyTrng IE Qty : Set as : $$Total:TlyTrngIEQty
    Local: Field: TlyTrng IE Rate : Set as : ""
    Local: Field: TlyTrng IE Amount : Set as : $$Total:TlyTrngIEAmount

    Border : Totals

    [Line: TlyTrng AmtInWords]
    Fields : Short Prompt, TlyTrng AmtInWords
    Local: Field: Short Prompt : Set as : "Amount in words : "

    [Field: TlyTrng AmtInWords]
    Use : Name Field
    Set as : $$InWords:$Amount + " Only"
    FullWidth : Yes
    Style : Small

    [Line: TlyTrng ForCmp]
    Right Fields: TlyTrng ForCmp

    [Field: TlyTrng ForCmp]
    Use : Name Field
    Set as : "For " + @@CMPMailNAme
    Align : Right
    Width : 0

    [Line: TlyTrng AuthSign]
    Right Fields: TlyTrng AuthSign
    Space Top : 2

    [Field: TlyTrng AuthSign]
    Use : Name Field
    Set as : "Authorised Signatory"
    Width : 0
    Align : Right

    ;; End-

    [Color : Orchid]

    RGB : 218,112,214

    [Color : Yellow Green]

    RGB : 154,205,50
     

    Attached Files:

    Last edited: Feb 22, 2021


  4. Rohit Khedar

    Rohit Khedar Member



    Hi anyone expert plz update my problem
     


  5. Rohit Khedar

    Rohit Khedar Member


    Hi morning all and help please
     


  6. abhinand vk

    abhinand vk Active Member


    and I have a doubt where is the 'StockItemImagepath' storage
     


  7. Rohit Khedar

    Rohit Khedar Member


    Source : ##SALogoPath ;; ======= this is default tally logo path , chack this
     


  8. abhinand vk

    abhinand vk Active Member


    upload_2021-2-25_11-29-20.png

    [Field: TlyTrng BDD Field]
    Set as : $$CollectionField:$UserDescription:1:InventoryEntries
    Use:name Field
    Style : Normal Bold Italic
    Print FG: Blue
     


  9. Rohit Khedar

    Rohit Khedar Member


    1st Item image done but 2nd item image not done
     


  10. Rohit Khedar

    Rohit Khedar Member


    Hi sir 2nd item image not show . update for 2nd items
     


  11. abhinand vk

    abhinand vk Active Member


    update your tdl with help of this tdl
    and understand your issue and how to solve
     

    Attached Files:



  12. Rohit Khedar

    Rohit Khedar Member


    I tested this tdl but in this not formulaa for repeat item image
     


  13. Rohit Khedar

    Rohit Khedar Member


    What not any expert so can update this problem
     


  14. abhinand vk

    abhinand vk Active Member



  15. Rohit Khedar

    Rohit Khedar Member



  16. abhinand vk

    abhinand vk Active Member


    they will reach you soon if you need faster support call this number 1800-425-8859/080 68103600
    and tell your query ticket no on the mail
     


  17. abhinand vk

    abhinand vk Active Member


    i asked about this to tally i got this replay
    i think this will done by dll or other program
     

    Attached Files:



  18. Rohit Khedar

    Rohit Khedar Member


    my reply,,,,,

    With reference to your mail regarding TDL item wise image in invoice. We would like to inform you that, we want more clarifications on this issue so provide contact details for further analysis.
     


  19. Rohit Khedar

    Rohit Khedar Member


    anyone expert update plz
     


  20. Rohit Khedar

    Rohit Khedar Member


    anyone expert solve and update my problem plz
     


  21. Rohit Khedar

    Rohit Khedar Member


    Hi expert and member help plz
     


  22. Rohit Khedar

    Rohit Khedar Member


    Hi expert help me please
     


  23. Rohit Khedar

    Rohit Khedar Member


    Hi expert morning and help me please
     


  24. Himanshu-2002

    Himanshu-2002 Active Member


    Hello Rohit Sir,
    Devendra Sir Helped you previously But I think you didn't understood the concept which he used Please Try to understand it... You have to use similar concept here also
     
    Devendra_Rawat likes this.


  25. pramith

    pramith New Member


    invoice view.JPG Item Configuration.JPG item gallery.JPG
     

    Attached Files:

    Rohit Khedar likes this.


Share This Page