View | Details | Raw Unified | Return to bug 21262
Collapse All | Expand All

(-)a/Koha/Number/Price.pm (+5 lines)
Lines 61-66 sub format_for_editing { Link Here
61
        mon_decimal_point => '.',
61
        mon_decimal_point => '.',
62
    };
62
    };
63
63
64
    # To avoid the system to crash, we will not format big number
65
    # We divide per 100 because we want to keep the default DECIMAL_DIGITS (2)
66
    # error - round() overflow. Try smaller precision or use Math::BigFloat
67
    return $self->value if $self->value > Number::Format::MAX_INT/100;
68
64
    return Number::Format->new(%$format_params)->format_price($self->value);
69
    return Number::Format->new(%$format_params)->format_price($self->value);
65
}
70
}
66
71
(-)a/installer/data/mysql/kohastructure.sql (-3 / +2 lines)
Lines 2859-2866 CREATE TABLE `aqbudgets` ( -- information related to Funds Link Here
2859
  `budget_name` varchar(80) default NULL, -- name assigned to the fund by the user
2859
  `budget_name` varchar(80) default NULL, -- name assigned to the fund by the user
2860
  `budget_branchcode` varchar(10) default NULL, -- branch that this fund belongs to (branches.branchcode)
2860
  `budget_branchcode` varchar(10) default NULL, -- branch that this fund belongs to (branches.branchcode)
2861
  `budget_amount` decimal(28,6) NULL default '0.00', -- total amount for this fund
2861
  `budget_amount` decimal(28,6) NULL default '0.00', -- total amount for this fund
2862
  `budget_encumb` decimal(28,6) NULL default '0.00', -- not used in the code
2862
  `budget_encumb` decimal(28,6) NULL default '0.00', -- budget warning at percentage
2863
  `budget_expend` decimal(28,6) NULL default '0.00', -- not used in the code
2863
  `budget_expend` decimal(28,6) NULL default '0.00', -- budget warning at amount
2864
  `budget_notes` LONGTEXT, -- notes related to this fund
2864
  `budget_notes` LONGTEXT, -- notes related to this fund
2865
  `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- date and time this fund was last touched (created or modified)
2865
  `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- date and time this fund was last touched (created or modified)
2866
  `budget_period_id` int(11) default NULL, -- id of the budget that this fund belongs to (aqbudgetperiods.budget_period_id)
2866
  `budget_period_id` int(11) default NULL, -- id of the budget that this fund belongs to (aqbudgetperiods.budget_period_id)
2867
- 

Return to bug 21262