#14 style(SummaryPurchase): add info table.
This commit is contained in:
		| @@ -39,6 +39,24 @@ | ||||
|           {{ currencyFormat(calculateSubtotal(item.unit_price, item.quantity)) }} | ||||
|         </template> | ||||
|       </v-data-table-virtual> | ||||
|       <v-alert type="info" class="my-4"> | ||||
|         Recuerda adicionar a la planilla física lo siguiente | ||||
|         <v-data-table | ||||
|           :headers="headersTemplate" | ||||
|           :items="[purchase]" | ||||
|           item-key="id" | ||||
|           hide-default-footer | ||||
|         > | ||||
|           <template v-slot:item="{ item }"> | ||||
|             <tr> | ||||
|               <td>{{ item.id }}</td> | ||||
|               <td>{{ item.date }}</td> | ||||
|               <td><span v-if="item.customer">{{ item.customer.name }}</span></td> | ||||
|               <td><span v-if="item.lines">{{ currencyFormat(calculateTotal(item.lines)) }}</span></td> | ||||
|             </tr> | ||||
|           </template> | ||||
|         </v-data-table> | ||||
|       </v-alert> | ||||
|       <div class="text-center"> | ||||
|         <v-btn :to="{ path: '/' }" color="green">Ir al inicio</v-btn> | ||||
|       </div> | ||||
| @@ -65,6 +83,12 @@ | ||||
|           { title: 'Cantidad', value: 'quantity' }, | ||||
|           { title: 'Subtotal', value: 'subtotal' }, | ||||
|         ], | ||||
|         headersTemplate: [ | ||||
|           {title: 'Compra', value: 'id'}, | ||||
|           {title: 'Fecha', value: 'date'}, | ||||
|           {title: 'Nombre', value: 'customer.name'}, | ||||
|           {title: 'Valor', value: ''}, | ||||
|         ], | ||||
|       }; | ||||
|     }, | ||||
|     created() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user