update
This commit is contained in:
parent
d57702ea7a
commit
92e94e7265
@ -1,3 +1,4 @@
|
||||
from nltk.app.wordnet_app import page_from_reference
|
||||
from reportlab.platypus import SimpleDocTemplate, Table, TableStyle, Paragraph, Spacer
|
||||
from reportlab.lib import colors
|
||||
from reportlab.lib.pagesizes import A4
|
||||
@ -62,7 +63,7 @@ def generate_quotation_pdf(response, quotation, services):
|
||||
|
||||
# Car Details Table
|
||||
elements.append(Paragraph("Car Details", heading_style))
|
||||
car_data = [["VIN", "Model", "Year", "Quantity", "Price", "VAT %", "Total"]]
|
||||
car_data = [["رقم الهيكل", "الموديل", "سنة الصنع", "الكمية", "السعر", "الضريبة", "الإجمالي"]]
|
||||
for item in quotation.quotation_cars.all():
|
||||
car_data.append([
|
||||
item.car.vin,
|
||||
@ -117,5 +118,6 @@ def generate_quotation_pdf(response, quotation, services):
|
||||
]))
|
||||
elements.append(additional_table)
|
||||
|
||||
|
||||
# Build PDF
|
||||
doc.build(elements)
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -62,7 +62,7 @@
|
||||
<th>{% trans "Year" %}</th>
|
||||
<th>{% trans "Quantity" %}</th>
|
||||
<th>{% trans "Price" %}</th>
|
||||
<th>{% trans "VAT %" %}</th>
|
||||
<th>{% trans "VAT" %}</th>
|
||||
<th>{% trans "Total" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user