More OCR testing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user