Skip to content
Browse files

[#14554159] reverting invasive schema changes

  • Loading branch information...
1 parent bc85cbd commit 6c34fbc1085c09e420210ee99d417b979f76bfff @ctfliblime ctfliblime committed Feb 6, 2012
Showing with 4 additions and 9 deletions.
  1. +1 −0 cgi/members/paycollect.pl
  2. +3 −3 installer/data/mysql/kohastructure.sql
  3. +0 −6 installer/data/mysql/updatedatabase.pl
View
1 cgi/members/paycollect.pl
@@ -100,6 +100,7 @@
);
}
$total_due = sprintf('%.2f',$total_due);
+$total_paid = sprintf('%.2f',$total_paid);
if ( $total_paid and $total_paid ne '0.00' ) {
if (( $total_paid <= 0) or ($total_paid > $total_due )) {
View
6 installer/data/mysql/kohastructure.sql
@@ -25,12 +25,12 @@ CREATE TABLE `accountlines` (
`accountno` smallint(6) NOT NULL default 0,
`itemnumber` int(11) default NULL,
`date` date default NULL,
- `amount` decimal(10,2) NOT NULL default 0,
+ `amount` decimal(28,6) default NULL,
`description` mediumtext,
`dispute` mediumtext,
`accounttype` varchar(5) default NULL,
- `amountoutstanding` decimal(10,2) NOT NULL default 0,
- `lastincrement` decimal(10,2) NOT NULL default 0 ,
+ `amountoutstanding` decimal(28,6) default NULL,
+ `lastincrement` decimal(28,6) default NULL,
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`notify_id` int(11) NOT NULL default 0,
`notify_level` int(2) NOT NULL default 0,
View
6 installer/data/mysql/updatedatabase.pl
@@ -4685,12 +4685,6 @@
SetVersion ($DBversion);
print "Upgrade to $DBversion done ( Allow lost_items.itemtype to be nullable )\n";
}
-$DBversion = '4.09.00.001';
-if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
- $dbh->do('ALTER TABLE accountlines change amount amount decimal(10,2) NOT NULL DEFAULT 0, change amountoutstanding amountoutstanding decimal(10,2) NOT NULL DEFAULT 0, change lastincrement lastincrement decimal(10,2) NOT NULL DEFAULT 0');
- SetVersion ($DBversion);
- print "Upgrade to $DBversion done ( Prevent floating point rounding problems for money fields in accountlines )\n";
-}
$DBversion = '4.09.00.002';
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {

0 comments on commit 6c34fbc

Please sign in to comment.
Something went wrong with that request. Please try again.