From: Phil D. <ph...@du...> - 2004-04-28 10:31:06
|
Jesse, Started to look at this - noticed you included those variables in the cart object ShipVia etc that should have been there originally - thanks. Like your mod to DB_query - that will take a lot of unecessary code out of every script!! again I should have done this :-( but didn't think of it .... clever! Many of your functions have application througout. Still not bottomed the logic of your serialised items yet ... give me time. Looks exciting - clearly you have much to teach me. Please be patient with me - it does take me a bit to absorb new ideas. Thanks a LOT for all this! Phil |
From: Phil D. <ph...@du...> - 2004-04-29 11:09:52
|
Right I'm getting into it .... All comments to be taken as constructive thoughts/ideas .... Changed one part to controlled AND serialised - noted the correct spelling of serialised ;-) - another to controlled only. Created a PO for three items the controlled and serialised, controlled only and a not controlled item. Now tried to receive this PO ... Need to think about the serial number entry stuff - this file selection stuff looks great as does the keyed entry - the barcode is the same as keyed - might just need a little bit of java to move to the next field after input somehow. I can't see why a bundleid is necessary as well as serial numbers for controlled and serialised? The instructions on GoodsReceived.php says to click the part code to enter serial numbers - this link didn't work until you enter a quantity and hit update. Would be great to accumulate the quantity from the serial numbers entered ... I rekon. Notice you don't use ?php tags you are an ex ASP person ?? Using short tags got me into trouble once can't remember why - I always use long tags now. Created an order and confirmed dispatch .... Would be good to be able to select the items being dispatched - ie serial numbers available to sell from StockItems. StockItems could also have a quantity field in it no ? This would do for the bundleID and quantity on each bundle then - sorry to keep harping back. I would like to figure out a way to have bundles/rolls/batches of product referenced in the same way as a serial number but referring to a quantity of the item not a single unit. StockItems could be called something like StockSerialItems or such to avoid confusion with a stock master and specify that the table is to do with serialised stuff. Better knock off now. Looking good though. Phil |
From: Phil D. <ph...@du...> - 2004-05-02 07:30:20
|
Hi jesse, Still working through it all ... in the statment below ... $Item->move_item($StkMoveNo, true); where is the move_item method I expected to be in the DefineCartClass.inc - can't see it anywhere was looking forward to seeing how this was processed. (sicko!) Your MiscFunctions script -I do have some reservations as I guess you would expect. I reckon one function would be fine - even then have a question about whether its worth it - for the PrintMessage stuff but you have 10 separate functions!! My weird criteria for functions/includes is based on the fact that using a function or include requires the reader of the code to look elsewhere to figure out what's going on - so there is a cost in excessive use ... it is labour intensive for someone else to read/understand the code! Against that I really do understand that there are some big pluses for maintenance and reducing code/typing where there are heaps of possibilities for re-use. Where the latter clearly outweigh the former .... lets go, otherwise lets not!! So if we are replacing ... include("includes/footer.inc"); exit; with an endWEBERP() function - I can't see the point. or 10 PrnMsg functions to replace an echo statement? .... Nah! On the other hand your variable initation stuff is clearly a significant saving of typing which appears again and again - its a sitter I should have seen before. Same with the DB_query stuff - great! I hope this makes sense and that my eccentricities are not too much to live with! Phil |
From: Jesse P. <je...@st...> - 2004-05-02 19:27:11
|
>$Item->move_item($StkMoveNo, true); > >where is the move_item method I expected to be in the DefineCartClass.inc - >can't see it anywhere was looking forward to seeing how this was processed. >(sicko!) > > It is in GenericStockItem.php. >Your MiscFunctions script -I do have some reservations as I guess you would >expect. I reckon one function would be fine - even then have a question about >whether its worth it - for the PrintMessage stuff but you have 10 separate >functions!! > > >My weird criteria for functions/includes is based on the fact that using a >function or include requires the reader of the code to look elsewhere to >figure out what's going on - so there is a cost in excessive use ... it is >labour intensive for someone else to read/understand the code! Against that I >really do understand that there are some big pluses for maintenance and >reducing code/typing where there are heaps of possibilities for re-use. Where >the latter clearly outweigh the former .... lets go, otherwise lets not!! > >So if we are replacing ... > >include("includes/footer.inc"); >exit; > >with an endWEBERP() function - I can't see the point. > >or 10 PrnMsg functions to replace an echo statement? .... Nah! > >On the other hand your variable initation stuff is clearly a significant >saving of typing which appears again and again - its a sitter I should have >seen before. Same with the DB_query stuff - great! > >I hope this makes sense and that my eccentricities are not too much to live >with! > > I know it seems like alot, but these things offer alot of functionality and part of the point of the print messages is to more easily allow uniform error/warn/info/etc. messages. That applies to theme/style changes as well, which makes it quite easy when you want to change it. More so, as you've realized, it makes readability and maintenance on the code much much easier and simply cuts down on duplicating code. For example - if I look at a print/echo, I have to read it to figure out what's happening, what it's going to look like, etc - prnErrMsg tells me at a glance. With the endWEBERP() - again, painfully obvious what's happening - and what if we find later that something else is necessary in the 'shutdown' process? In all these case, you get 1 central place to change things (or have problems track back to) rather than having to fix it every place it was used (and hoping you found them all). I understand the ease you feel in having all the code in one file, but you may want to take a step back and rethink that in some of these cases. If you come to the same conclusion, can we at least leave that stuff in there for me and anyone else who finds using these things helpful? I know I tend to bury stuff, but I usually work real hard on making it work well before I do... many developers do things like you've seen me do - having it accessible (even if not strictly used) will also help some new contributor ramp up quicker. Believe me from having just done it - it took alot of work to figure out what was happening in places - much of that is necessary - what I've pulled out are things that I did not want to have to think about/look at again. Documentation of the functions used, almost api docs, is probably needed. This is also part of the reason I use PHP instead of, say, writing nasty C based CGI scripts - many of it's functions/variables cover up things that I simply do not need to mess with, but when I do, I still can. |
From: Daintree <p.d...@pa...> - 2004-05-03 01:15:18
|
The work you are doing on this requires a very deep understanding of the system and without knowing the time you have spent coming up to speed, I have to say it is impressive that you felt confident to take this on. I must say I feel quite daunted by the task myself. I think in many systems you would not have wanted to tackle this! I know full well my view is the minority one :-( OK, lets go. However, I would like to make the system consistent though. Heck there are only a few scripts in the system, with a little help I am sure we can know them over quite quickly. I can make your message functions into one function at least. Phil |