Sign And Seal in invoice

Discussion in 'Tally Developer' started by abhinand vk, Jun 3, 2020.

    
  1. abhinand vk

    abhinand vk Active Member


    Please Support I want to change this to export mode only print sign & Seal
    [#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
    Top Part : Test Image Part12
    Right Part : Test Image Part
    Bottom Part : Test Image Part2

    Vertical: Yes
    Height: 30 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: EXPSMP Signature]

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

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

    Vertical: Yes
    Height: 30 MMS
    Width: 38 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 Part1]
    Line : EXPSMP Signature
    Height: 4 mms

    [Part:Test Image Part12]
    Line : blankline1
    Height: 8 mms

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

    Graph Type : ##SASignPath ;$SignaturePath:Company:##SVCurrentCompany
    Height : 13 mms
    Width : 38 mms
    Horizontal Align: Right
    Invisible : Not $EnableSignature:Company:##SVCurrentCompany ;If $$InPrintMode OR Not $$InMailAction OR (Not $$InExportMode And $$IsSysNameEqual:HTML:##SVExportFormat) then No Else Yes


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

    [Line:blankline1]
    Right Field: Blank Field
    Space Top : If $$InPrintMode Then 1 Else 1
    [Field:Blank Field]
    Set as:""
    Alignment: Right

    [Line:Test Image Line]
    Right Field: Test Image Field
    Space Top : If $$InPrintMode Then 1 Else 1


    [Field:Test Image Field]
    Set as:""
    Alignment: Right
     


Share This Page