From: Jesse P. <je...@st...> - 2004-10-12 20:15:12
|
Not that this ended up being a difficult fix, but Melvin was running = PHP5 and was bitten by this bug. I worked with him off list to find this = out and get him running a corrected version of the SelectOrderItems.php = scripts.=20 It is attached... Phil, as I mentioned before, a working 2.9 verion may = need to be posted, OR requirements should be posted noting that PHP5 is = not actually 100% supported in 2.9 and previous version. jesse -----Original Message----- From: Daintrees [mailto:p.d...@pa...] Sent: Tuesday, October 12, 2004 14:20 To: web...@li... Subject: Re: [Web-erp-developers] Re: [Web-erp-users] Order Entry It's to do with the treatment of strrpos and strpos between versions of=20 PHP - PHP 5 has this function re-written I side stepped the issue by = using a=20 function that worked in both versions the same way ... as I recall. Phil ----- Original Message -----=20 From: "Jesse Peterson" <je...@st...> To: <web...@li...> Sent: Wednesday, October 13, 2004 6:57 AM Subject: RE: [Web-erp-developers] Re: [Web-erp-users] Order Entry > Steve, please be mindful to have a grasp of the problem before posting = > things... this may simply confuse everyone or get 2 or 3 people doing = the=20 > same things, especially since you have posted a bit of code that is=20 > different than what Melvin on the Users list is using. I know you are=20 > trying to be helpful, but, in general, having to wade through emails = with=20 > lots of guesses & maybes, but little solid information is not horribly = > helpful. > > That said, I have his version of this, from the 2.9 version and have = not=20 > been able to recreate the error. The first thing I tested was this=20 > section, and it seems fine so far. I do wonder about the "+3", as 2.9 = does=20 > has it as "+1" - that may be the point of contention, but I need a = little=20 > more testing to tell for sure. I'm also in the middle of a work day,=20 > though, so it may not be in the next 30 minutes... > > If I find a problem for sure, I will let everyone know. > > > jesse > > > -----Original Message----- > From: skaill [mailto:sk...@ro...] > Sent: Tuesday, October 12, 2004 12:53 > To: web...@li... > Subject: [Web-erp-developers] Re: [Web-erp-users] Order Entry > > > Actually, looks like a variable may be assembling or disassembling the > parameter incorrectly. Possibly...the Select variable. > > $_POST['Select'] =3D $myrow["DebtorNo"] . " - ". $myrow["BranchCode"]; > ... > $_SESSION['Items']->Branch =3D > substr($_POST['Select'],strpos($_POST['Select']," - ")+3); > ... > $_POST['Select'] =3D = substr($_POST['Select'],0,strpos($_POST['Select']," - > ")); > > You get dashes and then they are stripped where used. Only I think = that > Branch Code with the minus sign in it is not being stripped correctly. = > I'm > thinking this info will help someone who has more experience in that = code > know what the issue is... > > Steve > > ----- Original Message -----=20 > From: "Melvin Sequera" <kat...@ya...> > To: <web...@li...> > Sent: Tuesday, October 12, 2004 11:11 AM > Subject: [Web-erp-users] Order Entry > > >> Good morning guys. >> >> Right now I'm trying to introduce a nuew order to be >> billing later. But the system throw me this error: >> >> The branch details for branch code: against customer >> code: 0130000200 could not be retrieved. Check the set >> up of the customer and branch. >> The SQL that failed to get the branch details was: >> SELECT CustBranch.BrName, >> CustBranch.BrAddress1,BrAddress2, BrAddress3, >> BrAddress4, PhoneNo, Email, DefaultLocation, >> DefaultShipVia From CustBranch WHERE >> CustBranch.BranchCode=3D'- 0130000202' AND >> CustBranch.DebtorNo =3D '0130000200' >> >> The question is why? I've configured the master >> customer record and configured two branchs, one of tis >> branchs has the code 0130000202 so I don't understand >> where is the problem. >> >> Could you help me please? >> >> Thanks in advance. >> >> Melvin >> >> _________________________________________________________ >> Do You Yahoo!? >> Informaci=F3n de Estados Unidos y Am=E9rica Latina, en Yahoo! = Noticias. >> Vis=EDtanos en http://noticias.espanol.yahoo.com >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: IT Product Guide on = ITManagersJournal >> Use IT products in your business? Tell us what you think of them. = Give us >> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find = out > more >> http://productguide.itmanagersjournal.com/guidepromo.tmpl >> _______________________________________________ >> Web-erp-users mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/web-erp-users > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on = ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give = us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out = > more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on = ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give = us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out = > more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > >=20 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give = us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out = more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Web-erp-developers mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/web-erp-developers |