webERP Forum
Fulfill Internal Stock Request - Email Fail - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: Problems / Bugs? (http://www.weberp.org/forum/forumdisplay.php?fid=8)
+--- Thread: Fulfill Internal Stock Request - Email Fail (/showthread.php?tid=8106)



Fulfill Internal Stock Request - Email Fail - VortecCPI - 02-23-2018

InternalStockRequestFulfill.php

This script is not updating closed field in stockrequest table.

Also... Sometimes it is not updating completed field in stockrequestitems table.

The second problem is inconsistent...
Also... Prices are not entered in the StockMoves table... Is this correct?



RE: Fulfill Internal Stock Request - VortecCPI - 02-23-2018

Something in the email section is causing the code to exit the foreach loop....
Failing on this line after the second item in the loop:

include('includes/htmlMimeMail.php');
I had SMTP email working but something is causing it to fail her so I had to remove the Inventory Manager email address from config.


RE: Fulfill Internal Stock Request - Email Fail - TurboPT - 02-23-2018

I wonder if trying to include that file (again) might be the issue ... or at least PART of the issue.

Can you try moving that include line up to the others at line 12 to see if that might make a difference?


RE: Fulfill Internal Stock Request - Email Fail - VortecCPI - 02-23-2018

Wow... That did the trick!
Of course now SMTP email no longer works...

Email directly from ERP is a bad idea in my opinion anyhow...


RE: Fulfill Internal Stock Request - Email Fail - TimSchofield - 02-23-2018

Paul (T) looking at this functionality there appears to be a lot of my work that Phil never took into his repository. When you get a moment we need to look at this.

Tim


RE: Fulfill Internal Stock Request - Email Fail - VortecCPI - 02-23-2018

Thanks guys. The Serial Number thing was the part that really mattered to me.