@@ -29,7 +29,7 @@ export default function createQuotePdf(quote: IQuotes): Promise<string>
29
29
30
30
} ,
31
31
"translate" : {
32
- "invoice" : `Quote` ,
32
+ "invoice" : `Quote # ${ quote . id } ` ,
33
33
"number" : GetText ( ) . invoice . txt_Number ,
34
34
"date" : GetText ( ) . invoice . txt_Date ,
35
35
"due-date" : GetText ( ) . invoice . txt_DueDate ,
@@ -49,11 +49,11 @@ export default function createQuotePdf(quote: IQuotes): Promise<string>
49
49
"margin-bottom" : 25 ,
50
50
} ,
51
51
"sender" : {
52
- "company" : Company_Name ,
53
- "address" : Company_Address ,
54
- "zip" : Company_Zip ,
55
- "city" : Company_City ,
56
- "country" : Company_Country ,
52
+ "company" : ( await Company_Name ( ) ) ,
53
+ "address" : await Company_Address ( ) ,
54
+ "zip" : await Company_Zip ( ) ,
55
+ "city" : await Company_City ( ) ,
56
+ "country" : await Company_Country ( ) ,
57
57
} ,
58
58
"client" : {
59
59
"company" : Customer . billing . company ?? `${ Customer . personal . first_name } ${ Customer . personal . last_name } ` ,
@@ -71,7 +71,7 @@ export default function createQuotePdf(quote: IQuotes): Promise<string>
71
71
return {
72
72
"quantity" : item . quantity ,
73
73
"description" : item . name ,
74
- "tax-rate" : item . tax_rate ,
74
+ "tax-rate" : quote . tax_rate ,
75
75
"price" : item . price
76
76
}
77
77
} ) ,
@@ -84,9 +84,9 @@ export default function createQuotePdf(quote: IQuotes): Promise<string>
84
84
data [ "client" ] [ "custom1" ] = `<br/><strong>Innehar ${ await Company_Tax_Registered ( ) ? "" : "inte" } F-Skattsedel</strong>` ;
85
85
86
86
87
- if ( Company_Logo_Url && PDF_Template_Url === "" )
87
+ if ( await Company_Logo_Url ( ) !== "" && PDF_Template_Url === "" )
88
88
// @ts -ignore
89
- data [ "images" ] [ "logo" ] = Company_Logo_Url ;
89
+ data [ "images" ] [ "logo" ] = await Company_Logo_Url ( ) ;
90
90
91
91
if ( PDF_Template_Url !== "" )
92
92
// @ts -ignore
0 commit comments