chezbas / lisha

liste handle
3 stars 2 forks source link

Management FLOAT & INT value #11

Open cobalt74 opened 10 years ago

cobalt74 commented 10 years ago

changes related

Bugs

chezbas commented 10 years ago

Update cell mode doesn't check control on INT type

Unit test case: Define a column with INT feature add a new row ( control ok ) Try to update straight on cell ==> update done Expected results : Error message

cobalt74 commented 10 years ago

@chezbas est ce que tu peux ajouter à la table lisha_language

chezbas commented 10 years ago

Ok, c’est fait J’ai supprimé la table lisha_text et activé l'utilisation des fichiers xxx.json j’ai renommé la table lisha_language en lisha_i18n Bref.. have fun Le 5 nov. 2013 à 22:40, Cobalt74 notifications@github.com a écrit :

@chezbas est ce que tu peux ajouter à la table lisha_language

le champ : number_of_decimal INT(2) ? — Reply to this email directly or view it on GitHub.

cobalt74 commented 10 years ago

Pour récapituler, il faut :

define("__LISHA_TABLE_LOCALIZATION__","lisha_i18n");    // Localization information

Pour le raccourcis de la doc ?

chezbas commented 10 years ago

Cell update Test case : On a FLOAT column type $obj_lisha_tran>define_column("transaction.my_numeric",'my_numeric','MyNum',FLOAT,WRAP,LEFT); $obj_lisha_tran->define_attribute('__column_number_of_decimal', 7,'my_numeric');

Input value "123" and validate Input value "a" straight in cell and validate

Result recorded is 0

Expected results : Error message as in line update that said : You have to input a numeric value !! Escape key exit cells update mode and return to display

chezbas commented 10 years ago

Have to enable NULL feature on numeric column if you want to display blank

chezbas commented 10 years ago

Row update input NULL value rise a unexpected message error error_message_to_fix

chezbas commented 10 years ago

Display bug: Test case on e dit line mode : choose a line with decimal value data recover in input field is not localized Here below an example delta

cobalt74 commented 10 years ago

ouep je sais !! :) il reste ça : Edit line recover value - Localisation decimal symbol

cobalt74 commented 10 years ago

faudra faire des fonctions dans chaque classe BDD pour être plus propre.

chezbas commented 10 years ago

Yes sir, A clean pass to do for a lot of things ;)

chezbas commented 10 years ago

Have a bug

Test case Edit line mode with numeric column capture decran 2013-11-14 a 06 17 31 Clear content and check update box capture decran 2013-11-14 a 06 17 41 Press enter to record modification rise an error capture decran 2013-11-14 a 06 17 09

Error_log file side rise a notice on query error UPDATE transaction SET my_numeric = WHERE (index = "3")