aimeos / ai-controller-jobs

Aimeos e-commerce job controllers
https://aimeos.org
GNU Lesser General Public License v3.0
112 stars 17 forks source link

FIX: set timeframe in stock import #47

Closed mbrather closed 1 year ago

mbrather commented 1 year ago

Forum post "Stock Import // Timeframe"

aimeos commented 1 year ago

Thanks a lot! It's almost perfect but the column is optional and the setTimeframe() method allows only string and no null values. Therefore, can you change your added line to:

->setTimeframe( $this->val( $entry, 4, '' ) )

It uses an empty string as default value if no corresponding column is in the CSV file.

aimeos commented 1 year ago

Perfect! :-)