-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathoptions.go
46 lines (36 loc) · 2.46 KB
/
options.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package generator
// UnicodeTranslateFunc ...
type UnicodeTranslateFunc func(string) string
// Options for Document
type Options struct {
AutoPrint bool `json:"auto_print,omitempty"`
CurrencySymbol string `default:"€ " json:"currency_symbol,omitempty"`
CurrencyPrecision int `default:"2" json:"currency_precision,omitempty"`
CurrencyDecimal string `default:"." json:"currency_decimal,omitempty"`
CurrencyThousand string `default:" " json:"currency_thousand,omitempty"`
TextTypeInvoice string `default:"INVOICE" json:"text_type_invoice,omitempty"`
TextTypeQuotation string `default:"QUOTATION" json:"text_type_quotation,omitempty"`
TextTypeDeliveryNote string `default:"DELIVERY NOTE" json:"text_type_delivery_note,omitempty"`
TextRefTitle string `default:"Ref." json:"text_ref_title,omitempty"`
TextVersionTitle string `default:"Version" json:"text_version_title,omitempty"`
TextDateTitle string `default:"Date" json:"text_date_title,omitempty"`
TextPaymentTermTitle string `default:"Payment term" json:"text_payment_term_title,omitempty"`
TextItemsNameTitle string `default:"Name" json:"text_items_name_title,omitempty"`
TextItemsUnitCostTitle string `default:"Unit price" json:"text_items_unit_cost_title,omitempty"`
TextItemsQuantityTitle string `default:"Qty" json:"text_items_quantity_title,omitempty"`
TextItemsTotalHTTitle string `default:"Total no tax" json:"text_items_total_ht_title,omitempty"`
TextItemsTaxTitle string `default:"Tax" json:"text_items_tax_title,omitempty"`
TextItemsDiscountTitle string `default:"Discount" json:"text_items_discount_title,omitempty"`
TextItemsTotalTTCTitle string `default:"Total" json:"text_items_total_ttc_title,omitempty"`
TextTotalTotal string `default:"TOTAL" json:"text_total_total,omitempty"`
TextTotalDiscounted string `default:"TOTAL DISCOUNTED" json:"text_total_discounted,omitempty"`
TextTotalTax string `default:"TAX" json:"text_total_tax,omitempty"`
TextTotalWithTax string `default:"TOTAL WITH TAX" json:"text_total_with_tax,omitempty"`
BaseTextColor []int `default:"[35,35,35]" json:"base_text_color,omitempty"`
GreyTextColor []int `default:"[82,82,82]" json:"grey_text_color,omitempty"`
GreyBgColor []int `default:"[232,232,232]" json:"grey_bg_color,omitempty"`
DarkBgColor []int `default:"[212,212,212]" json:"dark_bg_color,omitempty"`
Font string `default:"Helvetica"`
BoldFont string `default:"Helvetica"`
UnicodeTranslateFunc UnicodeTranslateFunc
}