Commit 1ba41d86 authored by Sarun Mungthanya's avatar Sarun Mungthanya
Browse files

issue masterfile truncate this file encod with tis-620

parent 6f7eb5eb
......@@ -127,9 +127,8 @@ class MasterFileController extends Controller
$partPatch = 'Part ' . $part++;
}
$patchCode = '';
if ($truncate && $part == 1 && $fileFormat->formatservice_ID == 196) {
if ($truncate && $part == 2 && $fileFormat->formatservice_ID == 196) {
$patchCode .= '$sql = "truncate table master_permissiongoods";
exec_query($sql);
if ($DBTYPE == "MSSQL") {
......@@ -145,9 +144,9 @@ class MasterFileController extends Controller
}
}
';
}else if ($truncate && $part == 1 && $fileFormat->formatservice_ID == 32) {
}else if ($truncate && $part == 2 && $fileFormat->formatservice_ID == 32) {
$patchCode .= '$sql="truncate table master_country";exec_query($sql);';
}else if ($truncate && $part == 1 && $fileFormat->formatservice_ID == 63) {
}else if ($truncate && $part == 2 && $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