File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -137,15 +137,15 @@ public function add_for_kobo($amountinkobo)
137137 if ($ amountinkobo > $ this ->flatline ) {
138138 return $ amountinkobo + $ this ->cap ;
139139 } elseif ($ amountinkobo > $ this ->crossover ) {
140- return round ((( $ amountinkobo + $ this ->additional_charge ) / $ this ->charge_divider ), 2 );
140+ return ceil (( $ amountinkobo + $ this ->additional_charge ) / $ this ->charge_divider );
141141 } else {
142- return round (( $ amountinkobo / $ this ->charge_divider ), 2 );
142+ return ceil ( $ amountinkobo / $ this ->charge_divider );
143143 }
144144 }
145145
146146 public function add_for_ngn ($ amountinngn )
147147 {
148- return $ this ->add_for_kobo (round (( $ amountinngn * 100 ), 2 )) / 100 ;
148+ return $ this ->add_for_kobo (ceil ( $ amountinngn * 100 )) / 100 ;
149149 }
150150}
151151
You can’t perform that action at this time.
0 commit comments