User Tools

Site Tools


resend_barcodes

Resend Barcodes

–Tables for barcode, prices live and product need to be update.

–Run following on barcode to see date time for barcode
SELECT TOP 100 * FROM BARCODE WHERE BARCODE = '@barcode'
ORDER BY DATE_TIME DESC

–Update Barcode, Price_live and Product tables with date parameter.

–Barcode
UPDATE BARCODE SET BARCODE = BARCODE WHERE DATE_TIME > '@Date'

–Product
UPDATE [dbo].[product] SET desc_long = desc_long
WHERE product IN (select product from barcode where DATE_TIME > '@Date')

–Prices_live
UPDATE [dbo].[prices_live] SET vat_code = vat_code
WHERE product IN (select product from barcode where DATE_TIME > '@Date')

resend_barcodes.txt · Last modified: 2016/06/20 09:01 by 82.148.34.141