Author Topic: help : preprinted papers  (Read 10336 times)

icemax

  • Newbie
  • *
  • Posts: 18
help : preprinted papers
« on: September 29, 2012, 06:05:35 am »
 8) Hello everyone


I want to use a4 preprinted numbered papers  for "invoice"

1 - how can ?  :'(
2 - generic example template ?

thanks for all reply ..and .. congratulations,   :) real fantastic software

Massimo
(from sicily)
SambaPOS : the One

spanky

  • Full Member
  • ***
  • Posts: 152
Re: help : preprinted papers
« Reply #1 on: September 29, 2012, 06:39:42 am »
Just put as printer model html or text.
an example of a template could be this:

model header
<XCT 27, 51, 0>
<BMP>E:\disegno.bmp
<T>FATTURA
<F>-
<C00>Intestazione
<C00>Indirizzo
<C00>Città
<C00>P.IVA
<F>-
<J00>Fattura N°:{NOTE}|Data: {TICKET DATE}
<F>-
<L00>CLIENTE
<L00>Nome: {ACC NAME}
<L00>Indirizzo: {ACC ADDRESS}
<L00>{ACC NOTE}
<F>-
model line
<J00>- {QUANTITY} {NAME}| {TOTAL}|{TOTAL AMOUNT}
shape footer
<F>-
<R00>Euro
<J00>Imponibile:|[= Format (ToNumber (ToNumber ('{TICKET TOTAL}') - (ToNumber ('{TAX TOTAL}'))))]
{TAX DETAILS}
<J10>Totale:|{TICKET TOTAL}

Where ticket notes enter the invoice number.
Altrimondi you may create a new numerator called "Invoice"

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: help : preprinted papers
« Reply #2 on: September 29, 2012, 06:41:59 am »
Hello Sicily.
Massimo, there is no example for now but it won't be hard.

Create a new printer and it's type will be "Text Printer". "Line Character Count" will be the width of paper. It might be 80 for A4. It is important because SambaPOS calculates line alignments of lines with that value. You can fine tune it for your paper design.

Duplicate "Ticket Template" and add empty lines and spaces to fit it for your design. While testing your design you can create an additional printer and set it as demo printer. Enter a fake printer name and open Notepad application. The output will sent to notepad instead of printer.

Finally create a new print job, Enter button header as "Print Invoice". Enter a new mapping and choose your new printer and template. Open "Terminals", open default terminal and add this printjob in "printjobs" list. Now you should have a button titled as "Print Invoice" in your ticket.

Share your template and results here so it will be an example for new users :)

Thanks.

icemax

  • Newbie
  • *
  • Posts: 18
Re: help : preprinted papers
« Reply #3 on: September 29, 2012, 08:27:34 am »
 :) Thanks .. very much

Quote
Share your template and results here so it will be an example for new users :)

 .. . . absolutely !!

bye
SambaPOS : the One