Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
onestartup-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Angel Martin
onestartup-shop
Commits
8ffbb955
Commit
8ffbb955
authored
May 31, 2018
by
Angel MAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
campo de facturacion
parent
3b9aced4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
0 deletions
+10
-0
2018_05_29_220810_add_references_to_shipping_table.php
...ns/2018_05_29_220810_add_references_to_shipping_table.php
+2
-0
ShippingAddres.php
src/models/ShippingAddres.php
+1
-0
order.blade.php
src/views/mail/resumen/order.blade.php
+1
-0
fields-shipping.blade.php
src/views/public/forms/fields-shipping.blade.php
+6
-0
No files found.
src/migrations/2018_05_29_220810_add_references_to_shipping_table.php
View file @
8ffbb955
...
...
@@ -15,6 +15,7 @@ class AddReferencesToShippingTable extends Migration
{
Schema
::
table
(
'shipping_addres'
,
function
(
Blueprint
$table
)
{
$table
->
string
(
'referencias'
)
->
nullable
();
$table
->
string
(
'facturacion'
)
->
nullable
();
});
}
...
...
@@ -27,6 +28,7 @@ class AddReferencesToShippingTable extends Migration
{
Schema
::
table
(
'shipping_addres'
,
function
(
Blueprint
$table
)
{
$table
->
dropColumn
(
'referencias'
);
$table
->
dropColumn
(
'facturacion'
);
});
}
}
src/models/ShippingAddres.php
View file @
8ffbb955
...
...
@@ -16,6 +16,7 @@ class ShippingAddres extends Model
'estado'
,
'referencias'
,
'client_id'
,
'facturacion'
,
'shipping_price_id'
];
...
...
src/views/mail/resumen/order.blade.php
View file @
8ffbb955
...
...
@@ -39,6 +39,7 @@ Datos de envio:
-
Calle
:
***
{{
$shipping
->
calle
}}
Nro
.
{{
$shipping
->
numero
}},
col
.
{{
$shipping
->
colonia
}}
***
-
***
{{
$shipping
->
ciudad
}},
{{
$shipping
->
estado
}},
C
.
P
.
{{
$shipping
->
cp
}}
***
-
Referencias
:
***
{{
$shipping
->
referencias
}}
***
-
Requiere
factura
:
***
{{
$shipping
->
facturacion
}}
***
@
endcomponent
Gracias
por
tu
compra
,
<
br
>
...
...
src/views/public/forms/fields-shipping.blade.php
View file @
8ffbb955
...
...
@@ -34,6 +34,11 @@
</div>
<div
class=
"form-group"
>
{!! Form::label('facturacion', '¿Necesitaras factura?', ['class'=>'']) !!}
{!! Form::select('facturacion',['No'=>'No', 'Si'=>'Si'], $addres->facturacion, ['class'=>'form-control','required'=>'required']) !!}
</div>
<div
class=
"form-group"
>
{!! Form::label('shipping_price_id', 'Tipo de envio', ['class'=>'']) !!}
{!! Form::select('shipping_price_id', $shipping, $addres->shipping_price_id != null ? $addres->shipping_price_id : null,['class'=>'form-control','required'=>'required']) !!}
</div>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment