Support multi-line csv fields (import)
I was trying the import functionality (from homebox), and it failed because the file has at least one multi-line field. The field is properly enclosed in double-quotes. Checked the import code, and it is a bit naive :) Though the format is pretty simple and easy to get started with, full support does require some effort, which may not be worth it - particularly if a mature library already exists (not a js developer though...)
Being able to map the columns directly in the ui is a great idea! I hope adding some pre-made selection templates is in the pipeline...
Minor issues aside, I am quite enjoying using this.
We'll take a look! Out of curiosity what field was it?
And implementing a smoother import process from snipe_it and homebox is on our punch list :)
Great, on both counts :) The field was "HB.description", but "HB.notes" and "HB.warranty_details" can also have multiple lines... Thanks
Great thanks!
we'll address these together! https://github.com/DumbWareio/DumbAssets/issues/78
This should be addressed in #91
Just made a quick test, and it worked... Issues:
- some of the dates are off by a day...
Had a quick look at the code and I appears to be the conversion to/from excel date.
I added
cellDates: trueto the XLSX.read() andvalue.toISOString()in the parseExcelDate() function - seems to have fixed it... - "hb.warranty_details" - I can understand making "hb.description" and "hb.notes" aliases for the notes field, but "hb.warranty_details"? Shouldn't it map to the warranty field?
We'll look at the date conversion, thanks for the troubleshoot!
Warranty details... probably? Our comparable field is "warranty scope" which we take as "parts only" "limited" etc as opposed to a potential multi line description. BUT we could reevaluate that