Skip to content

Instantly share code, notes, and snippets.

View piontas's full-sized avatar

Marek Piatek piontas

View GitHub Profile
-- OPTION 1
Removes ll previous tables of sales, shipments,invoices etc…
SET FOREIGN_KEY_CHECKS=0;
TRUNCATE `sales_flat_creditmemo`;
TRUNCATE `sales_flat_creditmemo_comment`;
#!/usr/bin/env python
import sys
import os
m = {
'I': 1,
'V': 5,
'X': 10,
'L': 50,
'C': 100,