File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,12 @@ public static function start($options = array())
103103 if (isset ($ options ['products ' ])) {
104104 foreach ((array )$ options ['products ' ] as $ product ) {
105105 $ taxClass = 'N ' ;
106+ $ taxPercentage = 0 ;
106107 if (isset ($ product ['tax ' ])) {
107108 $ taxClass = Helper::calculateTaxClass ($ product ['price ' ], $ product ['tax ' ]);
109+ $ taxPercentage = round (Helper::calculateTaxPercentage ($ product ['price ' ], $ product ['tax ' ]));
108110 }
109111
110- $ taxPercentage = round (Helper::calculateTaxPercentage ($ product ['price ' ], $ product ['tax ' ]));
111112 if (isset ($ product ['vatPercentage ' ]) && is_numeric ($ product ['vatPercentage ' ])) {
112113 $ taxPercentage = round ($ product ['vatPercentage ' ], 2 );
113114 $ taxClass = Helper::calculateTaxClass (100 + $ taxPercentage , $ taxPercentage );
You can’t perform that action at this time.
0 commit comments