File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -138,22 +138,18 @@ class Report {
138138 #generateDatesInfo( ) {
139139 const { configuration } = this . #invoice;
140140 const locale = configuration ?. locale || DEFAULT_LOCALE ;
141- const options : TextOptionsLight = { align : 'right ' } ;
141+ const options : TextOptionsLight = { align : 'left ' } ;
142142 const halfHeight = this . #doc. height / 2 ;
143143
144144 this . #doc
145145 . focusPage ( 1 )
146146 . setFont ( { weight : 'normal' } )
147- . setXY ( 126 , halfHeight - 40 ) ;
148- this . #doc. writeText ( 'Issued on:' , options ) ;
149- this . #doc. setXY ( 150 ) ;
150- this . #doc. breakText ( formatNamedDate ( this . #date, locale ) , options ) ;
147+ . setXY ( 110 , halfHeight - 50 ) ;
148+ this . #doc. breakText ( `Issued on: ${ formatNamedDate ( this . #date, locale ) } ` , options ) ;
151149
152150 if ( this . #dueOn) {
153- this . #doc. setXY ( 126 ) ;
154- this . #doc. writeText ( 'Due on:' , options ) ;
155- this . #doc. setXY ( 150 ) ;
156- this . #doc. breakText ( formatNamedDate ( this . #dueOn, locale ) , options ) ;
151+ this . #doc. setXY ( 110 ) ;
152+ this . #doc. breakText ( `Due on: ${ formatNamedDate ( this . #dueOn, locale ) } ` , options ) ;
157153 }
158154 }
159155
You can’t perform that action at this time.
0 commit comments