init stock changes

- added OnOrder field
allow portal date format in stock fetch
fixed php error & set stock types