Formato correcto de fecha
This commit is contained in:
@ -36,13 +36,13 @@ class Customer extends Ideal\Repository
|
||||
{
|
||||
$model->id = $this->saveNew(
|
||||
['rut', 'toku_id', 'created_at'],
|
||||
[implode('', [$model->persona->rut, $model->persona->digito]), $model->toku_id, (new DateTimeImmutable())->format('Y-m-d H:i:s.u')]
|
||||
[implode('', [$model->persona->rut, $model->persona->digito]), $model->toku_id, (new DateTimeImmutable())->format('Y-m-d H:i:s')]
|
||||
);
|
||||
return $model;
|
||||
}
|
||||
public function edit(Define\Model $model, array $new_data): Model\Venta\MediosPago\Toku\Customer
|
||||
{
|
||||
return $this->update($model, ['rut', 'toku_id', 'updated_at'], array_merge($new_data, ['updated_at' => (new DateTimeImmutable())->format('Y-m-d H:i:s.u')]));
|
||||
return $this->update($model, ['rut', 'toku_id', 'updated_at'], array_merge($new_data, ['updated_at' => (new DateTimeImmutable())->format('Y-m-d H:i:s')]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -33,13 +33,13 @@ class Invoice extends Ideal\Repository
|
||||
{
|
||||
$model->id = $this->saveNew(
|
||||
['cuota_id', 'toku_id', 'created_at'],
|
||||
[$model->cuota->id, $model->toku_id, (new DateTimeImmutable())->format('Y-m-d H:i:s.u')]
|
||||
[$model->cuota->id, $model->toku_id, (new DateTimeImmutable())->format('Y-m-d H:i:s')]
|
||||
);
|
||||
return $model;
|
||||
}
|
||||
public function edit(Define\Model $model, array $new_data): Model\Venta\MediosPago\Toku\Invoice
|
||||
{
|
||||
return $this->update($model, ['cuota_id', 'toku_id', 'updated_at'], array_merge($new_data, ['updated_at' => (new DateTimeImmutable())->format('Y-m-d H:i:s.u')]));
|
||||
return $this->update($model, ['cuota_id', 'toku_id', 'updated_at'], array_merge($new_data, ['updated_at' => (new DateTimeImmutable())->format('Y-m-d H:i:s')]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -34,13 +34,13 @@ class Subscription extends Ideal\Repository
|
||||
{
|
||||
$model->id = $this->saveNew(
|
||||
['venta_id', 'toku_id', 'created_at'],
|
||||
[$model->venta->id, $model->toku_id, (new DateTimeImmutable())->format('Y-m-d H:i:s.u')]
|
||||
[$model->venta->id, $model->toku_id, (new DateTimeImmutable())->format('Y-m-d H:i:s')]
|
||||
);
|
||||
return $model;
|
||||
}
|
||||
public function edit(Define\Model $model, array $new_data): Model\Venta\MediosPago\Toku\Subscription
|
||||
{
|
||||
return $this->update($model, ['venta_id', 'toku_id', 'updated_at'], array_merge($new_data, ['updated_at' => (new DateTimeImmutable())->format('Y-m-d H:i:s.u')]));
|
||||
return $this->update($model, ['venta_id', 'toku_id', 'updated_at'], array_merge($new_data, ['updated_at' => (new DateTimeImmutable())->format('Y-m-d H:i:s')]));
|
||||
}
|
||||
|
||||
public function fetchByVenta(int $venta_id): Model\Venta\MediosPago\Toku\Subscription
|
||||
|
Reference in New Issue
Block a user