Math / Change Return For A Cash Register

Feb 6, 2011

Im getting mathematical errors. the part that I'm having problems with is, first, it doesn't add the tax to total the correct way. It adds it correctly if I put a dollar(1.00) but when I type one hundred dollars (100.00) it doesn't add the tax correctly. I am trying to compute and display the tax on the new subtotal. Second, it is not adding the correct change to the label in dollars, quarters, dimes, nickels, and cents. Third my arithmatic is not adding correctly when it has to do with the change due back. . Finally, forth I am also trying to do the following:

* add the total for this item to the order sub total and display the new subtotal.

* I have 2 clear buttons, one clears item, the other clears order the clear order button shoule clear out the change due and bordered label and have the subtotal reset to $0.00. The clear item should just clear out the quantity, unit price, and item total textbox.

* When the user has entered the amount of money tendered by the customer and click calc order button, the program should use the amount tendered and the current order total to compute and display the change due to the customer.

* the change due should be displayed in currency format in the readonly label, and should be displayed in terms of the number of dollars and coins due in the bordered label. [code]

View 3 Replies


ADVERTISEMENT

Create A Simple Cash Register?

Nov 21, 2011

My assignment this week is to create a simple cash register. The kicker here is that I have to have an input box pop up to accept the data. I know I need to use a Do Loop here, but I' not sure what the proper condition should be. Hitting cancel on the input box or inputting nothing ought to terminate the loop.

Private Sub btnCheckout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCheckout.Click
Static decPrice As Decimal
Static intCount As Integer
Static decSub As Decimal

[code]....

View 1 Replies

Cash Register Program - Opening Drawer?

Feb 9, 2010

I'm trying to convert an ancient cash register program to .net. Conquered everything else, but I can't pop open the cash register. Its connected to COM1, you are supposed to send a "trigger" text down COM1 that will cause the register to open.

Here is the .net code.
MsgBox("Opening Drawer")
Dim port As System.IO.Ports.SerialPort
port = New System.IO.Ports.SerialPort("Com1")
port.PortName = "COM1"
port.BaudRate = 9600
[Code] .....

I get msgboxes "Signal Sent", "Done Pop Drawer". It just won't pop. It's an MS-Cash Drawer (EP125KC). Definitely connected to COM1, definitely has power. Chr(65) is the old code used to pop drawer and it works:
Open drawerComPort For Output Access Write As #1
Print #1, Chr$(65); "A";
Close #1
The above code worked successfully. The root problem was caused by a reversed power cord (negative was on the wrong side).

View 5 Replies

Make A Cash Register Program That Uses An Inputbox?

May 7, 2012

I need to make a cash register program that uses an inputbox.

The outcome should be like this example[code]...

It should open a input box asking for the amount of each purchase and loop until all purchases have been entered

View 2 Replies

Subtraction - Program That Sims A Cash Register ?

Feb 17, 2009

I am writing a program that sims a cash register. Everything works fine except VB will not compute subtraction. If I put a replace - with + everything works. What could be the cause of this?

Here is part of the

'Convert input into number
isConverted = Double.TryParse(owedTextBox.Text, NumberStyles.Currency, NumberFormatInfo.CurrentInfo, owed)

[CODE]...

***********If owed is 10 and paid is 5, it returns 0, but if I change the - to either a + or *, it returns the expected value

View 3 Replies

Develop Cash Register Features In Visual Basic 2010

Jan 27, 2012

how to develop a cash register app. in visual basic 2010.

View 3 Replies

Cash Register Program With Separate Forms For The Items And The Display Form?

Jan 15, 2011

I have this cash register program with separate forms for the items and the display form. The code works untill you press the button 2x. It says 5.5 + 5.5 = 11.5??? Can you fix this code?

CashReg.ListBox1.Items.Add("Item 1")
Dim cash As String
cash = (5.5)[code]....

View 3 Replies

Reate A Socket Class In Project To Send Data To Ecr (electronic Cash Register)?

Jan 9, 2012

I am trying to create a socket class in my project to send data to ecr (electronic cash register).Ecr comes with software that listens for commands on port 3535. Command are in forms of XML Files. It has only one catch, I must close the connection on socket, so the ecr would know when to process the command and respond. Since I only send one command at a time,I need the simplest solution I can get.

How it works:I create the socket and connect it to 192.168.1.67:3535 I start

client.BeginReceive

Then I send the command with

client.BeginSend

And I do a

client.Disconnect(True)

so I can get response from ECR.And in 8 of 10 times it works just fine. The problem is this few times it doesn't work.At that time I cant receive anything because it reports that the client is not connected in ReceiveCallback but it still manages to send the data to ECR just fine. The bill comes out on the ECR, but I get no answer about what happened.

