More OCR testing

This commit is contained in:
Rick Falkvinge
2019-03-01 15:45:23 +01:00
parent 0b915e19e2
commit 02212cda4b
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -107,10 +107,10 @@ namespace Swarmops.Logic.Financial
result.OcrAvailable = true;
result.OcrData = new string[3];
result.OcrData[0] = invoice.InvoiceReference + " #";
result.OcrData[1] = string.Format("{0} {1:00}   {2} >", // three spaces between the cents and the checksum
result.OcrData[1] = string.Format("{0} {1:00} {2} >", // three spaces between the cents and the checksum
invoice.AmountCents / 100, invoice.AmountCents % 100,
Formatting.GetLuhnChecksum(invoice.AmountCents.ToString(CultureInfo.InvariantCulture)));
result.OcrData[2] = Formatting.CleanNumber(invoice.PayToAccount);
result.OcrData[2] = Formatting.CleanNumber(invoice.PayToAccount) + "#41#";
}
}
else
+3 -2
View File
@@ -352,8 +352,9 @@
.ocr-font { /* this is necessary for OCR to work as expected */
font-family: Ocrb;
font-size: 120%;
letter-spacing: 0px;
font-size: 80% !important;
letter-spacing: 1px !important;
padding-top: 5px !important;
}
</style>