|
@@ 1043-1053 (lines=11) @@
|
| 1040 |
|
$this->recalculate_total(); |
| 1041 |
|
} |
| 1042 |
|
|
| 1043 |
|
private function decrease_subtotal( $amount = 0.00 ) { |
| 1044 |
|
$amount = (float) $amount; |
| 1045 |
|
$this->subtotal -= $amount; |
| 1046 |
|
$this->subtotal = wpinv_round_amount( $this->subtotal ); |
| 1047 |
|
|
| 1048 |
|
if ( $this->subtotal < 0 ) { |
| 1049 |
|
$this->subtotal = 0; |
| 1050 |
|
} |
| 1051 |
|
|
| 1052 |
|
$this->recalculate_total(); |
| 1053 |
|
} |
| 1054 |
|
|
| 1055 |
|
private function increase_fees( $amount = 0.00 ) { |
| 1056 |
|
$amount = (float)$amount; |
|
@@ 1063-1073 (lines=11) @@
|
| 1060 |
|
$this->recalculate_total(); |
| 1061 |
|
} |
| 1062 |
|
|
| 1063 |
|
private function decrease_fees( $amount = 0.00 ) { |
| 1064 |
|
$amount = (float) $amount; |
| 1065 |
|
$this->fees_total -= $amount; |
| 1066 |
|
$this->fees_total = wpinv_round_amount( $this->fees_total ); |
| 1067 |
|
|
| 1068 |
|
if ( $this->fees_total < 0 ) { |
| 1069 |
|
$this->fees_total = 0; |
| 1070 |
|
} |
| 1071 |
|
|
| 1072 |
|
$this->recalculate_total(); |
| 1073 |
|
} |
| 1074 |
|
|
| 1075 |
|
public function recalculate_total() { |
| 1076 |
|
global $wpi_nosave; |