CapSap / paddy-pronto-magento

0 stars 0 forks source link

task: add old receipts into mag #11

Closed CapSap closed 6 months ago

CapSap commented 7 months ago

for some reason there are a few orders w/o recipts in mag. okay so. what do i want to do? take a csv and input the receipt number one by one.

how do i get the range of orders to put the number in? i've got a link to all orders.

imagined steps:

  1. i should check a few from the 17th, 16th, and find out where it starts.
  2. then i should read the csv, put it in a js object
  3. then loop through array and input one by one into
  4. and then be all done!

How will i check progress / know when it fails?

CapSap commented 7 months ago

i've done a small refactor and tried to extract out some functions that i can.

but a problem is the scope of the pages- i think i need to leave them there at the top level within the main function?

could i pass the page into the login function?

CapSap commented 7 months ago

yes was the answer to above question. I had an annoying bug that i couldnt figure out. But it turned out that i wasn't importing the .env into the login functions. script is working now! but how to keep track of where im up to?

CapSap commented 7 months ago

i think i'll just just do manual batches of 30. this is a good opportunity to troubleshoot the navigating before waiting for search results problem.

CapSap commented 7 months ago

all done

12