Printing directly from the form

Hi,

I have an unpleasant experience when it comes to this point with Dolibarr.

A client buys a product, you generate an invoice and upon payment, the invoice receipt has to be downloaded opened before i can print. This makes the process slow ad customer complaints about the time taking isnt a good sign for sales especially when the competition is high.

The purpose for the platform is to encourage and boost efficiency while getting better customer satisfaction.
Can print button be added to forms like invoice, stock movement etc for better process efficiency?

How can i also get my invoice to fit into the the POS printer paper - 80mm x 210 or 297mm?

Thank you

Hello,

If you want to use POS printer, you need to use TakePOS module :raised_back_of_hand:
image

@ksar,

Thanks for your help. You have really been supportive.

Would try it and revert back to you

Thank you

@ksar,

Thank you, i have tried it, however, not thekind of solution that we are looking for

I thought we could print our the regular invoice created through the POS module to be able to fit into the thermal paper size printer we have.

Besides we dont have the POS terminal for this

any other help from your side?

thank you

Hello,

Do not understand what you are willing to achieve.

Either you can print POS tickets, then you need to use POS
Or want to print A4 invoices, then normal printer is good.

Print normal invoice on POS printer doesn’t make seens to me, but if you would like to do that, you have to adapt/create your own PDF template Create a PDF document template - Dolibarr ERP CRM Wiki
But this will not change the process : PDF Generation → Open the PDF → Print

If you want a direct print button, I only know :
Direct Print 14 + Dolibarr Connector 14
Or you can try : PrintJS

@ksar

Thank you so much, well appreciated. would try the options

The software we used previously prints directly from the invoice and it adapts to the thermal printer setting

Maybe its something Dolibarr team may want to consider

But thanks for the option sir, grateful hearts :smiley:

@ksar,

Thank you once again.

I tried downloading the PrintJS and uploading the zip file to deploy. after that, i can no longer view the setup - Application module page. It just stays blank.

I can work on the application and navigate modules, but once i open setup and click on Application/module it loads and stays blank, meaning cant configure any other module cos cant see anything.

What can i do sir?

Thank you

Could this be an Apache error log? Don’t even know what the error is…

Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.82"
102.88.34.241 - - [14/Jul/2023:06:47:27 -0400] “GET /admin/dict.php?id=3 HTTP/1.1” 301 707 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.82”
142.93.12.42 - - [14/Jul/2023:09:00:52 -0400] “GET / HTTP/1.1” 301 707 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
146.190.108.15 - - [14/Jul/2023:10:14:09 -0400] “GET / HTTP/1.1” 301 707 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
205.210.31.146 - - [15/Jul/2023:18:06:48 -0400] “GET / HTTP/1.1” 301 707 “-” “-”
167.248.133.186 - - [15/Jul/2023:23:15:04 -0400] “GET / HTTP/1.1” 301 707 “-” “Mozilla/5.0 (compatible; CensysInspect/1.1; +https://about.censys.io/)”
24.199.101.148 - - [16/Jul/2023:03:58:35 -0400] “GET / HTTP/1.1” 301 707 “-” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36”
167.248.133.185 - - [17/Jul/2023:06:11:00 -0400] “GET / HTTP/1.1” 301 707 “-” “Mozilla/5.0 (compatible; CensysInspect/1.1; +https://about.censys.io/)”
198.235.24.165 - - [17/Jul/2023:23:48:31 -0400] “GET / HTTP/1.1” 301 707 “-” “Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: scaninfo@paloaltonetworks.com”
102.88.62.144 - - [18/Jul/2023:05:12:30 -0400] “GET / HTTP/1.1” 301 707 “-” “Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0”
102.88.35.234 - - [18/Jul/2023:06:05:46 -0400] “GET /index.php HTTP/1.1” 301 707 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.82”

and how can it be solved if at all this is an Apache error log and what is the error in there?

thank you

Hello,

May be PrintJS is not compatible with PHP V8…

This is an apache Access log not Error log

hello @Absmachin
i’m sorry i forget that module and forget to test it with php8 … let me try it

maybe you can help me with a cut of your apache error.log

that is a free (no cost) module then i maintain it during my non working time wich is … empty nowdays :slight_smile:

Éric

@ksar,

Thank you for the revelation about PrintJS.

How or where do i find Apache Error Log?

Seriously, i have learnt a lot this few days from you guys.

How or where will i get the Apache error Log pls

Thank you

@rycks ,

Thanks for reaching out to me on this.

Pls, i need a solution to this, we cant setup modules anymore. I dont know where to find apache error log, can you help with direction?

Operating system is Linux.

Thank you

ho really, excuse-me !!! did you have a FTP access to your dolibarr ? then just remove the directory htdocs/custom/printjs

and your dolibarr will come back :slight_smile:

@rycks ,

Thank you for this quick feedback

would contact you afterwards for a printing solution if you have a way forward.

let me try this and once its back, would revert and we discuss printing solution.

I appreciate this time you have given, stay blessed

And here is the fix version 1.0.2 i’ve tested it on dolibarr-17 + php 8.2, no more white page !

2 Likes

@rycks ,

Grateful Hearts from here, You made this day a light one.

Thank you, i can now view the modules and application.

Now, as per the printing,

  • Is there a way to add print button on invoice to be printed?
  • Can we also print without 1st downloading the document as it is currently with Dolibarr (Others have gone past this tho)
  • We currently use a thermal printer (80x210mm) setting, how do we make the current receipt for invoice to fit into that size, i Think Dolibarr is fixed to A4 size and isnt dynamic to sizes change.

Pls your kind help or suggestion

Thank you once again, i am happy :smiley:

Hello,

I can only answer the last part:

You need to create your own PHP template Create a PDF document template - Dolibarr ERP CRM Wiki

@ksar,

thank you.

would watch some videos to help me out as a guide

i appreciate you all

Hum,
excuse-me for the delay …

  • Is there a way to add print button on invoice to be printed?
  • Can we also print without 1st downloading the document as it is currently with Dolibarr (Others have gone past this tho)

→ that is the job of printjs, just clic on print icon and the file is send to the printer

  • We currently use a thermal printer (80x210mm) setting, how do we make the current receipt for invoice to fit into that size, i Think Dolibarr is fixed to A4 size and isnt dynamic to sizes change.

→ that is normaly for tickets, not invoices, please have a look at TakePOS …

@rycks ,
Thank you once again.

As per the PrintJS, like i mentioned, i had an issue that made the Module/Application to go blank.

Except i know how that can be resolved before experimenting again.

Would look at the TakePOS option.

You all have been great here i must admit.

Thank you

Hello,

@rycks has update the module to V1.0.2 that should work now.