Hi, I've read the threads on changing from the default 2xInitial + Postcode+ Number to get order reference numbers, and seen advice on how to change OrderScript.pl at the line starting:
However, the following lines in v 9.02 check for order numbers which are 14 characters long.
I wish to change to AAA-NNNNN or 3 alpha, "hyphen", and 5 numeric, total of 9 characters.
Can I just change the code to
Regards
Code:
$::s_sOrderNumber = $sInitials . $sPostCode . substr($$::g_pSetupBlob{CGI_ID}, -1) .
Code:
#? ACTINIC::ASSERT(14 == length $::s_sOrderNumber, "Order number is not 14 characters long (" . (length $::s_sOrderNumber) . ", " . $::s_sOrderNumber . ").", __LINE__, __FILE__); return ($::SUCCESS, undef, $::s_sOrderNumber, undef); }
Can I just change the code to
Code:
$::s_sOrderNumber = "AAA-" . substr($$::g_pSetupBlob{CGI_ID}, -1) . substr("00000" . $nCounter, -4); #? ACTINIC::ASSERT(9 == length $::s_sOrderNumber, "Order number is not 9 characters long (" . (length $::s_sOrderNumber) . ", " . $::s_sOrderNumber . ").", __LINE__, __FILE__); return ($::SUCCESS, undef, $::s_sOrderNumber, undef); }
Comment