Re: [Care2002-developers] Moving toward zend...

2015-02-13 Thread Robert Meggle
Hi Beth, 

Tanks for the question. 

You're right. MVC is MVC - these are patterns. Next to MVC there is
MVVM, MVP pattern. etc... enough from boring theoretical topics like
that. Maybe we should give here another, more practical, scope on it?

The basic idea to give a try to ZendFramework (verison 2?) was to
release a more business ready survey. And there is a need for, as you
mentioned in your mail: The different need of each implementation. 

There is always the need to change the front end. Forms as well as maybe
of the workflow itself. When we look into the existing code of care2x
there is just one option to do this: To change the core. Example would
be if you look to the concept of how smarty templates are integrated
right now. It is not inherited. It will point to a major
gui-smarty_templates subfolder outside of each module. Same on the
classes itself, it is not inherit core classes and been used just in
each module, it is a class stored outside of a module container. 

That makes it hard to keep in touch with the care2x main development as
well as when you have the need to satisfy another hospital with same
requirements. But to have the option to change all for each facility is
almost the reason why care2x is been used worldwide. 

We did several tests with ZF. Main target was always divide into care2x
core classes and its modules. Challenge was to have at the end a release
what has just individualisation on each module, not on basic core
classes. 

Disillusioned I came back to the basic concept to give up ZF rebase
for the moment. It would represent nothing else than a start from
scratch. 

What could be the alternative? To remember the initial idea and why we
had this idea moving to a MVC based PHP framework. To have a real
modularisation. 

A logically step would be (among other things): 
- to bring all the smarty tpl files back to the corresp. modules 
- to bring all the module classes back to the corresp. modules 
- to review the whole registration and admission package and create a
real module out of it. 
- etc. 

And if you have ever tried to use Postgre as DB and not to MySQL we do
have another major topic. 

Also to review of the whole code is urgent. Keywords here:
register_globals=off, deprecated features in PHP 5.3.x...). These are
show stoppers if you try to move in that way you explained in your
mail. 

But IMHO there is no real need of a new framework. There should be more
flexible architecture. Nothing else ;-)

As a summary: To go for an business ready framework: Definitely yes!
But for new projects, not for care2x now. We do have our framework what
we can improve. IMHO. 

Thanks
 Robert 

