Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 400
  • Last Modified:

Cash Register

Hello!

My name is Assaf and I'm a junior programmer in VB. I'm developing an application using VB and Access. It's a POS system that I'm working on. I have completed the entire application but I have no idea what is the source code required in order to open the cash register safe. I have a button on my form which says "Print". Once I click on it, the program should print the receipt and open the cash register safe. What should I do? please I will appreciate your response.

thank you in advance,
Assaf Lasry.

p.s. I'm using 2 types of cash registers. One with a serial post and one with a parallel port.
0
AssafL
Asked:
AssafL
1 Solution
 
smlewisvCommented:
Well, to get started:

The Cash register is basically a safe part of the memory ina POS that holds some data (mainly amount and additional data regarding with event treatement).

From what I know, the Cash Register is unique per POS (it means you will not have as mane cash registers as application you upload to the POS).

Depending on the plataform and the manufacturer of the POS, you will have basic instructions to deal with it.  I am not sure but the strcuture of the cash register should be as follows:

typedef struct
{
    uchar ecr_treatment_flag;
    uint  ecr_treatment_to;
    uchar display_amount[17];
    uchar ecr_amount[9];
    uchar amount_sign;
    uchar rec_buffer[253];
    uchar send_buffer[100];
    uchar ecr_treatment_status;
    uchar ecr_further_acq;
    uchar ecr_trt_ind;
    uchar version;
    uchar current_currency;
    uchar  payment_type;
}typ_cash_register;

You should find exact information in the documentation your POS' Provider have given to you.

So, the way you deal with this cash register is by reading its location (with some fuctions from your programming book, different from one POS to another), then you have to "cast" this address to a pointer previously declares of type typ_cash_register (or whatever name the manufacturer has given to the cash register) and then you trat ut like any structure.

This code is in C, but you could manage it with a class in VB. The problem is, that pointer management is not as accurate in VB as we would like to be, but you should be able to get it from the programmer's manual from your manufacturer...

Hope this gives you some ideas.

Regards
0
 
haggmarCommented:
Hello AssafL
I also work with developing a POS Retail System using vb and access, we have over 200 customers and it works fine no problem with printers and cah registrers safe if u have any questions mail me at martin.hegseth@responsretail.no
0
 
mlmccCommented:
learning
0
 
ChenChenCommented:
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now