Habilitando la selección de método de pago en la compra #72

Merged
mono merged 12 commits from chose_pay_method_on_purchase_#47 into main 2024-11-11 16:27:22 -05:00
2 changed files with 7 additions and 0 deletions
Showing only changes of commit 8f62dfb9ec - Show all commits

View File

@ -23,6 +23,12 @@
<v-list-item-subtitle v-if="purchase.customer">{{ purchase.customer.name }}</v-list-item-subtitle> <v-list-item-subtitle v-if="purchase.customer">{{ purchase.customer.name }}</v-list-item-subtitle>
</v-list-item-content> </v-list-item-content>
</v-list-item> </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>
<v-list-item-content> <v-list-item-content>
<v-list-item-title>Total:</v-list-item-title> <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, 'name': purchase.customer.name,
# 'phone': _mask_phone(purchase.customer.phone) # 'phone': _mask_phone(purchase.customer.phone)
}, },
'payment_method': purchase.payment_method,
'set_lines': lines, 'set_lines': lines,
} }
return JsonResponse(to_response, safe=False) return JsonResponse(to_response, safe=False)