Print signature in invoice

Discussion in 'Free Source Codes' started by KAUSHIK GALATHIYA, Jul 2, 2022.

    

  1. Hello everyone,
     

    Attached Files:

    Last edited: Aug 15, 2022


  2. ONKAR

    ONKAR Active Member


    @KAUSHIK GALATHIYA Try this one , already available on forum , credit goes to @Sanjeev S sir

    Tip : - 1 ] Enable in Accounting Features
    2 ] Give Image Path
    3 ] Size of the image used was 182 Kb Jpeg File(Transparent Image File)
    4 ] Dimension 2820 x 1330 Pixel with 96 dpi horizontal and vertical,

    [#Part: CMP AccFeat Left]
    Add: Line: CMP EnableSignatureImage


    [Line: CMP EnableSignatureImage]
    Field: Medium Prompt, CMP EnableSignatureImage
    Local: Field: Medium Prompt: Info: "Enable Signature Print ? "

    Space Top: 1

    [Field: CMP EnableSignatureImage]
    Use: Logical Field
    Storage: EnableSignature
    Set as: If $$IsEmpty:$$Value then "No" else $$Value
    Sub Form: Cmp CompanySign Path: $$Value = "Yes"

    [Report : CMP CompanySign Path]

    Form : CMP CompanySign Path

    [Form : CMP CompanySign Path]

    Parts : Form SubTitle, CMP CompanySign Path
    Option : Small Size Form
    FullWidth : No
    FullHeight : No
    SpaceTop : 1
    SpaceBottom : 1
    SpaceLeft : 1
    SpaceRight : 1
    Background : @@SV_COSTCATEGORY
    Local : Field : Form SubTitle: Info : $$LocaleString:"Company Logo"
    Horizontal Alignment: Centre
    Vertical Alignment : Centre

    [Part : CMP CompanySign Path]

    Line : CMP CompanySign Path, CompanyLogo PathNotesOne

    [Line : CompanyLogo PathNotesOne]

    Field : CompanyLogo PathNotes
    Space Top : 1
    Space Bottom : 0.4

    Local : Field : CompanyLogo PathNotes: Set as : "- " + $$LocaleString:"Formats supported are BMP and JPEG."



    [Field: CompanyLogo PathNotes]

    Style : Normal Italic
    FullWidth : Yes
    Align : Left
    Skip : Yes
    Fixed : Yes

    [Line : CMP CompanySignPath]

    Fields : Medium Prompt, CMP CompanySign Path
    Local : Field : Medium Prompt : Info : $$Localestring:"Location of Signature:"

    [Field : CMP CompanySign Path]

    Use : Name Field
    Case : Normal
    Set as : $SignaturePath:Company:##SVCurrentCompany
    Storage : SignaturePath
    Setalways : Yes
    Width : @@LongWidth
    Max : 100
    Control : CMPLogoPathExist : ($$IsEmpty:$$Value OR Not $$IsFileExists:$$Value OR ($$FileSize:$$Value > 1048577))
    Modifies : SASignPath : Yes

    [System : Formula]

    CMPLogoPathExist : (If $$IsEmpty:$$Value then $$LocaleString:"Logo path cannot be empty." +
    Else If Not $$IsFileExists:$$Value then $$LocaleString:"Logo path specified is invalid or file not found." +
    Else IF $$FileSize:$$Value > 1048577 Then "File size exceeds 1 MB." +
    Else $$LocaleString:"Format Not Supported")

    [#Report: ChangeCurrentCompany]
    Local : Form : Modify Variables : On :Form Accept : Yes : SET : SASignPath:$SignaturePath:Company:##SvCurrentCompany

    [#Report: Voucher]
    SET : SASignPath:$SignaturePath:Company:##SvCurrentCompany

    [System:Variable]
    SASignPath : $SignaturePath:Company:##SvCurrentCompany

    [Variable: SASignPath]
    Type : String
    Persistent : Yes


    [System:UDF]
    EnableSignature : Logical : 1000
    SignaturePath : String : 1001



    [#Part: EXPINV Signature]

    Delete:Line: EXPSMP Signature
    Delete:Bottom Lines: EXPSMP Authourity

    Top Part : Test Image Part1
    Right Part : Test Image Part
    Bottom Part : Test Image Part2

    Vertical: Yes
    Height: 22 MMS
    Width: 35 MMS
    Delete: Border
    Option : Small Size Part
    Horizontal Align: Right
    Option : TraderInv AuthSignInfo : (@@IsDealerExciseSalesInvoice OR @@IsExciseMfgrRule11Invoice) AND NOT ##SATraderCommercial AND (NOT $$IsEmpty:##SAAuthorisedSignName OR NOT $$IsEmpty:##SAAuthorisedSignDesgn)



    [Part:Test Image Part]
    Line : Test Image Line

    Graph Type : ##SASignPath ;$SignaturePath:Company:##SVCurrentCompany
    Height : 15 mms
    Width : 38 mms
    Horizontal Align: Right
    Invisible : Not $EnableSignature:Company:##SVCurrentCompany ; If $$InPrintMode OR $$InMailAction OR ($$InExportMode And $$IsSysNameEqual:HTML:##SVExportFormat) then No Else Yes
    ;Height : If ((NOT $$InPrintMode) AND ($$InExportAction OR $$InMailAction)) Then 15% Else 8% Page

    [Part:Test Image Part1]
    Line : EXPSMP Signature
    Height: 4 mms

    [Part:Test Image Part2]
    Line : EXPSMP Authourity
    Height: 4 mms

    [Line:Test Image Line]
    Right Field: Test Image Field

    [Field:Test Image Field]
    Set as:""
    Alignment: Right
     
    KAUSHIK GALATHIYA likes this.


  3. Rajsrisrimal

    Rajsrisrimal Member


    Onkar sir,
    Can you edit this code for print user name in all reports and vouchers in tally prime. error screen short attached


    [#Part: CMP AccFeat Right]

    Add : Lines : At End : CMP UsrName1

    [Line: CMP UsrName1]

    Fields : Medium Prompt, CMP UsrNameFld1
    Local : Field : Medium Prompt : Info : "Print Company User Name ?"

    Invisible : NOT $IsSecurityOn
    Space Top : 0.4

    [Field: CMP UsrNameFld1]

    Use : Logical Field
    Type : Logical:Forced
    Storage : IsUserPrintOn
    Set always : Yes

    [Part: CmpUserNamePart]

    Line : CmpUserNameLine

    [Line: CmpUserNameLine]

    Field : Short Prompt, Name Field

    Local : Field : Short Prompt : Info : "User Name"
    Local : Field : Short Prompt : Invisible : NOT $$InPrintMode
    Local : Field : Short Prompt : Inactive : If @@checkUser OR NOT @@IsCmpUserOn Then Yes Else No
    Local : Field : Name Field : Set As : $$CmpUserName
    Local : Field : Name Field : Invisible : NOT $$InPrintMode
    Local : Field : Name Field : Inactive : If @@checkUser OR NOT @@IsCmpUserOn Then Yes Else No
    Local : Field : Default : Style : Normal Bold Italic

    [#Report: Trial Balance]

    Local : Form : Group Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Day Book]

    Local : Form : Day Book : Add : Part : At End : CmpUserNamePart

    [#Report: Bank Group Summary]

    Local : Form : Group Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Ledger Vouchers]

    Local : Form : Ledger Vouchers : Add : Part : At End : CmpUserNamePart

    [#Report: Group Summary]

    Local : Form : Group Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Group Vouchers]

    Local : Form : Group Vouchers : Add : Part : At End : CmpUserNamePart

    [#Report: Sales Register]

    Local : Form : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Voucher Register]

    Local : Form : Day Book : Add : Part : At End : CmpUserNamePart

    [#Report: Purchase Register]

    Local : Form : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Journal Register]

    Local : Form : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Debit Note Register]

    Local : Form : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Credit Note Register]

    Local : Form : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Cost Category Summary]

    Local : Form : Cost Category Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Cost Centre Summary]

    Local : Form : Cost Centre Summary : Add : Part : At End : CmpUserNamePart

    [#Report: CC Monthly Summary]

    Local : Form : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: CC Vouchers]

    Local : Form : Day Book : Add : Part : At End : CmpUserNamePart

    [#Report: CC Vouchers]

    Local : Form : CC Vouchers : Add : Part : At End : CmpUserNamePart

    [#Report: Cost Centre BreakUp]

    Local : Form : Group Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Ledger Monthly Summary]

    Local : Form : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Ledger Cost Breakup]

    Local : Form : Cost Category Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Group Cost Breakup]

    Local : Form : Cost Category Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Bills Receivable]

    Local : Form : Bills Outstanding : Add : Part : At End : CmpUserNamePart

    [#Report: Bills Payable]

    Local : Form : Bills Outstanding : Add : Part : At End : CmpUserNamePart

    [#Report: Ledger Outstandings]

    Local : Form : Ledger Outstandings : Add : Part : At End : CmpUserNamePart

    [#Report: Group Outstandings]

    Local : Form : Group Outstandings : Add : Part : At End : CmpUserNamePart

    [#Report: Item Monthly Summary]

    Local : Form : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Stock Vouchers]

    Local : Form : Stock Vouchers : Add : Part : At End : CmpUserNamePart

    [#Report: Stock Summary]

    Local : Form : Stock Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Movement Analysis]

    Local : Form : Movement Analysis : Add : Part : At End : CmpUserNamePart

    [#Report: Item Movement Analysis]

    Local : Form : Item Movement Analysis : Add : Part : At End : CmpUserNamePart

    [#Report: Item Voucher Analysis]

    Local : Form : Item Voucher Analysis : Add : Part : At End : CmpUserNamePart

    [#Report: Category Analysis]

    Local : Form : Movement Analysis : Add : Part : At End : CmpUserNamePart

    [#Report: Group Analysis]

    Local : Form : Movement Analysis : Add : Part : At End : CmpUserNamePart

    [#Report: Ledger Analysis]

    Local : Form : Movement Analysis : Add : Part : At End : CmpUserNamePart

    [#Report: Transfer Analysis]

    Local : Form : Movement Analysis : Add : Part : At End : CmpUserNamePart

    [#Report: Stock Ageing]

    Local : Form : StockAge : Add : Part : At End : CmpUserNamePart

    [#Report: Stock Journal Register]

    Local : Form : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Voucher Register]

    Local : Form : Voucher Register : Add : Part : At End : CmpUserNamePart

    [#Report: Physical Stock Register]

    Local : Form : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Godown Summary]

    Local : Form : Godown Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Stock Category Summary]

    Local : Form : Stock Category Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Stock Query]

    Local : Form : Stock Query : Add : Part : At End : CmpUserNamePart

    [#Report: BOM Estimate]

    Local : Form : BOM Estimate : Add : Part : At End : CmpUserNamePart

    [#Report: Sales Order Summary]

    Local : Form : Stock Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Purchase Order Summary]

    Local : Form : Stock Summary : Add : Part : At End : CmpUserNamePart

    [#Report: ReOrder Status]

    Local : Form : ReOrder Status : Add : Part : At End : CmpUserNamePart

    [#Report: ROItem Movement Analysis]

    Local : Form : Item Movement Analysis : Add : Part : At End : CmpUserNamePart

    [#Report: Inward Tracking Details]

    Local : Form : Tracking Details : Add : Part : At End : CmpUserNamePart

    [#Report: Item Outward Track]

    Local : Form : Tracking Details : Add : Part : At End : CmpUserNamePart

    [#Report: Outward Tracking Details]

    Local : Form : Tracking Details : Add : Part : At End : CmpUserNamePart

    [#Report: Statistics]

    Local : Form : Statistics : Add : Part : At End : CmpUserNamePart

    [#Report: Cash Flow]

    Local : Form : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Cash Flow BreakUp]

    Local : Form : Cash Flow BreakUp : Add : Part : At End : CmpUserNamePart

    [#Report: Funds Flow]

    Local : Form : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Funds Flow BreakUp]

    Local : Form : Funds Flow BreakUp : Add : Part : At End : CmpUserNamePart

    [#Report: List of Accounts]

    Local : Form : List of Accounts : Add : Part : At End : CmpUserNamePart

    [#Report: Negative Stock]

    Local : Form : Stock Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Negative Ledgers]

    Local : Form : Group Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Overdue Receivables]

    Local : Form : Bills Outstanding : Add : Part : At End : CmpUserNamePart

    [#Report: Overdue Payables]

    Local : Form : Bills Outstanding : Add : Part : At End : CmpUserNamePart

    [#Report: Memorandum Register]

    Local : Form : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Rev Jrnl Register]

    Local : Form : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Optional Vouchers]

    Local : Form : Day Book : Add : Part : At End : CmpUserNamePart

    [#Report: Post Dated Vouchers]

    Local : Form : Day Book : Add : Part : At End : CmpUserNamePart

    [#Report: Balance Sheet]

    Local : Form : Balance Sheet : Add : Part : At End : CmpUserNamePart

    [#Report: Profit and Loss]

    Local : Form : Profit and Loss : Add : Part : At End : CmpUserNamePart

    [#Report: Ratio Analysis]

    Local : Form : Ratio Analysis : Add : Part : At End : CmpUserNamePart

    [#Report: Multi Voucher Print]

    Local : Form : Multi Voucher Print : Add : Part : At End : CmpUserNamePart

    [#Report: All Ledgers]

    Local : Form : Ledger Vouchers : Add : Part : At End : CmpUserNamePart

    [#Report: Cash Ledger Vouchers]

    Local : Form : Ledger Vouchers : Add : Part : At End : CmpUserNamePart

    [#Report: Bank Ledger Vouchers]

    Local : Form : Ledger Vouchers : Add : Part : At End : CmpUserNamePart

    [#Report: Cash Multi Columnar]

    Local : Form : Cash Multi Columnar : Add : Part : At End : CmpUserNamePart

    [#Report: Group Ledger Vouchers]

    Local : Form : Ledger Vouchers : Add : Part : At End : CmpUserNamePart

    [#Report: Sales Vouchers]

    Local : Form : Day Book : Add : Part : At End : CmpUserNamePart

    [#Report: Purchase Vouchers]

    Local : Form : Day Book : Add : Part : At End : CmpUserNamePart

    [#Report: Journal Vouchers]

    Local : Form : Day Book : Add : Part : At End : CmpUserNamePart

    [#Report: Debit Note Vouchers]

    Local : Form : Day Book : Add : Part : At End : CmpUserNamePart

    [#Report: Credit Note Vouchers]

    Local : Form : Day Book : Add : Part : At End : CmpUserNamePart

    [#Report: Stock Journal Vouchers]

    Local : Form : Day Book : Add : Part : At End : CmpUserNamePart

    [#Report: Physical Stock Vouchers]

    Local : Form : Day Book : Add : Part : At End : CmpUserNamePart

    [#Part: PPR Sign]

    Add : Line : At End : CmpUserNameLine

    [#Part: PJR Sign]

    Add : Line : At End : CmpUserNameLine

    [#Part: PJR Sign]

    Add : Line : At End : CmpUserNameLine

    [#Part: PSV Sign]

    Add : Line : At End : CmpUserNameLine

    [#Part: EXPINV Jurisdiction]

    Invisible : No
    Add : Line : At End : CmpUserNameLine

    [#Line: EXPINV Jurisdiction]

    Invisible : $$IsEmpty:mad:@Jurisdiction

    [#Form: Normal INV Voucher]

    Local : Part : VCH Narration : Add : Line : At End : CmpUserNameLine

    [#Report: Attd Print]

    Local : FORM : Voucher: Add : Part : At End : CmpUserNamePart

    [#Report: Payslip]

    Local : FORM : Payslip : Add : Part : At End : CmpUserNamePart

    [#Report: PaySheet]

    Local : FORM : DSP PaySheet : Add : Part : At End : CmpUserNamePart

    [#Report: Payroll Statement]

    Local : FORM : DSP PaySheet : Add : Part : At End : CmpUserNamePart

    [#Form: CC Vouchers]

    Add : Part : At End : CmpUserNamePart

    [#Report: Payment Advice]

    Local : FORM : Payment Advice : Add : Part : At End : CmpUserNamePart

    [#Report: Payroll Register]

    Local : FORM : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Emp Ledger Breakup]

    Local : FORM : Emp Ledger Breakup : Add : Part : At End : CmpUserNamePart

    [#Report: Employee Summary]

    Local : FORM : Employee Summary : Add : Part : At End : CmpUserNamePart

    [#Report: EMP Monthly Summary]

    Local : FORM : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: Attendance Sheet]

    Local : FORM : Attendance Sheet : Add : Part : At End : CmpUserNamePart

    [#Report: Payroll Attd Vouchers]

    Local : Form : Attd Vouchers : Add : Part : At End : CmpUserNamePart

    [#Report: Attendance Register]

    Local : FORM : Monthly Summary : Add : Part : At End : CmpUserNamePart

    [#Report: PassportExpiry]

    Local : FORM : Payroll EmpCatTemplate : Add : Part : At End : CmpUserNamePart

    [#Report: GratuitySummary]

    Local : FORM : GratuitySummary : Add : Part : At End : CmpUserNamePart

    [#Report: GratuityDetails]

    Local : FORM : GratuityDetails : Add : Part : At End : CmpUserNamePart


    [System: Formula]

    CheckUser : $$CmpUserName = 'Tally User'
    IsCmpUserOn : $IsUserPrintOn:Company:##SVCurrentCompany

    [System: UDF]

    IsUserPrintOn : Logical : 10005

    ;;End of File
     

    Attached Files:




  4. Thany
     



  5. use this code
    [Part : CMP TallyShopFeatures Left]
     


  6. Rajsrisrimal

    Rajsrisrimal Member


    Thank you Kaushik, With your help, now working fine in prime
     


Share This Page