Created
June 9, 2016 16:49
-
-
Save henno/06fd11d3c5a12c7acde8f21ba9b1c374 to your computer and use it in GitHub Desktop.
Delete sales from Openbravo POS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delete from ticketlines; | |
delete from ticketlines; | |
delete from tickets; | |
delete from taxlines; | |
delete from payments; | |
delete from stockdiary; | |
delete from stockcurrent; | |
delete from reservation_customers; | |
delete from reservations; | |
delete from receipts; | |
delete from closedcash; | |
update products set stockcost=0, stockvolume=0; | |
update customers set curdebt=0, curdate=null; | |
drop table ticketsnum; | |
CREATE TABLE ticketsnum ( ID INT NOT NULL AUTO_INCREMENT , PRIMARY KEY (ID)) ENGINE = InnoDB; | |
INSERT INTO ticketsnum VALUES (DEFAULT); | |
drop table ticketsnum_refund; | |
CREATE TABLE ticketsnum_refund ( ID INT NOT NULL AUTO_INCREMENT , PRIMARY KEY (ID)) ENGINE = InnoDB; | |
INSERT INTO ticketsnum_refund VALUES (DEFAULT); | |
drop table ticketsnum_payment; | |
CREATE TABLE ticketsnum_payment ( ID INT NOT NULL AUTO_INCREMENT , PRIMARY KEY (ID)) ENGINE = InnoDB; | |
INSERT INTO ticketsnum_payment VALUES (DEFAULT); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment