Lines 170-188
if ( $bookseller->{listincgst} ) {
Link Here
|
170 |
$ecost = $order->{ecost}; |
170 |
$ecost = $order->{ecost}; |
171 |
$unitprice = $order->{unitprice}; |
171 |
$unitprice = $order->{unitprice}; |
172 |
} else { |
172 |
} else { |
173 |
$rrp = $order->{rrp} / ( 1 + $order->{gstrate} ); |
173 |
$unitprice = $order->{unitprice} + ($order->{unitprice}*$order->{gstrate} ); |
174 |
$ecost = $order->{ecost} / ( 1 + $order->{gstrate} ); |
|
|
175 |
$unitprice = $order->{unitprice} / ( 1 + $order->{gstrate} ); |
176 |
} |
174 |
} |
177 |
} else { |
175 |
} else { |
178 |
if ( $bookseller->{invoiceincgst} ) { |
176 |
if ( $bookseller->{invoiceincgst} ) { |
179 |
$rrp = $order->{rrp} * ( 1 + $order->{gstrate} ); |
177 |
$rrp = $order->{rrp} +($order->{rrp}*$order->{gstrate} ); |
180 |
$ecost = $order->{ecost} * ( 1 + $order->{gstrate} ); |
178 |
$ecost = $order->{ecost} +($order->{ecost}*$order->{gstrate}); |
181 |
$unitprice = $order->{unitprice} * ( 1 + $order->{gstrate} ); |
|
|
182 |
} else { |
179 |
} else { |
183 |
$rrp = $order->{rrp}; |
180 |
$unitprice = $order->{unitprice} + ($order->{unitprice}*$order->{gstrate} ); |
184 |
$ecost = $order->{ecost}; |
181 |
$rrp = $order->{rrp} +($order->{rpp}*$order->{gstrate} ); |
185 |
$unitprice = $order->{unitprice}; |
182 |
$ecost = $order->{ecost} +($order->{ecost}*$order->{gstrate}) |
186 |
} |
183 |
} |
187 |
} |
184 |
} |
188 |
|
185 |
|
189 |
- |
|
|