Created
June 25, 2014 17:20
-
-
Save divyanshikathuria/3e93ce6bc56dd16efead to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.shortcuts import render | |
from django.http import HttpResponse | |
from librehatti.bills.models import QuotedOrder, QuotedItem | |
from librehatti.catalog.models import * | |
from django.contrib.auth.models import User | |
import useraccounts | |
def proforma(request): | |
quoted_order = QuotedOrder.objects.get(id=quote_buyer_id) | |
quoted_item = QuotedItem.objects.get(id=quote_buyer_id) | |
total_cost = QuotedItem.objects.filter(id=quote_buyer_id).aggregate(Sum('quoted_price')) | |
return render(request, 'p_bill.html',{ ' quoted_order' : quoted_order, | |
'quoted_item' : quoted_item , 'total_cost': total_cost } ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment