Commit Graph

339 Commits

Author SHA1 Message Date
Laurent Destailleur
1645ddbe47 Sec: Sanitize all input for ids. 2012-02-27 22:26:22 +01:00
Laurent Destailleur
c4b845d60a Qual: Removed deprecated function name. 2012-02-19 18:34:22 +01:00
Regis Houssin
f30e1879c5 Fix: missing fields after country change 2012-02-10 10:20:05 +01:00
Regis Houssin
f0d2823edf Fix: avoid foreach warning 2012-02-06 18:59:07 +01:00
Laurent Destailleur
6cb0685b6f Qual: Uniformize hook names. All hooks to add information on
create/update/view cards are called fomrObjectOptions instead of
sometine formObjectOptions, sometimes showInputFields, sometimes
showOutputFields.
2012-02-06 17:18:19 +01:00
Laurent Destailleur
f3a966a313 Fix: Missing name 2012-01-29 23:24:47 +01:00
Laurent Destailleur
5d5af4cd78 Doxygen 2012-01-22 21:36:07 +01:00
Laurent Destailleur
3446e94e51 Uniformize code 2012-01-18 10:52:22 +01:00
Regis Houssin
cb286a2449 New: add shareds thirparties between entities 2012-01-11 00:19:57 +08:00
Laurent Destailleur
55156edd0d Enhance PHPUnits 2011-12-30 14:18:19 +01:00
Laurent Destailleur
c2348ef600 Uniformize field country_id, country_code, country 2011-12-29 18:07:41 +01:00
Laurent Destailleur
e8f84363eb Fix: Restore autozip features 2011-12-28 21:30:33 +01:00
Laurent Destailleur
498c1b1b41 Qual: idprof are all renamed to idprof1,2,3,4 (removed old name siren,
siret, ...)
2011-12-28 17:30:30 +01:00
Laurent Destailleur
2daa5a516f Qual: Clean properties 2011-12-28 17:13:19 +01:00
Laurent Destailleur
b9d578b408 Code comment 2011-12-21 21:45:36 +01:00
Regis Houssin
81535dc868 Fix: problem with select country
Fix: uniform code
2011-12-15 19:29:34 +08:00
Laurent Destailleur
66856fee75 New: show thirdparty barcode on main tab. 2011-12-07 15:06:29 +01:00
Laurent Destailleur
1f37dc906f Qual: Uniformize name of barcode into "barcode". 2011-12-07 11:59:41 +01:00
Laurent Destailleur
839781dfbe Qual: Removed a TODO by renaming all ->monnaie into ->currency 2011-11-23 14:55:36 +01:00
Regis Houssin
f0c327c070 Fix: uniform code
replace all $html by $form with exceptions "$htmlname, $htmltooltip"
2011-11-08 17:22:31 +08:00
Laurent Destailleur
61fc8b6081 Fix: Wrong field 2011-11-04 02:53:31 +01:00
Regis Houssin
3338649316 [task #217] Move core files in core directory 2011-10-24 14:11:49 +02:00
Regis Houssin
56d6cbe56f [task #216] Move lib in core directory 2011-10-24 12:59:44 +02:00
Regis Houssin
63d60a33fc [task #216] Move lib in core directory 2011-10-24 11:25:54 +02:00
Regis Houssin
c65238b773 [task #216] Move lib in core directory 2011-10-24 10:45:06 +02:00
Laurent Destailleur
43bd6e1ea8 Fix: Removed deprecated function 2011-10-22 15:55:08 +02:00
Laurent Destailleur
0bc80e9bec Qual: Doxygen
Qual: Uniformize some code
2011-10-14 18:51:20 +02:00
eldy
11beb15d9a Fix: Hide supplier info if permission to read suppliers not on 2011-10-10 00:03:26 +02:00
Regis Houssin
4fdc63f8b5 Removed mantis module 2011-09-26 12:12:50 +02:00
Laurent Destailleur
af2e300100 Fix: Little fix after canvas changes to be able to have "pure canvas" (canvas with no controller, only templates). 2011-09-24 20:50:57 +00:00
Regis Houssin
8d900740fc Fix: broken canvas 2011-09-24 15:57:52 +00:00
Laurent Destailleur
ed81eedb7c Fix: Little fix after canvas changes to be able to have "pure canvas" (canvas with no controller, only templates). 2011-09-24 20:50:57 +00:00
Regis Houssin
96ed2fe994 Fix: broken canvas 2011-09-24 15:57:52 +00:00
Regis Houssin
3a35ef50f5 Fix: broken canvas 2011-09-24 17:54:34 +02:00
Regis Houssin
6c4acefd93 Fix: Space before opening parenthesis of function call prohibited 2011-09-20 12:56:06 +00:00
Regis Houssin
5efe1cd470 Fix: Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. 2011-09-20 10:30:56 +00:00
Regis Houssin
2c1b3722f2 Fix: replace sizeof() by count() 2011-09-17 19:49:50 +00:00
Laurent Destailleur
e5d7662cff Qual: Removed useless code 2011-09-14 22:40:16 +00:00
Laurent Destailleur
17c32809e8 Qual: Removed TODO and some useless code 2011-09-13 12:00:37 +00:00
Laurent Destailleur
48bdb6f506 Clean deprecated code 2011-09-12 23:23:53 +00:00
Laurent Destailleur
7e22db2abe Look: Uniformize view 2011-09-12 19:34:59 +00:00
Laurent Destailleur
cd0623189e Clean deprecated code 2011-09-12 23:23:53 +00:00
Laurent Destailleur
f47e80dca1 Fix: W3C 2011-08-31 14:55:54 +00:00
Laurent Destailleur
be5333589e Fix: task #11248 : there is no DB transaction on products->delete
Qual: Mutualize code to see of an object as child
2011-08-28 12:57:23 +00:00
Laurent Destailleur
0e6eb2aada Qual: Try to uniformize code for product canvas to wokr like canvas for third parties. This also reduce seriously the "cyclomatic complexity" reported by quality tools on product/fiche.php file. 2011-08-27 17:25:09 +00:00
Laurent Destailleur
f20fb6e6b4 Qual: Try to uniformize code for product canvas to wokr like canvas for third parties. This also reduce seriously the "cyclomatic complexity" reported by quality tools on product/fiche.php file. 2011-08-27 17:25:09 +00:00
Laurent Destailleur
2419ec0118 Qual: Comment deprecated code 2011-08-27 17:08:09 +00:00
Regis Houssin
27300fe898 Fix: remove obsolete tags (in progress) 2011-08-27 16:15:06 +00:00
Regis Houssin
726d9581dd Fix: remove obsolete tags (in progress) 2011-08-27 14:24:16 +00:00
Laurent Destailleur
53a6bb3010 Qual: Mutualise code 2011-08-24 18:05:58 +00:00
Laurent Destailleur
cfe34139cf Qual: Clean and uniformize code.
Remove properties, that are not related to business, from parent business class commonobject.
2011-08-22 22:04:21 +00:00
Laurent Destailleur
cc94dd87d1 Try to rename some fields with english name 2011-08-18 22:25:46 +00:00
Regis Houssin
1817e92bbf Fix: missing hook errors 2011-08-18 06:49:01 +00:00
Regis Houssin
78e351cc7c Fix: possibility to remove tabs
Fix: add hook in delete function
2011-08-17 19:43:18 +00:00
Laurent Destailleur
22eae6fae7 Look: Minor look enhancements 2011-08-13 00:47:59 +00:00
Juanjo Menent
d0e26f650c task #10500: Option to choose if professionnal id are unique. 2011-08-12 06:55:47 +00:00
Juanjo Menent
b5d1b3ee46 task #10500: Option to choose if professionnal id are unique. 2011-08-11 16:53:43 +00:00
Laurent Destailleur
acea604e54 Change signature of all call executHooks.
Now they accept all the following signature:
executeHooks('method',$parameters,$object,$action)
2011-08-10 22:47:33 +00:00
Laurent Destailleur
c3ca9083c1 Add comment 2011-08-10 19:34:44 +00:00
Laurent Destailleur
581f0a0e09 Try a better way to manage extra fields from external module 2011-08-10 00:50:16 +00:00
Regis Houssin
cf6a902bfe Fix: use hooks for extrafields 2011-08-09 17:59:45 +00:00
Regis Houssin
d2833fe54f Fix: use hooks for extrafields 2011-08-09 14:27:38 +00:00
Regis Houssin
cc042a66ea Fix: use hooks for extrafields 2011-08-09 09:13:08 +00:00
Laurent Destailleur
2e62519554 Fix: bug #33900 : Third party name reset after the autocompletion of city name 2011-08-01 00:38:49 +00:00
Laurent Destailleur
37ead2f97e Fix: Avoid errors into rpm packages 2011-07-31 23:19:04 +00:00
Juanjo Menent
79af0a6750 Qual: Uniformize code 2011-07-19 07:33:23 +00:00
Juanjo Menent
61485f279d Fix: Correct and add more data to the contact into Private individual creation 2011-07-18 16:48:26 +00:00
Juanjo Menent
1a3aeda82f Fix: Show LastName or ThirdPartyName label correctly (very important for the Hispanic community) 2011-07-18 16:37:14 +00:00
Laurent Destailleur
4a92f4bc02 New: Project creation page has a cancel button 2011-07-04 08:00:52 +00:00
Laurent Destailleur
f54847e037 Add TODO To show way to make things simplest 2011-07-02 14:51:26 +00:00
Laurent Destailleur
2268de9898 Yeah ! Hooks can now create, update, do nothing, replace or complete, warn validity check of parameters, add confirmation, etc. 2011-07-02 14:35:22 +00:00
Laurent Destailleur
249a8a9091 Uniformize code (use $object) 2011-07-02 14:12:44 +00:00
Laurent Destailleur
e5afc7c416 Fix: Error management 2011-07-02 13:09:52 +00:00
Laurent Destailleur
b7434abbea Better error management. Also hooks for "doActions" receives action code. 2011-07-01 23:11:12 +00:00
Laurent Destailleur
1ef55a4a26 Readd call to hooks 2011-06-30 22:47:04 +00:00
Laurent Destailleur
2b6be0fd1e Readd call to hooks 2011-06-30 22:38:06 +00:00
Regis Houssin
c2650500c5 Fix: regression, canvas is broken and societe.class and contact.class are incompatible with callHook function 2011-06-30 13:25:32 +00:00
Laurent Destailleur
71770c4cfd Qual: Uniformize code. Actions canvas conflicts with actions hook. So now we always hook to intercept actions. Name of hook must also be unique for each tab. 2011-06-29 22:29:50 +00:00
Laurent Destailleur
d62de9ad34 Fix: regression 2011-06-25 19:55:36 +00:00
Laurent Destailleur
fb2e7c063e New: Can use extrafields on third parties. 2011-06-22 16:24:20 +00:00
Laurent Destailleur
bf38ea15ba Enhance extrafields feature. Input and output fields can be personalised according to their format/size. 2011-06-22 11:41:37 +00:00
Laurent Destailleur
041b7d2955 Uniformize code and increase speed for extrafields 2011-06-22 10:58:22 +00:00
Laurent Destailleur
32da27f003 Fix: Several fix on photo upload when file format is wrong 2011-06-22 09:11:00 +00:00
Laurent Destailleur
fcd559871b New: A module can disable attachment features. 2011-06-13 15:37:10 +00:00
Laurent Destailleur
2ffb4f2d02 Qual: Uniformize user interface 2011-06-13 13:07:10 +00:00
Laurent Destailleur
95de083d90 New: #11194 Can delete uploaded photos 2011-06-11 20:58:08 +00:00
Laurent Destailleur
7d5f0c3723 New: Can add logo on third parties.
Qual: Uniformize code to show photos/logos.
2011-06-11 14:14:27 +00:00
Laurent Destailleur
fcd89b7ca2 Fix: Error management 2011-06-09 07:42:04 +00:00
Laurent Destailleur
ee28d58f85 Fix: Missing some tabs 2011-06-07 21:45:20 +00:00
Laurent Destailleur
363d50805a Qual: Uniformize code 2011-06-01 16:23:33 +00:00
Laurent Destailleur
31ff9bb739 Qual: All text for html output is inside display_canvas() 2011-05-31 22:31:38 +00:00
Laurent Destailleur
a6784f461e New: Can use templates only canvas without controllers. 2011-05-29 18:44:49 +00:00
Laurent Destailleur
8d66d2da7e New: Can use canvas for create only with no need to have one for edit. 2011-05-29 17:34:07 +00:00
Laurent Destailleur
b30c0bc730 Fix: juridical status was lost if error 2011-05-29 14:51:21 +00:00
Laurent Destailleur
3d7752ca76 Qual: Simplify canvas code 2011-05-25 22:49:11 +00:00
Laurent Destailleur
62e680cbf2 MAIN_CONFIRM_AJAX is on by default 2011-05-18 12:07:38 +00:00
Regis Houssin
b08844f915 New: not reload page with dialog confirm 2011-05-14 14:07:07 +00:00
Regis Houssin
f382a68dd7 Test: not reload page with dialog confirm
Fix: form tag is not used in view mode
Fix: debug error
2011-05-14 11:34:15 +00:00
Regis Houssin
632d8dde95 Test: not reload page with dialog confirm 2011-05-14 09:21:24 +00:00
Regis Houssin
ed118e7009 Fix: uniformize code 2011-05-14 05:31:41 +00:00
Regis Houssin
118ee129fe Fix: don't reload page with "no" answer 2011-05-14 05:23:50 +00:00
Laurent Destailleur
be7b79d31d Fix: Hide price if multiprice enabled 2011-05-13 22:04:52 +00:00
Laurent Destailleur
e8c49d77f2 Add dol_print_address function 2011-05-12 19:01:14 +00:00
Laurent Destailleur
4178f8f131 Fix: Support of third party status. 2011-05-05 22:19:21 +00:00
Laurent Destailleur
4adfb20ccf New: Add option MAIN_FIRST_TO_UPPER 2011-05-02 18:36:37 +00:00
Regis Houssin
cdf52cafcf Fix: verify if $_POST is not empty 2011-04-22 16:01:18 +00:00
Laurent Destailleur
7475d9091a Use same translation key 2011-04-21 21:40:21 +00:00
Laurent Destailleur
91d1950cfc Use same translation key 2011-04-21 21:39:37 +00:00
Laurent Destailleur
519fd1abee Uniformize code 2011-04-13 12:19:38 +00:00
Laurent Destailleur
c311bf5f2c Qual: Fix architecture problem with canvas 2011-04-06 16:21:46 +00:00
Laurent Destailleur
d72f417868 Qual: Fix architecture problem with canvas 2011-04-06 16:21:43 +00:00
Laurent Destailleur
e05f0caf60 Qual: Make module system more simple.
Change to prepare adding left menu entries by modules
2011-04-06 14:26:43 +00:00
Laurent Destailleur
1859c545cd Add hidden option to disable some features 2011-03-26 13:54:15 +00:00
Laurent Destailleur
742e11620f New: Add option to disable state 2011-03-26 11:27:04 +00:00
Regis Houssin
82fc052de0 patch #7445 : display the subsidiaries of a company 2011-03-22 19:31:29 +00:00
Laurent Destailleur
469a163f3c New: Support a backtopage parameter on contact creation page 2011-03-20 15:42:25 +00:00
Laurent Destailleur
588320321f Qual: Removed 2 TODO
Qual: Removed deprecated function
Qual: Removed hard coded link
2011-02-14 16:49:04 +00:00
Laurent Destailleur
f7ca6e4d4b Qual: Better management of option SOCIETE_USEPREFIX 2011-02-12 22:21:30 +00:00
Laurent Destailleur
4728489fa8 Fix: Bad trans key 2011-02-12 22:17:47 +00:00
Laurent Destailleur
c595f43412 Can add array 2011-02-09 18:56:39 +00:00
Laurent Destailleur
5407f9c492 New: Show name of sales representatives if number is lower than 3 2011-02-06 19:39:21 +00:00
Laurent Destailleur
b21d3fad2a New: Show name of sales representatives if number is lower than 3 2011-02-06 19:36:28 +00:00
Regis Houssin
bf738cb9ef Fix: double print 2011-02-04 11:23:45 +00:00
Regis Houssin
2725917298 Fix: double print 2011-02-04 11:07:51 +00:00
Regis Houssin
c2d1e07555 New: Add option MAIN_DISABLEVATCHECK to disable link to VAT check 2011-01-31 10:41:03 +00:00
Regis Houssin
aa4b3f0701 New: Add option MAIN_DISABLEVATCHECK to disable link to VAT check 2011-01-31 10:32:51 +00:00
Laurent Destailleur
e768b897bb New: Add option MAIN_DISABLEVATCHECK to disable link to VAT check 2011-01-30 18:04:14 +00:00
Laurent Destailleur
b09a960968 New: Add option MAIN_DISABLEVATCHECK to disable link to VAT check 2011-01-30 16:41:53 +00:00
Laurent Destailleur
980ed1a7dc New: Prefix on third party is not used by default. Hidden option SOCIETE_USEPREFIX can restore old feature. 2011-01-29 16:25:01 +00:00
Laurent Destailleur
c9cc9e7ec2 Fix: Do not show supplier code if module not enabled 2011-01-29 15:56:45 +00:00
Laurent Destailleur
7bcffa5f2c Fix: Hide if supplier module is disabled 2011-01-26 19:42:01 +00:00
Laurent Destailleur
fe75e417ef Fix: Hide if supplier module is disabled 2011-01-26 19:35:36 +00:00
Laurent Destailleur
9cd90da933 New: Add hidden option SOCIETE_DISABLE_PROSPECTS 2011-01-26 19:06:53 +00:00
Regis Houssin
55bb500ba4 Fix: private status is lost if change country 2011-01-18 09:05:28 +00:00
Laurent Destailleur
b7c97cdc38 Fix: Missing title 2010-12-29 10:42:34 +00:00
Laurent Destailleur
a12e690e10 Fix: Tab from modules was not added 2010-12-29 10:08:45 +00:00
Regis Houssin
e469ef2a7d Works on contact canvas in relation to the thirdparty canvas module 2010-11-05 08:28:49 +00:00
Regis Houssin
dc3fd00557 Fix: bad error management 2010-11-04 16:04:12 +00:00
Regis Houssin
74d5130c61 Fix: hide civility for company create 2010-11-04 10:16:27 +00:00
Regis Houssin
6305c6c8fa Works on contact canvas in relation to the thirdparty canvas module 2010-11-04 07:48:28 +00:00
Laurent Destailleur
dfbd72a76a Fix: W3C 2010-11-01 16:00:38 +00:00
Laurent Destailleur
1b9b787622 Fix: zip and town was lost 2010-10-31 19:14:28 +00:00
Regis Houssin
8336d81c7b New: Task #10725 2010-10-29 14:22:35 +00:00
Laurent Destailleur
46ff6b1a25 Move javascript to prepare to mutualize code. 2010-10-18 21:15:55 +00:00
Regis Houssin
d7d353aed1 Fix: bad type if change country 2010-10-13 17:18:10 +00:00
Regis Houssin
cd14a06232 Fix: replace with new name 2010-10-13 17:07:37 +00:00
Regis Houssin
ab8e470251 Fix: move ajaxziptown in core 2010-10-13 13:54:30 +00:00
Regis Houssin
eb710a6dbc Fix: auto fill zip and town with jquery
Add county field
Fixme: update county select if another country selected
2010-10-13 10:42:51 +00:00
Regis Houssin
f99d5a687c Fix: uniformize function (bug again) 2010-10-13 07:38:48 +00:00
Regis Houssin
42fdbaa856 Fix: auto fill zip and town with jquery 2010-10-12 19:15:08 +00:00
Regis Houssin
895fd7b6dd Fix: auto fill zip and town with jquery 2010-10-12 19:05:54 +00:00
Regis Houssin
e14802e8cb Test: auto fill zip and town with jquery 2010-10-12 17:14:53 +00:00
Laurent Destailleur
1891932ac8 New: Change preselected value when creating a third party to save clicks. 2010-10-09 11:30:32 +00:00
Laurent Destailleur
64581c555b New: Remove tab accountancy. Now in customer tab for customer accountancy and in supplier tab for supplier tab. 2010-09-19 12:50:53 +00:00
Laurent Destailleur
cdf3368295 Qual: Uniformize code 2010-09-14 20:42:17 +00:00
Laurent Destailleur
31de91ecca Make code simpler 2010-09-07 10:24:26 +00:00
Laurent Destailleur
e1bc58080c Qual: Rename method loadControl into doActions to have a more common name used by MVC frameworks. 2010-09-07 10:05:00 +00:00
Laurent Destailleur
285a3d59dd Better isolation of code when using canvas: Actions first in two mode, then view in two mode. 2010-09-06 23:53:55 +00:00
Laurent Destailleur
c0a5c3f428 Error management 2010-09-05 17:59:27 +00:00
Regis Houssin
9b9fe10053 Works on canvas integration in third party module 2010-09-05 13:38:34 +00:00
Regis Houssin
f6057890bd Works on canvas integration in third party module 2010-09-05 12:03:35 +00:00
Regis Houssin
f604e7eaac Works on canvas integration in third party module 2010-09-05 09:36:59 +00:00
Regis Houssin
ee4cd1c500 Works on canvas integration in third party module 2010-09-04 10:48:20 +00:00
Regis Houssin
0c39f20f8d Works on canvas integration in third party module 2010-09-03 18:28:59 +00:00
Regis Houssin
4060b73420 Works on canvas integration in third party module 2010-09-03 07:21:02 +00:00
Laurent Destailleur
2ea124d32e Canvas usage is an option 2010-09-02 21:34:43 +00:00
Laurent Destailleur
dc3eb8bf78 Qual: Remove useless cleartype param to make code easier. 2010-09-02 20:57:17 +00:00
Laurent Destailleur
5904ff20ea Canvas usage is an option 2010-09-02 20:25:38 +00:00
Laurent Destailleur
e3bcd7eff0 Fix: Restore standard mode 2010-09-02 19:56:30 +00:00
Laurent Destailleur
98f1218f92 Fix: Restore working when not using canvas until finding a better way to mix both mode. 2010-09-02 19:41:49 +00:00
Regis Houssin
2b42ea4904 Works on canvas integration in third party module 2010-09-02 16:52:29 +00:00
Regis Houssin
2d552df6be Works on canvas integration in third party module 2010-09-02 14:36:36 +00:00
Regis Houssin
c571f25afb Works on canvas integration in third party module 2010-09-02 12:18:02 +00:00
Regis Houssin
af96971a31 Works on canvas integration in third party module 2010-09-01 20:51:10 +00:00
Regis Houssin
d97c1054f1 Works on canvas integration in third party module 2010-09-01 09:19:03 +00:00
Regis Houssin
c8fa0b67ec Works on canvas integration in third party module 2010-09-01 07:48:33 +00:00
Regis Houssin
66268368ac Works on canvas integration in third party module 2010-08-31 14:54:09 +00:00
Laurent Destailleur
cc55568723 Replace javascript by jQuery 2010-08-29 16:47:17 +00:00
Laurent Destailleur
54489e6050 Replace javascript by jQuery 2010-08-29 15:38:47 +00:00
Regis Houssin
8691191c0e Works on canvas integration in third party module 2010-08-25 20:09:08 +00:00
Philippe Grand
b6d0f859af task #6689, strlen problem
replace  strlen with dol_strlen
2010-08-24 19:51:56 +00:00
Laurent Destailleur
ac4dfe00c4 Accept larger company names. Up to 60 chars. 2010-08-24 18:04:05 +00:00
Laurent Destailleur
29217c5270 Fix: field too short 2010-08-24 17:48:49 +00:00
Laurent Destailleur
1b9ee9c597 Qual: Clean code
Perf: Country id+code is now stored into MAIN_INFO_SOCIETE_PAYS instead of only id. This avoid a select to finf country code at each request.
2010-08-21 15:30:17 +00:00
Laurent Destailleur
8fa175f3e9 Fix: Restore feature broken with renaming 2010-08-19 20:29:55 +00:00
Regis Houssin
2c4a56771f Fix: $optiontype not used
Fix: select_array is deprecated
2010-08-19 15:20:25 +00:00
Regis Houssin
aa62559812 Fix: fetch_client is deprecated 2010-08-06 13:56:25 +00:00
Laurent Destailleur
2db5b658f1 Fix: Some errors in vat management with multiprice 2010-07-22 21:16:29 +00:00
Laurent Destailleur
a6b988379a Fix: When files are moved for a new tree, we must reload dynamic menu handlers at installation. 2010-07-21 21:58:46 +00:00