{{define "content"}}
{{if eq .DocType "quote"}} {{template "document-quote-view" .}} {{else if eq .DocType "invoice"}} {{template "document-invoice-view" .}} {{else if eq .DocType "purchaseOrder"}} {{template "document-purchase-order-view" .}} {{else if eq .DocType "orderAck"}} {{template "document-orderack-view" .}} {{else if eq .DocType "packingList"}} {{template "document-packinglist-view" .}} {{else}}
Unknown document type: {{.DocType}}
{{end}}

Line Items

{{if .LineItems}} {{range .LineItems}} {{end}} {{else}} {{end}}
Item # Title Description Quantity Unit Price Total Price Actions
{{.ItemNumber}} {{.Title}} {{.Description}} {{.Quantity}} {{if .GrossUnitPrice.Valid}} ${{.GrossUnitPrice.String}} {{else if .UnitPriceString.Valid}} {{.UnitPriceString.String}} {{else}} - {{end}} {{if .GrossPrice.Valid}} ${{.GrossPrice.String}} {{else if .GrossPriceString.Valid}} {{.GrossPriceString.String}} {{else}} - {{end}}
No line items yet

Attachments

Filename Name Description Size Actions
No attachments yet
{{end}}