|
Lines 214-220
if ( $count == 1 ) {
Link Here
|
| 214 |
quantityreceived => $order->{'quantityreceived'}, |
214 |
quantityreceived => $order->{'quantityreceived'}, |
| 215 |
rrp => sprintf( "%.2f", $rrp ), |
215 |
rrp => sprintf( "%.2f", $rrp ), |
| 216 |
ecost => sprintf( "%.2f", $ecost ), |
216 |
ecost => sprintf( "%.2f", $ecost ), |
| 217 |
unitprice => sprintf( "%.2f", $unitprice), |
|
|
| 218 |
memberfirstname => $member->{firstname} || "", |
217 |
memberfirstname => $member->{firstname} || "", |
| 219 |
membersurname => $member->{surname} || "", |
218 |
membersurname => $member->{surname} || "", |
| 220 |
invoiceid => $invoice->{invoiceid}, |
219 |
invoiceid => $invoice->{invoiceid}, |
|
Lines 226-231
if ( $count == 1 ) {
Link Here
|
| 226 |
surnamesuggestedby => $suggestion->{surnamesuggestedby}, |
225 |
surnamesuggestedby => $suggestion->{surnamesuggestedby}, |
| 227 |
firstnamesuggestedby => $suggestion->{firstnamesuggestedby}, |
226 |
firstnamesuggestedby => $suggestion->{firstnamesuggestedby}, |
| 228 |
); |
227 |
); |
|
|
228 |
|
| 229 |
# regardless of the content of $unitprice e.g 0 or '' or any string will return in these cases 0.00 |
| 230 |
# and the 'IF' in the .tt will show 0.00 and not 'ecost' (see BZ 7129) |
| 231 |
# So if $unitprice == 0 we don't create unitprice |
| 232 |
if ( $unitprice != 0) { |
| 233 |
$template->param( |
| 234 |
unitprice => sprintf( "%.2f", $unitprice), |
| 235 |
); |
| 236 |
} |
| 229 |
} |
237 |
} |
| 230 |
else { |
238 |
else { |
| 231 |
my @loop; |
239 |
my @loop; |
| 232 |
- |
|
|