Printing Issue

Discussion in 'Free Source Codes' started by Jayashri, Oct 18, 2021.

    
  1. Jayashri

    Jayashri Member


    Hi,,,,
    I am making invoice customisations but its shows some issues ... In the body of the Printing want to repeat these invoice.batch wise like that but it showing repeat of first stock item batch time wise Like that what i have to do now


    ;;;;;code;;;;;;


    [#Form: Sales Color]
    Option: OTS Customized Invoice: Yes

    [!Form:OTS Customized Invoice]
    Delete : Print
    Add : Print : OTS Custom Invoice

    [Report :OTS Custom Invoice]
    Use : Printed Invoice
    Delete: Form : Printed Invoice
    Form : OTS Custom Invoice

    [Form:OTS Custom Invoice]
    Space Top : 0.25 inch
    Space Right : 0.25 inch
    Space Left : 0.50 inch
    Space Bottom: 0.25 inch

    Part: OTS Opening Page Break, My Invoice Body Part
    Bottom Part: OTS Bottom Final part All

    Page Break : OTS Closing Page Break, OTS Opening Page Break

    [Part:OTS Closing Page Break]
    Lines :OTS Closing Page Break Line

    [Line: OTS Closing Page Break Line]
    Fields : Simple Field
    Local : Field: Simple Field : Set As : "Continued..."
    Local : Field: Simple Field : FullWidth : Yes
    Local : Field: Simple Field : Align : Right
    Border : Full Thin Top

    ;;;;;;;;;;;;;;;;;;;;;;;OTS Opening Page Break;;;;;;;;;;;;;;;;;;;;;;;;;;;

    [Part:OTS Opening Page Break]
    Part: OTS Invoice Title, OTS Body Coloumns Title
    Vertical: Yes

    [Part: OTS Invoice Title]
    Line: OTS Invoice Title


    [Line:OTS Invoice Title]
    Field:Name Field

    Local: Field: Name Field: Set as:"Size Wise Invoice"
    Local: Field: Name Field:Full Width:Yes
    Local: Field: Name Field:Align:Center
    Space Top: 0.25
    Space Bottom: 0.25

    ;;;;;;;;;;;;;;;;;;;;;;;INVOICE BODY STARTS;;;;;;;;;;;;;;;;;;;;;;;;;;
    [Part:OTS Body Coloumns Title]

    Line: MI Column Titles

    [Line: MI Column Titles]
    Use : IE Details
    Local : Field : Default : Lines : 2
    Local : Field : Default : Type : String
    Local : Field : Default : Style : Normal Bold
    Local : Field : Batch SRNo : Set as : "Sr No"
    Local : Field : Batch SiName : Set as : "Name"
    Local : Field : Batch Print Qty: Set as : "Billed Qty"
    Local : Field : Batch Print Rate : Set as : "Rate"
    Local : Field : Batch Print Amount : Set as : "Amount"
    Border: Thin Box

    ;;;;;;;;;;;;;;;;;;;;;;;;;Body Part;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    [Part : My Invoice Body Part]
    Part : IE Details
    Vertical : Yes
    Scroll : Vertical
    Common Border:Yes
    Float:No
    [Part : IE Details]
    Line :IE Details
    Repeat : IE Details :Inventory Entries.Batch Allocations


    [Line : IE Details]
    Field : Batch SRNo, Batch SiName
    Right Field : Batch Print Qty, Batch Print Rate, Batch Print Amount
    [Field : Batch SRNo]
    Use : Short Name Field
    Set as : $$Line
    Width : 4
    Border : Thin left

    [Field : Batch SiName]
    Use : Name Field
    Set as : $BatchName
    FullWIdth : Yes
    Border : Thin left

    [Field : Batch Print Qty]
    Use : Number Field
    Set as : $BilledQty
    Format : "NoZero,NoSymbol,Primary"
    Align : Center
    Set always : Yes
    Skip : Yes
    Border : Thin left

    [Field : Batch Print Rate]
    Use : Rate Price Field
    Set as : $Rate
    Border : Thin left

    [Field : Batch Print Amount]
    Use : Amount Field
    Set as : $Amount
    Border : Thin LeftRight



    ;;;;;;;;;;;;;;;;;;;;;;;;;;;Invoice Customization Code End;;;;;;;;;;;;;;;;;;;;;;
    [Part:OTS Bottom Final part All]
    Part:OTS Bottom Final part
    Vertical: Yes



    [Part:OTS Bottom Final part]
    Right Part: OTS Signature1
    Left Part: OTS Terms and Conditions1
    Border: Thick Box

    [Part:OTS Terms and Conditions1]
    Line: OTS01
    Width: 110 mm
    [Line: OTS01]
    Field: Simple Field
    Local: Field: Simple Field: Set as: "Customer's Seal and Signature"
    Local: Field: Simple Field: Style: O9B
    Space Top: 0.25



    [Part:OTS Signature1]
    Line: OTS For, OTS Authorised
    Border:thick left
    [Line:OTS For]
    Right Field: Simple Field
    Local: Field: Simple Field: Set as: "For" +" "+ @@CmpMailName
    Local: Field: Simple Field: Style: O9B

    [Line:OTS Authorised]
    Right Field: Simple Field
    Local: Field: Simple Field: Set as: "Authorised Signatory"
    Local: Field: Simple Field: Style: O9B
    Space Top:6 mm
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
     

    Attached Files:



  2. yacob

    yacob New Member


    Repeat : IE Details :Batch Allocations:Inventory Entries


    ;;;;;;;;;;;;;;; use this
     


  3. Mohan.S

    Mohan.S Member


    Dear Sir,
    one of our customers uses 3 datas in 1 tally. But in 1 data the invoice format is required below(Item GST Analysis invoice). Other 2 companies need default normal comprehensive invoices. but i will try with below code but not working properly, any one give solution for this.

    upload_2022-6-17_17-48-40.png
    see my code below: if company name contains vignesh ineed the invoice format above/

    [#System: Variables]
    SATaxAnalysisWithItem : if ##SVcurrentcompany Contains "Vignesh" then Yes else No


    [#Field: SATaxAnalysisWithItem]
    Use : Logical Field
    ; Set as : if ##SVcurrentcompany Contains "Vignesh" then Yes else No
    Set: if ##SVcurrentcompany Contains "Vignesh" then Yes else No
    Set Always: Yes
    Modifies : SATaxAnalysisWithItem
     


  4. yacob

    yacob New Member


    in add on features : add your yes no option
     


  5. Mohan.S

    Mohan.S Member


    ;;; Completed with below code

    [#Report: VCH Print Configure]
    Set: SATaxAnalysisWithItem : if ##SVcurrentcompany Contains "Vignesh" Then "Yes" Else "No"
     
    yacob likes this.


Share This Page