Changes in Document Creation, Calendar, Notifications, Settings
This commit is contained in:
@@ -593,9 +593,9 @@ export const useCreatePdf = async (invoiceData,backgroundSourceBuffer) => {
|
||||
|
||||
invoiceData.rows.forEach((row,index) => {
|
||||
|
||||
if(row.mode === 'free' || row.mode === 'normal'){
|
||||
if(row.mode !== 'pagebreak'){
|
||||
|
||||
pages[pageCounter - 1].drawText(row.pos, {
|
||||
pages[pageCounter - 1].drawText(String(row.pos), {
|
||||
...getCoordinatesForPDFLib(21,rowHeight, page1),
|
||||
size:10,
|
||||
color:rgb(0,0,0),
|
||||
@@ -667,7 +667,13 @@ export const useCreatePdf = async (invoiceData,backgroundSourceBuffer) => {
|
||||
})
|
||||
}
|
||||
|
||||
rowHeight += 14
|
||||
if(row.description) {
|
||||
rowHeight += 24
|
||||
} else {
|
||||
rowHeight += 14
|
||||
}
|
||||
|
||||
|
||||
pageIndex += 1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user