feat (frontend): add payment method on summary purchase.

This commit is contained in:
Mono Mono 2024-11-11 13:47:11 -05:00
parent ea77124ee4
commit 8f62dfb9ec
2 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,12 @@
<v-list-item-subtitle v-if="purchase.customer">{{ purchase.customer.name }}</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
<v-list-item>
<v-list-item-content>
<v-list-item-title>Pagado en:</v-list-item-title>
<v-list-item-subtitle v-if="purchase.payment_method">{{ purchase.payment_method }}</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
<v-list-item>
<v-list-item-content>
<v-list-item-title>Total:</v-list-item-title>

View File

@ -164,6 +164,7 @@ def purchase_json_summary(request, id):
'name': purchase.customer.name,
# 'phone': _mask_phone(purchase.customer.phone)
},
'payment_method': purchase.payment_method,
'set_lines': lines,
}
return JsonResponse(to_response, safe=False)