Commit 823b896b authored by Danny Froberg's avatar Danny Froberg 💬
Browse files

Mash everything together in the import directory and use proper V for vilma files

parent c37a7841
......@@ -463,7 +463,7 @@ foreach ( $desc_files as $filename ) {
} else {
// Bolist with updated articles.
$bo_destination_subdir = 'bolist_upd';
$bo_destination_unpack = $directory['base'] . $bo_destination_subdir . '/';
$bo_destination_unpack = 'I:/'; // $directory['base'] . $bo_destination_subdir . '/';
}
$bo_source_zip_path = $zipfil;
$bo_source_zip_name = $zipfile['filename'];
......@@ -477,7 +477,7 @@ foreach ( $desc_files as $filename ) {
$bo_source_zip_path = $zipfil;
$bo_source_zip_name = $zipfile['filename'];
$bo_destination = $directory['base'] . $bo_destination_subdir . '/' . $zipfil_namn;
$bo_destination_unpack = $directory['base'] . $bo_destination_subdir . '/';
$bo_destination_unpack = 'I:/'; // = $directory['base'] . $bo_destination_subdir . '/';
$bo_vilma_identifier = $bo_destination_unpack . 'F' . $zipfil_num . '.TXT';
}
// Parse and move everything where it needs to be
......@@ -488,7 +488,7 @@ foreach ( $desc_files as $filename ) {
if( $bo_destination_subdir !== 'other') {
// $bo_vilma_typ = identify_vilma_filter( $bo_vilma_identifier );
$bo_vilma_typ = $lev_konvert_vilma_type[$zipfile['levnr']];
$bo_vilma_identifier_new = $bo_destination_unpack .'F' . $zipfil_num.'_' . $bo_vilma_typ.'_'. $zipfile['levname'] . '.TXT';
$bo_vilma_identifier_new = $bo_destination_unpack .'V' . $zipfil_num.'_' . $bo_vilma_typ.'_'. $zipfile['levname'] . '.TXT';
rename( $bo_vilma_identifier, $bo_vilma_identifier_new);
prlog( $bo_vilma_identifier_new);
prlog ("Vilma typ: " . $bo_vilma_typ );
......
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