| @@ 50-57 (lines=8) @@ | ||
| 47 | * @param Despatch $despatch |
|
| 48 | * @return BillResult |
|
| 49 | */ |
|
| 50 | public function sendDispatch(Despatch $despatch) |
|
| 51 | { |
|
| 52 | $xml = $this->builder->buildDespatch($despatch); |
|
| 53 | $filename = $despatch->getFilename($this->company->getRuc()); |
|
| 54 | ||
| 55 | $this->setService(true); |
|
| 56 | return $this->getBillResult($xml, $filename); |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * Envia una Retencion. |
|
| @@ 65-72 (lines=8) @@ | ||
| 62 | * @param Retention $retention |
|
| 63 | * @return BillResult |
|
| 64 | */ |
|
| 65 | public function sendRetention(Retention $retention) |
|
| 66 | { |
|
| 67 | $xml = $this->builder->buildRetention($retention); |
|
| 68 | $filename = $retention->getFilename($this->company->getRuc()); |
|
| 69 | ||
| 70 | $this->setService(); |
|
| 71 | return $this->getBillResult($xml, $filename); |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * Envia una Percepcion. |
|
| @@ 80-87 (lines=8) @@ | ||
| 77 | * @param Perception $perception |
|
| 78 | * @return BillResult |
|
| 79 | */ |
|
| 80 | public function sendPerception(Perception $perception) |
|
| 81 | { |
|
| 82 | $xml = $this->builder->buildPerception($perception); |
|
| 83 | $filename = $perception->getFilename($this->company->getRuc()); |
|
| 84 | ||
| 85 | $this->setService(); |
|
| 86 | return $this->getBillResult($xml, $filename); |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * Envia una Resumen de Reversiones. |
|
| @@ 95-102 (lines=8) @@ | ||
| 92 | * @param Reversion $reversion |
|
| 93 | * @return SummaryResult |
|
| 94 | */ |
|
| 95 | public function sendReversion(Reversion $reversion) |
|
| 96 | { |
|
| 97 | $xml = $this->builder->buildReversion($reversion); |
|
| 98 | $filename = $reversion->getFileName($this->company->getRuc()); |
|
| 99 | ||
| 100 | $this->setService(); |
|
| 101 | return $this->getSummaryResult($xml, $filename); |
|
| 102 | } |
|
| 103 | ||
| 104 | /** |
|
| 105 | * Get Status by Ticket. |
|