Am Donnerstag, den 12.02.2015, 11:23 -0500 schrieb Beth Lesko:
 I appreciate that working on the elct version may improve the version
 Selian and HLH (the only 2 hospitals I've worked with in TZ) could
 benefit from. That version extends beyond the trunk to suit the needs
 of TZ. Ideally, I work all the enhancements back into the original
 core tables with options to localize it - in plugin fashion. It
 occurred to me that basing options on locality could be implemented
 with include statements throughout the system, like, for instance, in
 registration in the regions/address area. A lot of what is considered
 a branch because it was added in a specific country are actually just
 enhancements to the modules that all countries could benefit from. The
 code isn't really set up for plugin capability, which is why I believe
 you've embarked on the zend idea. Include statements might not be
 easily migrated into the zend version though. Another idea could be
 if/case statements in the core module (controller) files that
 re-routes commands to either another core module file or just
 another /gui (view) file. I suppose our classes are basically models,
 so maybe working with the original classes and adding classes that
 extend them is where the re-routing happens. Ideally, any work done
 from here on out works us toward the mvc method and you can see I am
 reaching for a clearer understanding of the concepts involved in this
 task.
 
 
 I'm more familiar with Yii than I am with zend, but mvc is mvc. Yii
 has a utility that allows you to throw a database at it and it
 automatically creates a working directory of models, views and
 controllers. I wonder if that couldn't be a time saver - editing the
 Yii results to work with zend as opposed to writing them all from
 scratch... Does zend have this capability? 
 
 
 Could anyone elaborate on how best to curb my coding toward zend? 
 
 
 What are some other reasons for heading into the zend direction? I
 don't mean as opposed to Yii, but rather as opposed to cleaning up
 the code as it is. After all, it works and clearly it conforms in many
 ways to a well working mvc system, does it not? Aren't all the pieces
 here already?
 
 
 Could anyone elaborate more on what we hope to achieve by moving into
 zend? I did see a pretty recent thread about plans for 

Re: [Care2002-developers] Care2002-developers Digest, Vol 83, Issue 2

2015-02-13 Thread Beth Lesko
I asked the rpc call to send back details on errors by adding

if($result-faultCode() != 0)
{
//  RPC failed!
echo RPC mechanism failed:  .$result-faultString() . \n B Y E\n;
exit( 99 );
// call to system.multicall failed
return $result;
}

to xml_rpc.inc

and there is a currency code error. Do I need to send currency code?

---INFLATED RESPONSE---[1659 chars]---
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;html
xmlns=http://www.w3.org/1999/xhtml;headtitle/titlelink
rel=shortcut icon href=/favicon.ico /link rel=icon
href=/favicon.ico /meta http-equiv=Content-Type
content=application/html; charset=utf-8 /link
href=/css/jelly/default.css rel=stylesheet type=text/css
/script type=text/javascript src =
/javascripts/MiscFunctions.js/script/headbodytable
class=callout_main cellpadding=0 cellspacing=0trtd
colspan=2 rowspan=2table class=main_page cellpadding=0
cellspacing=0trtdtable width=100% border=0 cellpadding=0
cellspacing=0 trtd/td/tr/tablediv
class=errorbDatabase Error/b : br /Cannot add or update a
child row: a foreign key constraint fails
(`leskoweb_weberpdemo`.`debtorsmaster`, CONSTRAINT
`debtorsmaster_ibfk_2` FOREIGN KEY (`currcode`) REFERENCES
`currencies` (`currabrev`))/divdiv class=errorbDatabase SQL
Failure/b : The SQL that failed wasbr /INSERT INTO debtorsmaster
(debtorno, name, clientsince, holdreason, paymentterms,
customerpoline) VALUES (14, Akbar Aan, 2015-02-13, 1, CA,
0) br //div/td/tr/table/td/tr/tablep
style=text-align:rightFriday, 13/02/2015 | 14:51/ptable
width=100% id=footertrtd class=footera
href=http://www.weberp.org; rel=externalimg src=/ width=120
alt=webERP title=webERP Copyright copy; webrp.org - 2015
//abr //td/trtrtd class=footerwebERP v4.07.6 Copyright
copy; weberp.org - 2015/td/tr/table/body/html
---END---


On Fri, Feb 13, 2015 at 6:43 AM, 
care2002-developers-requ...@lists.sourceforge.net wrote:

 Send Care2002-developers mailing list submissions to
 care2002-developers@lists.sourceforge.net

 To subscribe or unsubscribe via the World Wide Web, visit
 https://lists.sourceforge.net/lists/listinfo/care2002-developers
 or, via email, send a message with subject or body 'help' to
 care2002-developers-requ...@lists.sourceforge.net

 You can reach the person managing the list at
 care2002-developers-ow...@lists.sourceforge.net

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of Care2002-developers digest...


 Today's Topics:

1. Re: webERP Integration (george maina)
2. Moving toward zend... (Beth Lesko)
3. Re: Moving toward zend... (Robert Meggle)


 --

 Message: 1
 Date: Thu, 12 Feb 2015 17:43:03 +0300
 From: george maina georgemain...@gmail.com
 Subject: Re: [Care2002-developers] webERP Integration
 To: bethle...@gmail.com, care2002-developers@lists.sourceforge.net
 Message-ID:
 CAE6Go6Xxj26z3cwEc1tmxkixbuv4R1tKTa8=Nqh3DdrG=
 1y...@mail.gmail.com
 Content-Type: text/plain; charset=utf-8

 Hi
 Check if the The columns being sent meet the requirements of the columns in
 debtors master in weberp, some columns dont allow nulls


 George


 George Maina
 P.O. Box 100717-00101
 Nairobi
 +254720692433

 On Thu, Feb 12, 2015 at 4:21 AM, Beth Lesko bethle...@gmail.com wrote:

   [image: Boxbe] https://www.boxbe.com/overview bethle...@gmail.com is
  not on your Guest List
  
 https://www.boxbe.com/approved-list?tc_serial=20400146418tc_rand=225381841utm_source=stfutm_medium=emailutm_campaign=ANNO_MWTPutm_content=001token=gOs96gvV5kyCf%2BRXyrk0OmcU6dlCnHMYysC1EzOFgCNMfq9zJB4hExuOoCJ8HO8Vkey=rcp3U4o5b5zlItUOAlhdOxfk12XiHBWF04ZDQe9n1sQ%3D
 
  | Approve sender
  
 https://www.boxbe.com/anno?tc_serial=20400146418tc_rand=225381841utm_source=stfutm_medium=emailutm_campaign=ANNO_MWTPutm_content=001token=gOs96gvV5kyCf%2BRXyrk0OmcU6dlCnHMYysC1EzOFgCNMfq9zJB4hExuOoCJ8HO8Vkey=rcp3U4o5b5zlItUOAlhdOxfk12XiHBWF04ZDQe9n1sQ%3D
 
  | Approve domain
  
 https://www.boxbe.com/anno?tc_serial=20400146418tc_rand=225381841utm_source=stfutm_medium=emailutm_campaign=ANNO_MWTPutm_content=001domtoken=gOs96gvV5kyCf%2BRXyrk0OmcU6dlCnHMYysC1EzOFgCNMfq9zJB4hExuOoCJ8HO8Vkey=rcp3U4o5b5zlItUOAlhdOxfk12XiHBWF04ZDQe9n1sQ%3D
 
 
  Or maybe line 1 is the header?
 
  Here is the last of the output before the error:
 
  ---SENDING---
  POST /api/api_xml-rpc.php HTTP/1.0
  User-Agent: XML-RPC for PHP 3.0.0.beta
  Host: leskoweberp.com:80
  Accept-Encoding: gzip, deflate
  Accept-Charset: UTF-8,ISO-8859-1,US-ASCII
  Content-Type: text/xml
  Content-Length: 757
 
  ?xml version=1.0?
  methodCall
  methodNameweberp.xmlrpc_InsertCustomer/methodName
  params
  param
  valuestruct
  membernamedebtorno/name
  valuestring14/string/value
  /member
  membernamename/name
  valuestringAkbar Aan/string/value
  /member
  membernameclientsince/name
  valuestring2015-02-12/string/value
  

Re: [Care2002-developers] Care2002-developers Digest, Vol 83, Issue 3

2015-02-13 Thread Beth Lesko
I hardcoded TZS in class_weberp_c2x (wasn't picking up the default), so
resolved!

Then when the branch was sent, an error was fixed by setting the default
location to tzs in the weberp database...

Working now! Yey!

Thanks to George and Tim for archive entries :-)

On Fri, Feb 13, 2015 at 3:59 PM, 
care2002-developers-requ...@lists.sourceforge.net wrote:

 Send Care2002-developers mailing list submissions to
 care2002-developers@lists.sourceforge.net

 To subscribe or unsubscribe via the World Wide Web, visit
 https://lists.sourceforge.net/lists/listinfo/care2002-developers
 or, via email, send a message with subject or body 'help' to
 care2002-developers-requ...@lists.sourceforge.net

 You can reach the person managing the list at
 care2002-developers-ow...@lists.sourceforge.net

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of Care2002-developers digest...


 Today's Topics:

1. Re: Care2002-developers Digest, Vol 83,   Issue 2 (Beth Lesko)


 --

 Message: 1
 Date: Fri, 13 Feb 2015 15:58:56 -0500
 From: Beth Lesko bethle...@gmail.com
 Subject: Re: [Care2002-developers] Care2002-developers Digest, Vol 83,
 Issue 2
 To: care2002-developers@lists.sourceforge.net
 Message-ID:
 CA+u_1vwEiebt96EWqXgd3te8-5EVwf=
 u-evcle3qzqpzis-...@mail.gmail.com
 Content-Type: text/plain; charset=utf-8

 I asked the rpc call to send back details on errors by adding

 if($result-faultCode() != 0)
 {
 //  RPC failed!
 echo RPC mechanism failed:  .$result-faultString() . \n B Y E\n;
 exit( 99 );
 // call to system.multicall failed
 return $result;
 }

 to xml_rpc.inc

 and there is a currency code error. Do I need to send currency code?

 ---INFLATED RESPONSE---[1659 chars]---
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
 html
 xmlns=http://www.w3.org/1999/xhtml;headtitle/titlelink
 rel=shortcut icon href=/favicon.ico /link rel=icon
 href=/favicon.ico /meta http-equiv=Content-Type
 content=application/html; charset=utf-8 /link
 href=/css/jelly/default.css rel=stylesheet type=text/css
 /script type=text/javascript src =
 /javascripts/MiscFunctions.js/script/headbodytable
 class=callout_main cellpadding=0 cellspacing=0trtd
 colspan=2 rowspan=2table class=main_page cellpadding=0
 cellspacing=0trtdtable width=100% border=0 cellpadding=0
 cellspacing=0 trtd/td/tr/tablediv
 class=errorbDatabase Error/b : br /Cannot add or update a
 child row: a foreign key constraint fails
 (`leskoweb_weberpdemo`.`debtorsmaster`, CONSTRAINT
 `debtorsmaster_ibfk_2` FOREIGN KEY (`currcode`) REFERENCES
 `currencies` (`currabrev`))/divdiv class=errorbDatabase SQL
 Failure/b : The SQL that failed wasbr /INSERT INTO debtorsmaster
 (debtorno, name, clientsince, holdreason, paymentterms,
 customerpoline) VALUES (14, Akbar Aan, 2015-02-13, 1, CA,
 0) br //div/td/tr/table/td/tr/tablep
 style=text-align:rightFriday, 13/02/2015 | 14:51/ptable
 width=100% id=footertrtd class=footera
 href=http://www.weberp.org; rel=externalimg src=/ width=120
 alt=webERP title=webERP Copyright copy; webrp.org - 2015
 //abr //td/trtrtd class=footerwebERP v4.07.6 Copyright
 copy; weberp.org - 2015/td/tr/table/body/html
 ---END---


 On Fri, Feb 13, 2015 at 6:43 AM, 
 care2002-developers-requ...@lists.sourceforge.net wrote:

  Send Care2002-developers mailing list submissions to
  care2002-developers@lists.sourceforge.net
 
  To subscribe or unsubscribe via the World Wide Web, visit
  https://lists.sourceforge.net/lists/listinfo/care2002-developers
  or, via email, send a message with subject or body 'help' to
  care2002-developers-requ...@lists.sourceforge.net
 
  You can reach the person managing the list at
  care2002-developers-ow...@lists.sourceforge.net
 
  When replying, please edit your Subject line so it is more specific
  than Re: Contents of Care2002-developers digest...
 
 
  Today's Topics:
 
 1. Re: webERP Integration (george maina)
 2. Moving toward zend... (Beth Lesko)
 3. Re: Moving toward zend... (Robert Meggle)
 
 
  --
 
  Message: 1
  Date: Thu, 12 Feb 2015 17:43:03 +0300
  From: george maina georgemain...@gmail.com
  Subject: Re: [Care2002-developers] webERP Integration
  To: bethle...@gmail.com, care2002-developers@lists.sourceforge.net
  Message-ID:
  CAE6Go6Xxj26z3cwEc1tmxkixbuv4R1tKTa8=Nqh3DdrG=
  1y...@mail.gmail.com
  Content-Type: text/plain; charset=utf-8
 
  Hi
  Check if the The columns being sent meet the requirements of the columns
 in
  debtors master in weberp, some columns dont allow nulls
 
 
  George
 
 
  George Maina
  P.O. Box 100717-00101
  Nairobi
  +254720692433
 
  On Thu, Feb 12, 2015 at 4:21 AM, Beth Lesko bethle...@gmail.com wrote:
 
[image: Boxbe]