Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print Credit not working via CUPS #12

Closed
Shaggs opened this issue Feb 11, 2018 · 23 comments
Closed

Print Credit not working via CUPS #12

Shaggs opened this issue Feb 11, 2018 · 23 comments
Assignees

Comments

@Shaggs
Copy link
Collaborator

Shaggs commented Feb 11, 2018

I'm trying to print a credit from credit look-up.

I find the person and click print but no dialogue comes up.

In settings I've got ticks for all except thermal printer settings

Output from terminal displays no error

StartOperations::INSERT_BALANCE Inserted the new BALANCE # 4 trigger grid action done... -SEARCHED TEXT: "123456 -- Test User 1" TRIMMED: "123456" getCreditInfoForClient ----> Got credit: 1 for $ 6 getCreditInfoForClient Getting CREDIT INFO FOR CLIENT ID: 2 .. create= true query size: 1 filterClientForCredit Getting credit info for clientId: 2 -- $ 6 getCreditHistoryForClient Got history for 2 SaleID: 31 Amount: 6 calculateTotalForClient Credit for 2 -- $ 6

Can screen shot of required

@hiramvillarreal
Copy link
Owner

Hi, thanks for report, I will check as soon I can.

@Shaggs
Copy link
Collaborator Author

Shaggs commented Feb 12, 2018

If possible can we change how credit cards are used. If credit card is selected put a pop up box saying "did card approve" with a yes / no.

If yes add to balance under.

If no tick box displaying reason
Declined
Canceled

As this would allow POS users to integrate an EFTPOS at a lower level.

@hiramvillarreal
Copy link
Owner

For the moment it only save the card data that you enter manually, it does not interact with the credit card terminal, it could be great if someone could help to integrate EFTPOS

@hiramvillarreal
Copy link
Owner

Ha by the way I remeber the internal credit report only can be printed using serial small recipt printers not cups, LemonPOS had that issue too, so than function it is into the to do list.

@Shaggs
Copy link
Collaborator Author

Shaggs commented Feb 12, 2018

This would still work for some EFTPOS as you can enter the amount on the EFTPOS this way it would be separate.

Example here

https://m.youtube.com/results?q=albert%20eftpos%20machine&sm=1

@Shaggs
Copy link
Collaborator Author

Shaggs commented Feb 12, 2018

@hiramvillarreal would a simple box as per my previous idea of small pop up box?

With credit print would the same print function be a copy / paste job?

@hiramvillarreal
Copy link
Owner

Those credit terminal works via BT?

@Shaggs
Copy link
Collaborator Author

Shaggs commented Feb 12, 2018

Not 100% sure as I don't have one.. When I seen them used the operator enters the amount in..

Think is used for those using older POS cash registers

@Shaggs
Copy link
Collaborator Author

Shaggs commented Feb 14, 2018

So I've had a look at trying to get the print button working but as I'm new to qt: I'm struggling to find it links. I've found the button but not the function for it.. Why can it be easy?

@hiramvillarreal
Copy link
Owner

Did you install de QTcreator IDE?

@Shaggs
Copy link
Collaborator Author

Shaggs commented Feb 14, 2018

Yes have installed it and found the button I need but can find the actual function to change it.

@Shaggs
Copy link
Collaborator Author

Shaggs commented Feb 16, 2018

I'ved manage to add A4 printing to the internal credit.

@hiramvillarreal if you could verify will then close this ticket if your happy

@Shaggs
Copy link
Collaborator Author

Shaggs commented Feb 17, 2018

Do after some more testing when you press pay now it prints a receipt do default printer with no dialog box.. I'll update shortly to include a dialog to cancel if not required

@hiramvillarreal
Copy link
Owner

Sure buddy thanks. I will looking to add the "small matrix printer" to for serials ttl

@Shaggs
Copy link
Collaborator Author

Shaggs commented Feb 17, 2018

I don't have a TTL printer but correct me if I wrong. I was under the impression that CUPS still handled TTL printers?

@hiramvillarreal
Copy link
Owner

Shaggs, if you go to Configure IotPOS>Printer
you would find a check box that say: "Print under demand" that check box is named printZeroTicket:
if (Settings::printZeroTicket()) {

I grab that setting to confirm printing using python scripts for serial TTL printers. Please see CONECTION.png to get an idea.

I thing think you could improve a lot those python scripts if you connect a push button, a led and see the relay working for the cash drawer(the TTL printers does not have the RJ connector to open cash drawers).

@Shaggs
Copy link
Collaborator Author

Shaggs commented Feb 17, 2018

OK I've run the CUPS A4 printer under that command.

We have 2 options change it and add a dialog box so yet can cancel it or I put an else statement in. Both an easy fix

@hiramvillarreal
Copy link
Owner

I like the dialog box dialog.

@Shaggs
Copy link
Collaborator Author

Shaggs commented Feb 17, 2018

@hiramvillarreal OK? That made no real sense so I'll make a dialog box on printZeroTicket

@hiramvillarreal
Copy link
Owner

It could be great if you could order a mini thermal printer from adafruit to see the python scripts working.

@Shaggs
Copy link
Collaborator Author

Shaggs commented Feb 18, 2018 via email

@Shaggs
Copy link
Collaborator Author

Shaggs commented Jan 18, 2019

Hi @hirmvillarreal I'm about to start looking at this again

@hiramvillarreal
Copy link
Owner

hiramvillarreal commented Jan 19, 2019

Hey buddy check this:
www.cashinotech.com
Check Products>panel printers.
I have 3 models from them, adafruit resell some of their models. most of them are compatible with its thermal printer library

@Shaggs Shaggs self-assigned this Jan 21, 2019
@Shaggs Shaggs closed this as completed Sep 29, 2019
@Shaggs Shaggs reopened this Sep 29, 2019
@Shaggs Shaggs closed this as completed Oct 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants