Skip to content

Commit

Permalink
update in generate factura
Browse files Browse the repository at this point in the history
  • Loading branch information
gogl92 committed Dec 5, 2017
1 parent 17247fc commit f2d87ee
Show file tree
Hide file tree
Showing 21 changed files with 36 additions and 4 deletions.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified composer.json
100644 → 100755
Empty file.
Empty file modified src/Catalogos.php
100644 → 100755
Empty file.
Empty file modified src/Facturacom.php
100644 → 100755
Empty file.
5 changes: 3 additions & 2 deletions src/Facturacom33.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@

use inquid\facturacom\models\Cliente;
use inquid\facturacom\models\EmpresaFacturadora;
use inquid\facturacom\models\Error;
use inquid\facturacom\models\Factura;
use inquid\facturacom\models\Factura33;
use inquid\facturacom\models\Error;
use inquid\facturacom\models\Serie;
use inquid\facturacom\models\ResponseFactura;
use yii\base\Model;
use yii\db\ActiveRecord;

Expand Down Expand Up @@ -158,7 +159,7 @@ public function createFactura33($factura)
$this->API_VERSION = 'api/v3';
if ($factura->validate()) {
try {
return $this->booleanResponse($this->sendRequest('post', 'cfdi33/create', $factura->getAttributes()));
return $this->sendRequest('post', 'cfdi33/create', $factura);
} catch (\Exception $exception) {
return new Error(500, $exception->getMessage());
}
Expand Down
Empty file modified src/HttpClient.php
100644 → 100755
Empty file.
Empty file modified src/HttpClientV3.php
100644 → 100755
Empty file.
Empty file modified src/models/Cliente.php
100644 → 100755
Empty file.
Empty file modified src/models/Conceptos.php
100644 → 100755
Empty file.
Empty file modified src/models/CuentasBanco.php
100644 → 100755
Empty file.
Empty file modified src/models/DataCatalogos.php
100644 → 100755
Empty file.
Empty file modified src/models/DocumentoAbonado.php
100644 → 100755
Empty file.
Empty file modified src/models/EmpresaFacturadora.php
100644 → 100755
Empty file.
Empty file modified src/models/Error.php
100644 → 100755
Empty file.
Empty file modified src/models/Factura.php
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions src/models/Factura33.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class Factura33 extends ActiveRecord
/**
* @inheritdoc
*/
public function rules()
/*public function rules()
{
return [
[['rfc', 'forma_pago', 'metodo_pago', 'num_orden', 'serie_factura', 'send_email', 'exchange_rate', 'currencie'], 'required'],
Expand All @@ -179,7 +179,7 @@ public function rules()
[['forma_pago'], 'string', 'max' => 100],
[['num_orden'], 'string', 'max' => 25]
];
}
}*/

/**
* @inheritdoc
Expand Down
Empty file modified src/models/Impuestos.php
100644 → 100755
Empty file.
Empty file modified src/models/Producto.php
100644 → 100755
Empty file.
31 changes: 31 additions & 0 deletions src/models/ResponseFactura.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php
/**
* Created by PhpStorm.
* User=> macbook
* Date=> 12/4/17
* Time=> 4=>05 PM
*/

namespace inquid\facturacom\models;


use yii\base\Model;

class ResponseFactura extends Model
{
public $status = '';
public $SAT = [
'UUID' => '',
'FechaTimbrado' => '',
'noCertificadoSAT' => '',
'version' => '',
'selloSAT' => '',
'selloCFD' => ''
];
public $INV = [
'Serie' => '',
'Folio' => '',
'UID' => '',
];
public $message = '';
}
Empty file modified src/models/Serie.php
100644 → 100755
Empty file.

0 comments on commit f2d87ee

Please sign in to comment.