Commit 043cb8ca authored by Sarun Mungthanya's avatar Sarun Mungthanya
Browse files

issue truncate

parent 56faee97
......@@ -128,7 +128,7 @@ class MasterFileController extends Controller
}
$patchCode = '';
if ($truncate && $part == 2 && $fileFormat->formatservice_ID == 196) {
if ($truncate && $i__ == 0 && $fileFormat->formatservice_ID == 196) {
$patchCode .= '$sql = "truncate table master_permissiongoods";
exec_query($sql);
if ($DBTYPE == "MSSQL") {
......@@ -144,9 +144,9 @@ class MasterFileController extends Controller
}
}
';
}else if ($truncate && $part == 2 && $fileFormat->formatservice_ID == 32) {
}else if ($truncate && $i__ == 0 && $fileFormat->formatservice_ID == 32) {
$patchCode .= '$sql="truncate table master_country";exec_query($sql);';
}else if ($truncate && $part == 2 && $fileFormat->formatservice_ID == 63) {
}else if ($truncate && $i__ == 0 && $fileFormat->formatservice_ID == 63) {
$patchCode .= '$sql="truncate table master_container_type";exec_query($sql);';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment