Pharos Not enough Money to print job |
The problem was actually how Pharos UniPrint 8.1 parsed the same billing Plug-in script differently that 8.0 did.
For example if given the following scripts in Pharos UniPrint 8.0.
PlugIn.Balance = 0.02;
new sBalance = "0.07";
PlugIn.Balance += sBalance;
PlugIn.Balance will equal "0.09"
The same Script in Pharos UniPrint 8.1
PlugIn.Balance = 0.02;
new sBalance = "0.07";
PlugIn.Balance += sBalance;
PlugIn.Balance will equal "0.020.07"
Instead of doing the math its joining them as strings. The fix is easy enough.
For Pharos UniPrint 8.1 and Pharos UniPrint 8.0 use the following.
PlugIn.Balance = 0.02;
new sBalance = "0.07";
PlugIn.Balance = 0.0 + PlugIn.Balance + sBalance;
PlugIn.Balance will equal "0.09"
No comments:
Post a Comment
Please leave a comment; someone, anyone!