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

(-)a/acqui/orderreceive.pl (-10 / +6 lines)
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} + ({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} +({rrp}*$order->{gstrate} );
180
        $ecost = $order->{ecost} * ( 1 + $order->{gstrate} );
178
        $ecost = $order->{ecost} +({ecost}*$order->{gstrate});
181
        $unitprice = $order->{unitprice} * ( 1 + $order->{gstrate} );
182
    } else {
179
    } else {
183
        $rrp = $order->{rrp};
180
        $unitprice = $order->{unitprice} + ({unitprice}*$order->{gstrate} );
184
        $ecost = $order->{ecost};
181
	$rrp = $order->{rrp} +({rrp}*$order->{gstrate} );
185
        $unitprice = $order->{unitprice};
182
        $ecost = $order->{ecost} +({ecost}*$order->{gstrate}
186
    }
183
    }
187
 }
184
 }
188
185
189
- 

Return to bug 10461