I call the class like this:

Dim dre As New HCPSocket
Result2 = dre.Otkucaj(Command1, "192.168.1.67")
Debug.Print(Result2)
dre = Nothing

End the class looks like this:

Imports System
Imports System.Net
Imports System.Net.Sockets

[code]....

View 1 Replies

Forms :: Auto-Detect BarCode Scan Entry OR Manual Entry - Cash Register?

Sep 8, 2009

i am pulling together a cash register that will allow both bar code product entry and manual key entry.imagine if you have a tin of beans in front of you, in a small corner shop they would probably type "47" and then hit "Produce". Fairly straight forward as I have the button Produce to act upon my code and update my salestrans.mdb but,if you scan the bar code I want the same form to handle both 'real' actions, (i assume that keyboard emulation barcode scanner includes "ENTER" after providing 13 digits)....

Q. in perhaps a long winded way i want to know how to kick off an event based on the "ENTER" key being activiated by the barcode scanner)?i do not want to have to hit any buttons if i am scanning bar codes.

View 9 Replies

Why Do Simple Math Operations On Floating Point Return Unexpected (inaccurate) Results In .Net And Python

Oct 20, 2009

x = 4.2 - 0.1
vb.net gives 4.1000000000000005
python gives 4.1000000000000005
Excel gives 4.1
Google calc gives 4.1

What is the reason this happens?

View 4 Replies

DataGrid Columns Math - Result Return The Answer In The Unbound Yield Column For That Row Represented As A Percentage?

Sep 20, 2010

I have a table in a data grid the columns are bound to the columns...

SQFT QTY WIDTH LENGTH

i also have added into the datagrid an unbound column called Yeild%.what i'm trying to do is the following formula

