Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAdapter Table content gets dropped!
Message
From
09/11/2017 03:17:39
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
CursorAdapter Table content gets dropped!
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
SAMBA Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01655463
Message ID:
01655463
Views:
97
Hi All,

This is by far the weirdest that has happened to me.

In my POS app, I have the following cursoradapters - ORDERHDR, ORDERDTL (Orders header and detail), INVHDR, INVDTL (Invoice header and detail)

Whenever a customer orders something, it is recorded into both ORDERHDR and ORDERDTL cursors.

When order has been read out and confirmed, it is now SAVEd (read: TABLEUPDATE()/ MySQL COMMIT is done), and the ORDER details in ORDERDTL is appended into INVDTL (invoice details) which in turn is also SAVEd ((read: TABLEUPDATE()/MySQL COMMIT is done). The header tables INVHDR and ORDERHDR are of course also SAVEd together with them; the header records contain info such as child totals and record count.

All is well, but there are days when the daily sales totals do not tally - upon closer examination, we found out that a couple of orders/invoices have no ORDERDTL and INVDTL child records! The header records though show that it had recorded summary totals which come from both ORDERDTL and INVDTL records!

There are three POS machines; the common thing is that it happens on the 2nd and 3rd machines. We also noticed that this happens consecutively (two or three in a row) if it ever does. There are days that are incident free though.

I do not know if this is a factor, but the 2nd and 3rd machines were assembled from old PC parts.

My question is, how is this even possible?
Next
Reply
Map
View

Click here to load this message in the networking platform