altocompta/scenario
Dany De Bontridder cb0a8491de Merge branch 'dev-7201' into entreprise
* dev-7201:
  Bug 1786: Comptabilité analytique : TVA non déductible bloque
  http_input , trim on array is invalid
  Test : correct test for Acc_Ledger_Factory : payment status
  Bug in reconcile for bank amount: total_invoice is null for FIN and ODS
  Bug : search
  Bug #1783 : les nombres commençant par zéro ne sont pas supportés
  zero is considered as empty value
  http_input replace empty by a value
  export historic card csv : column wrong
  Remove direct access to $http
  Documentation + bug cosmetic about TVA_SIDED : total operation shown instead of total_invoice (VAT REVERSED)
  Fix cosmetic + export histo CSV with operation filter
  Round VAT
  add forgotten file
  Change logo
  warning about session_start
  Acc_Ledger_Search , fix small bug + Test file
  Documentation
  TEST fix bug in acc_balanceTest
2020-01-17 20:27:49 +01:00
..
acc_ledger_AccountTest.php test : find the accounting with the biggest number of records 2019-10-26 16:35:01 +02:00
acc_ledger_historyTest.php Test : correct test for Acc_Ledger_Factory : payment status 2019-12-08 14:09:09 +01:00
ach-call-menu.php rename scenario files 2017-09-03 15:05:58 +02:00
ach-confirm.php rename scenario files 2017-09-03 15:05:58 +02:00
ach-new.php rename scenario files 2017-09-03 15:05:58 +02:00
ach-template-confirm.php rename scenario files 2017-09-03 15:05:58 +02:00
ach-template-record.php rename scenario files 2017-09-03 15:05:58 +02:00
ach-template.php rename scenario files 2017-09-03 15:05:58 +02:00
achisto.php rename scenario files 2017-09-03 15:05:58 +02:00
adhisto.php rename scenario files 2017-09-03 15:05:58 +02:00
ajax-add-card-category.php Update test with new architecture 2017-07-22 20:13:07 +02:00
ajax-detail-operation1.php Update test with new architecture 2017-07-22 20:13:07 +02:00
ajax-detail-operation2.php Update test with new architecture 2017-07-22 20:13:07 +02:00
ajax-detail-operation3.php Update test with new architecture 2017-07-22 20:13:07 +02:00
ajax-detail-operation4.php Update test with new architecture 2017-07-22 20:13:07 +02:00
ajax-save-operation.php Fix test 2019-08-07 11:54:27 +02:00
ajax_acc_plan_mtable.php Replace PHPCOMPTA by NOALYSS 2019-07-27 13:18:21 +02:00
ajax_manage_table_sql.php Replace PHPCOMPTA by NOALYSS 2019-07-27 13:18:21 +02:00
card-list-bank.php rename scenario files 2017-09-03 15:05:58 +02:00
card-list-customer.php rename scenario files 2017-09-03 15:05:58 +02:00
cfgled rename scenario files 2017-09-03 15:05:58 +02:00
cfgpcmn.php rename scenario files 2017-09-03 15:05:58 +02:00
company.php rename scenario files 2017-09-03 15:05:58 +02:00
comptabilite_analytique.php Update test with new architecture 2017-07-22 20:13:07 +02:00
create-database.php Replace PHPCOMPTA by NOALYSS 2019-07-27 13:18:21 +02:00
FicheTest.php Improve Scenario Test 2019-10-26 16:36:50 +02:00
fin-confirm.php rename scenario files 2017-09-03 15:05:58 +02:00
fin-paiement.php rename scenario files 2017-09-03 15:05:58 +02:00
fin-record.php rename scenario files 2017-09-03 15:05:58 +02:00
fisto.php rename scenario files 2017-09-03 15:05:58 +02:00
fsaldo.php rename scenario files 2017-09-03 15:05:58 +02:00
historic-card.php Improve Scenario Test 2019-10-26 16:36:50 +02:00
html_tab.test.php Replace PHPCOMPTA by NOALYSS 2019-07-27 13:18:21 +02:00
HtmlInput.test.php New : InputSwitch, display a switch and change the value of a hidden variable 2019-08-26 11:36:24 +02:00
icon_actionTest.php New : icon_action:slider icon_action:comment 2019-08-27 19:28:38 +02:00
inplace_edit.test.php mantis #1690: Bug : impossible d'utiliser < dans Inplace_Edit 2019-01-27 21:06:37 +01:00
menufin.php rename scenario files 2017-09-03 15:05:58 +02:00
ods-confirm.php rename scenario files 2017-09-03 15:05:58 +02:00
ods-new.php rename scenario files 2017-09-03 15:05:58 +02:00
ods-record.php rename scenario files 2017-09-03 15:05:58 +02:00
package_repository.test.php Replace PHPCOMPTA by NOALYSS 2019-07-27 13:18:21 +02:00
pdf_operation.php Improve Scenario Test 2019-10-26 16:36:50 +02:00
progress-bar.test.php New : code for progress bar 2018-02-03 14:28:37 +01:00
readme.txt Documentation and clean code 2017-01-08 13:30:08 +01:00
scenario-1415995238.php Update test with new architecture 2017-07-22 20:13:07 +02:00
scenario-1415995308.php Task #1044 - Implementation de Test 2014-11-15 02:18:21 +01:00
scenario-1415995434.php Task #1044 - Implementation de Test 2014-11-15 02:18:21 +01:00
scenario-1415995437.php Task #1044 - Implementation de Test 2014-11-15 02:18:21 +01:00
scenario-1415995575.php Task #1044 - Implementation de Test 2014-11-15 02:18:21 +01:00
scenario-1415997148.php Task #1044 - Implementation de Test 2014-11-15 02:18:21 +01:00
scenario-1415997352.php Task #1044 - Implementation de Test 2014-11-15 02:18:21 +01:00
scenario-1415997358.php Task #1044 - Implementation de Test 2014-11-15 02:18:21 +01:00
scenario-1415997389.php Task #1044 - Implementation de Test 2014-11-15 02:18:21 +01:00
scenario-1415997404.php Task #1044 - Implementation de Test 2014-11-15 02:18:21 +01:00
scenario-1415997407.php Task #1044 - Implementation de Test 2014-11-15 02:18:21 +01:00
scenario-1415998124.php Task #1044 - Implementation de Test 2014-11-15 02:18:21 +01:00
scenario-1416078146.php Task #1044 - Implementation de Test 2014-11-18 18:00:59 +01:00
scenario-ajax-add-card.php Task #1044 - Implementation de Test 2014-11-15 17:07:06 +01:00
scenario-historic.php Task #0001426: Distinction dans l'affichage des historiques des OD: libellé + fiche 2017-09-02 23:14:52 +02:00
scenario-verif_bilan.php Task #1044 - Implementation de Test 2014-11-15 18:45:06 +01:00
select-box-test.php Select_Box add a search 2019-08-07 14:55:16 +02:00
test_acc_plan_mtable.php Replace PHPCOMPTA by NOALYSS 2019-07-27 13:18:21 +02:00
test_currency_mtable.php Currency : add test file + database file + mtable 2018-04-21 20:34:48 +02:00
test_manage_table_sql.php fixup! Improve message progress bar + translation 2019-08-08 09:08:42 +02:00
test_parse_formula.php rename scenario files 2017-09-03 15:05:58 +02:00
tva_parameter.php Replace PHPCOMPTA by NOALYSS 2019-07-27 13:18:21 +02:00
vehisto rename scenario files 2017-09-03 15:05:58 +02:00
ven-call-menu.php rename scenario files 2017-09-03 15:05:58 +02:00
ven-new.php rename scenario files 2017-09-03 15:05:58 +02:00
ven-record.php rename scenario files 2017-09-03 15:05:58 +02:00

* 
 * Copyright (C) 2014 Dany De Bontridder <dany@alchimerys.be>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-----------------------
    FRANCAIS
-----------------------
Afin d'avoir les scénarios pour les rejouer avec test.php.

Dans include/config.inc.php, changer 
define ('LOGINPUT',false); par
define ('LOGINPUT',true); 

Ensuite, aller dans votre dossier de test et faites une action (une vente, un achat...), vous devez ouvrir le fichier test.php
ce que vous venez de faire a été sauvé dans le répertoire défini par $_ENV['TMP'], (sous linux il s'agit de /tmp )avec un nom ressemblant à scenario-<nombre>.php
    
Vous devez d'abord copier ce fichier dans ce répertoire-ci

Si vous pointez votre browser sur noalyss/html/test.php (après avoir créé le fichier authorized_debug) en cliquant sur le 
lien avec le nom de fichier vous pourrez rejouer l'action. Vous pouvez améliorer la description en changeant l'annotation //@description: <CODE> 

Vous pouvez aussi utiliser un nom de fichier plus parlant.    
    
L'objectif étant de pouvoir tester et de rejouer facilement les actions que vous avez faites.

Il est aussi possible de faire vos tests unitaire ici , autrement qu'avec PHPUNIT (voir répertiore php-unit)


-----------------------
     ENGLISH
-----------------------
If you want to use scenario in order to use them with test.php 
You must have in include/config.inc.php

define ('LOGINPUT',true); 

you must also create the file authorized_debug (this file is empty)

Next step you perform the action you like to test or change , a file into $_ENV['TMP'] has been created, you
copy this file into tghe noalyss/scenario folder.

You point  you browser  noalyss/html/test.php an you click on the link with the name of the file

and you can rerun the file , it works also for ajax.

It is useful to test ajax answer , unit test or testing a class