SQFT / (QTY * (width * length / 144) and have the result return the answer in the unbound yield column for that row represented as a percentage

So if SQFT = 178 QTY = 2 Width = 144 Length = 102 answer would be 0.87 (rounded)

so this would be 87%

View 7 Replies

Runtime Change Math Type Font Using .net?

Nov 29, 2010

I am using vb.net framework 3.5. I am developing an windows application in that i am displaying the Richtextbox data on Web browser. But in my rtf data contains the Math type functions which are not properly displayed in the web browser. For changing the font i used the method like put the data in the richtextbox change the size and font and again update it . But it's not working for math type.

View 2 Replies

VS 2010 Hmwk - Display The Largest And Smallest Using Math.max - Math.min

Mar 5, 2012

well i am having a couple of issues with this particular homework problem and this is my first programming class so there is probably quite a few mistakes well the homework problem is to take three double values entered by a user and display the largest and smallest using math.max and math.min and display the smallest and largest so i thought i could use a listbox and take the values that went to the listbox and assign variables to each so i can try to use each variable in the math.max and min but im not making it to far and i actually might be way off

[Code]...

View 4 Replies

Download Visual Studio And The 30 Day Period To Register Expired And I Cant Start It To Register?

Feb 25, 2010

I downloaded visual studio and the 30 day period to register expired and i cant start it to register.i uninstalled it and reinstalled it and it still wont let me start it up to register it. what can i do to get the key?

View 3 Replies

Register An Automation Server In The ROT (Runtime Object Table) Using IRunningObjectTable.Register?

Feb 1, 2007

Does anyone have an example of how to register an automation server in the ROT (Runtime Object Table) using IRunningObjectTable.Register and how to revoke it using IRunningObjectTable.Revoke?

View 1 Replies

C# - If Not Check Then Add To Cash

Sep 9, 2011

Basically, the code checks if the amount being entered is check. If it is check, insert the check value into chckval. If it is cash insert the cash value into cashval. So far, it is half working. It inserts the check into the check fieldname and inserts 0 into cash fieldname. What is not working is inserting cash into cash fieldname if the money is cash. It inserts the cash into cash fieldname as it should but it also inserts the same amount into check fieldname. This is not good. If it is cash and it is inserted into cash fieldname, I want check value to be 0.

Here is the latest code.
For x = 1 To 5 Step 1
dedval = Gridview1.FindControl("ded" & CStr(x))
chckval = Gridview1.FindControl("chck" & CStr(x))
chcknumval = Gridview1.FindControl("chcknum" & CStr(x))
checkboxval = Gridview1.FindControl("chckBox" & CStr(x))
[Code] .....

I think there is some issue with the
IF chckval.Text <> "" And Not checkboxval.Checked Then
statement

View 1 Replies

Change Return Type Of A Function On Error?

Jan 17, 2011

if i got a function with a try cath block inside and the function should return an integer.how would i do it that the function can return me a the error message?public function test() as Integer

[Code]...

View 5 Replies

Converting To Cash Using Str.format?

Apr 5, 2009

I still have troubles understanding what the deal is with the whole String.Format("{0:C}" thing. How would I implement it into this code and how exactly does it work?

Public Class Form1
Private Sub computedeposit(byval dblrate As Decimal, ByVal dblfutureval As double, ByVal intyears As integer, byref dbldeposit as double)
dblrate = dblrate / 100
dbldeposit = dblfutureval / ((1 + dblrate) ^ intyears)

[code].....

View 13 Replies

Open USB Cash Drawer?

Dec 4, 2011

I have a USB cash drawer that acts as a com port (lets assume com2)

any ideas on how I can open it? there is not really any documentation with it.

View 8 Replies

VS 2010 Why DataSet.HasChanges() Return False Unless Position Change

Apr 13, 2011

Update problem : When i check DataSet.HasChanges() it return false, unless position change (move next or previews) it return True.

After position changes every things is OK and updated!!

this is the

PHP
Private MyAdapter As New OleDbDataAdapter
Private MyDataSet As DataSet

[Code]....

View 3 Replies

Check Whether Or Not The Cash Drawer Is Closed

Dec 16, 2009

I am still working on a POS application in VB.Net 2003. What I need to do is check the state of the cash drawer. I want to make sure the drawer is closed before a cashier is allowed to move on to the next sale. The cash drawer I am using is a MMF ECD200 (not sure if this will make a difference). Here is the code I am using to open the drawer:

[Code]...

View 12 Replies

Cash Bill Print For Sales Receipt?

Jan 14, 2010

I want to try to make a program for the Bill Print.

View 1 Replies

Make A POS Or Point Of Sale With Cash Tendered?

Mar 30, 2010

bcoz i have an assignment regarding in POS or point of sale....

View 9 Replies

Create A Database Application That Will Keep Records Of All Cash Transactions

Aug 2, 2010

I am trying to create a database application that will keep records of all cash transactions. how to print a cash receipt to give it to the customer?

View 2 Replies

Open Cash Drawer For Receipt Printer TM-U220?

Apr 29, 2010

Prob 1: While the printing is going on, the whole system hangs. I would like the printing to go on while in spooling and not monitor its status.

Prob 2: To solve Prob 1, I removed the try..catch block and all the error messages BUT.. now my cash drawer does not OPEN.

Below is the whole set of code I used for testing. It is really very urgent request. (This code makes the whole system hang till printing is complete)[code]...

View 7 Replies

2005 Crsytal Report - Create A Receipt For Every Cash Or Credit Transaction Of A Client

Jun 2, 2011

I got a big problem in using crystal report in vb.net 2005. im creating a sales and inventory system for softdrinks dealer. so i need to create a receipt for every cash or credit transaction of a client. but i dont have any idea how to use crystal report. how can i make a receipt on crystal report in vb.net 2005.

View 4 Replies

.NET 08 How To Click On This <li><a Href="register.php" Rel="nofollow">Register<

Feb 5, 2011

<li><a href="register.php " rel="nofollow">Register</a></li>

Driving me nuts..I'm trying to create forum type software but I can't seem to figure out how to programmically click on this link

Tried by id and by tag but there isn't one for this...what is the work around for this?

View 1 Replies

PMT Function - 20% Down Payment 2.5% Closing Cost Cash Required To Close The Loan Principal And Interest

Feb 8, 2008

I need to code this with 20% down payment 2.5% closing costcash required to close the loan Principal and interest can be computed by call the PMT function, terms 30 years (360 months 2.5% Property tax 0.8% insurance monthly payment is equal to the sum of the principal and interest, property tax and insurance.

I have attached my project.

I am not getting any input from my teacher and the book does not say much about this

Attached File(s)

View 14 Replies

[VB 2010] Return Alert Message If SQL Query Return No Records

Dec 12, 2011

I use this code to return records in a DataGridView:

[Code]....

View 3 Replies

Return An Object As The Return Value Through A RealProxy Transparent Proxy?

Oct 7, 2010

I'm working up a system where I plan on using RealProxy objects to enable intercepting method calls against a set of objects, handling the call, and then returning appropriate results. This works just find for simple return types like strings or ints, but I can't seem to return objects from the RealProxy.Invoke method. Everything works. I get no errors, but the returned value is always NOTHING, instead of an object.

I've worked up the smallest sample code I could, and have included it below. Essentially, just call RPtest and single step through. The code creates a simple object, RPTestA, with a string field and an object valued field It then retrieves the string

[Code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved