Warning 907 Help

One of employee delete some quantity discount for item some time ago then. I get this message whenever POS sell related item. Need help please.....

Warning 907: The item quantity discount was not found in the database. Do you wish to continue?

Reply to
Brutus1214
Loading thread data ...

Hi Brutus1214 - deleting the discount scheme will not remove it from the item properties; run this query to view your current discount schemes and items that have a discount scheme that is no longer active (or in your case has been deleted)

select * from quantitydiscount

select itemlookupcode, description, quantitydiscountid from item where quantitydiscountid not in (select id from quantitydiscount) and quantitydiscountid 0;

The first query will show you your current (active) list of discount schemes; the second will show you a list of items that have a discountID that is NOT in your current list of discount schemes.

You can use an update query to set their discountIDs to zero -

**BACKUP FIRST** and consider doing this after hours.

update item set quantitydiscountid = 0 where quantitydiscountid not in (select id from quantitydiscount) and quantitydiscountid 0;

This should remove the warning as you are "resetting" their quantitydiscountIDs to "zero" (as in "none") - Hope this helps......

"Brutus1214" wrote:

Reply to
convoluted

Thanks Bunch. It worked and fixed problem right away.

Brutus1214

Reply to
Brutus1214

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.