### New Development
-* Bug 35. SQL migration, version update, not working for PG based databases.
-* JS - Event, on expense sum in log numbers found at beginning of lines.
+* ✔ Bug 35. SQL migration, version update, not working for PG based databases.
+* ✔ JS - Event, on expense sum in log numbers found at beginning of lines.
* ✔ Update to CNF v.2.2, branch to $RELEASE_VER = 2.3, Earth Stage initial.
* Plugins
* Perl files enabled by being including them in main.cnf file under the <<PLUGINS<>>> list, and placed in the plugins directory.
### v. 2.2 Encountered/Fixed
-* Bug 35, Migration and version updating SQL is wrong for PG database, it doesn't have rowid's.
+* ✔ Bug 35, Migration and version updating SQL is wrong for PG database, it doesn't have rowid's.
* Bug 34, DB fix in config, removes associated RTF documents, for some reason.
* ✔ Bug 33 Changing session timeout in config to an lib. background unparsable format cause unrecoverable system error.
* i.e. Putting +1hr instead of +1h.
}
$td_cat .= "<li id='$row[0]'><a href='#'>$row[1]</a></li>";
$td_itm_cnt++;
-
}
if($td_itm_cnt<5){#fill spacing.
for (my $i=0;$i<5-$td_itm_cnt;$i++){
my @keywords = split /\W/, $rs_keys;
if ($prm_vc && $prm_vc != $prm_xc) {
-
if(@vc_lst){
$stmS .= $prm_aa;
foreach (@vc_lst){
my $ct = $hshCats{$cid}; #ID_CAT
my $dt = DateTime::Format::SQLite->parse_datetime( $row[$i++] ); #LOG.DATE
my $log = $row[$i++]; #LOG.LOG
- my $rtf = $row[$i++]; #ID_RTF since v.1.8 but just RTF from v.2.1
+ my $rtf = $row[$i++]; #ID_RTF since v.1.8 but just RTF from v.2.1
my $am = $row[$i++]; #LOG.AMOUNT
my $af = $row[$i++]; #AFLAG -> Asset as 0, Income as 1, Expense as 2
my $sticky = $row[$i++]; #Sticky to top
my $pid = $row[$i++]; #PID actual log ID in View.
+ $am =~ s/^\D|\,//g; #trim if it is money sql data type formated.
+
if ( $af == 1 ) { #AFLAG Income, assets are neutral.
$sum += $am;
}
</div>
</td></tr>);
}
-
- # <span id="q-scroll$id"
- # style="height:auto; max-width:100%; max-height:480px; padding: 10px; background:#fffafa; overflow-x:scroll; overflow-y:auto;">
- # <div class="log" style="overflow-x:scroll; max-width:100%; scrollbar-width:none;">
- # <div id="q-container$id"></div></div>
- # </span>
-
$log_rc += 1;
if ( $rec_limit > 0 && $log_rc == $rec_limit ) {
offsetX: 5,
showTimeout: 100
});
+ $('#am').click(function(e){
+ e.preventDefault();
+ let v = $('#am').val();
+ if(v.length==0 || v==0.00){
+ const regex = /^\D*\d+\.*\d*/gm;
+ let str = $('#el').val();
+ let m; let tot = 0;
+
+ while ((m = regex.exec(str)) !== null) {
+ if (m.index === regex.lastIndex) {
+ regex.lastIndex++;
+ }
+ m.forEach( (match, groupIndex) => {
+ //console.log(`Found match, group ${groupIndex}: ${match}`);
+ tot += parseFloat(`${match}`.replace(/^\$/g,''));
+
+ });
+ }
+ $('#am').val(tot);
+
+ }
+
+
+ });
$('#sss_xc').poshytip({
content: "When checked, system will try to remember your view mode while in session.",
}
}).mouseleave(function(e){$("#cat_desc").hide();});
+
$( "#dlgValidation" ).dialog({
dialogClass: "alert",
buttons: [