Hello,
This code is for an import tool that imports an excel spreadsheet (named TAS). I am trying to add transaction support and I'm having trouble. I also have a couple of debugging questions and need an extra set of eyes.
(1) Need to commit transaction for when status reaches 'Imported' status. I have added this into the code but I don't know if it is correct. Currently, spreadsheets are also being added with 'Valid TAS' status as well.
(2) Same resource was loaded in 2 different TAS files, with 2 different plan types. It SHOULD overwrite the first one. I thought it might be related to the start date field, but after investigating, that is not the case.
(3)Import tool loads TAS data into a database and assigns SRT ID sequential based on changes in TERR GROUP. Have a situation which has occurred where the tool split a terr group into 2 different SRT ID. I cannot find any possible fix which has ultimately brought me to this forum.
Thank you for any help/advice. Please see attached text file with content from importer.php file.
importer.txt (14.8K)
: 8
This code is for an import tool that imports an excel spreadsheet (named TAS). I am trying to add transaction support and I'm having trouble. I also have a couple of debugging questions and need an extra set of eyes.
(1) Need to commit transaction for when status reaches 'Imported' status. I have added this into the code but I don't know if it is correct. Currently, spreadsheets are also being added with 'Valid TAS' status as well.
(2) Same resource was loaded in 2 different TAS files, with 2 different plan types. It SHOULD overwrite the first one. I thought it might be related to the start date field, but after investigating, that is not the case.
(3)Import tool loads TAS data into a database and assigns SRT ID sequential based on changes in TERR GROUP. Have a situation which has occurred where the tool split a terr group into 2 different SRT ID. I cannot find any possible fix which has ultimately brought me to this forum.
Thank you for any help/advice. Please see attached text file with content from importer.php file.

: 8