Add Summary View Purchase

This commit is contained in:
cosmos
2024-08-03 12:37:21 -05:00
parent e9e64f58db
commit 108d983d74
4 changed files with 42 additions and 0 deletions

View File

@@ -102,6 +102,15 @@ def reconciliate_jar(request):
def reconciliations(request):
return HttpResponse('<h1>Reconciliaciones</h1>')
def purchase_summary(request, id):
purchase = Sale.objects.get(pk=id)
return render(
request,
"don_confiao/purchase_summary.html",
{
"purchase" : purchase
}
)
def _categories_from_csv_string(categories_string, separator="&"):
categories = categories_string.split(separator)