Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
26 | 3 | public function getImage($sale) |
|
27 | { |
||
28 | 3 | $client = $sale->getClient(); |
|
29 | $params = [ |
||
30 | 3 | $sale->getCompany()->getRuc(), |
|
31 | 3 | $sale->getTipoDoc(), |
|
32 | 3 | $sale->getSerie(), |
|
33 | 3 | $sale->getCorrelativo(), |
|
34 | 3 | number_format($sale->getMtoIGV(), 2, '.', ''), |
|
35 | 3 | number_format($sale->getMtoImpVenta(), 2, '.', ''), |
|
36 | 3 | $sale->getFechaEmision()->format('Y-m-d'), |
|
37 | 3 | $client->getTipoDoc(), |
|
38 | 3 | $client->getNumDoc(), |
|
39 | ]; |
||
40 | 3 | $content = implode('|', $params).'|'; |
|
41 | |||
42 | 3 | return $this->getQrImage($content); |
|
43 | } |
||
57 |