diff --git a/Tasks/PdfBuilder.cs b/Tasks/PdfBuilder.cs index 27b2cab..08830ac 100644 --- a/Tasks/PdfBuilder.cs +++ b/Tasks/PdfBuilder.cs @@ -803,6 +803,7 @@ public class PdfBuilder new XRect(valueX, blY1 + 4, valueW, 14), XStringFormats.TopRight); + if (options.rsBundNrPal == null) goto nopal; gfx.DrawString(pal_nr.ToString(), fontText, XBrushes.Black, new XRect(valueX, blY3 + 4, valueW, 14), XStringFormats.TopRight); @@ -815,7 +816,7 @@ public class PdfBuilder new XRect(valueX, blY4 + 4, valueW, 14), XStringFormats.TopRight); - + nopal: gfx.DrawString( $"{totalBundleNumber}/{grouped_nums.Count}", fontText, @@ -1179,10 +1180,12 @@ public class PdfBuilder new XRect(valueX, blY2 + 4, valueW, 14), XStringFormats.TopRight); + if (options.rsBundNrPal == 0) goto nopal; gfx.DrawString(pal_nr.ToString(), fontText, XBrushes.Black, new XRect(valueX, blY3 + 4, valueW, 14), XStringFormats.TopRight); + gfx.DrawString( $"{bundleOnPallet}/{Settings._instance.pdfExport.rsBundNrPal}", fontText, @@ -1190,6 +1193,7 @@ public class PdfBuilder new XRect(valueX, blY4 + 4, valueW, 14), XStringFormats.TopRight); + nopal: gfx.DrawString( $"{totalBundleNumber}/{grouped_nums.Count}", fontText,