From: skaill <sk...@ro...> - 2004-10-12 16:52:15
|
Actually, looks like a variable may be assembling or disassembling the parameter incorrectly. Possibly...the Select variable. $_POST['Select'] = $myrow["DebtorNo"] . " - ". $myrow["BranchCode"]; ... $_SESSION['Items']->Branch = substr($_POST['Select'],strpos($_POST['Select']," - ")+3); ... $_POST['Select'] = 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 ----- 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='- 0130000202' AND > CustBranch.DebtorNo = '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ón de Estados Unidos y América Latina, en Yahoo! Noticias. > Visítanos 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 |