"_xtdb_postCashReceipt6": "The selected Cash Receipt cannot be posted as the Bank Account cannot be determined. You must make a Bank Account Assignment for this Cash Receipt before you may post it.",
"_xtdb_postCashReceipt7": "The selected Cash Receipt cannot be posted, probably because the Customer's Prepaid Account was not found.",
"_xtdb_postCashReceipt8": "Cannot post this Cash Receipt because the credit card records could not be found.",
+ "_xtdb_postCCCashReceipt1": "Cannot post this Cash Receipt because annot find the default Bank Account for this Credit Card.",
+ "_xtdb_postCCCashReceipt2": "Cannot post this Cash Receipt because cannot find the Credit Card type.",
"_xtdb_postCCCashReceipt11": "Cannot post this Cash Receipt because the record of the credit card transaction either does not exist or is not consistent.",
"_xtdb_postCCcredit1": "Cannot post this Credit Card refund because the default Bank Account for this Credit Card could not be found.",
"_xtdb_postCCcredit2": "Cannot post this Credit Card refund because an invalid id/reference-type pair was passed.",
"_xtdb_postCCcredit3": "Cannot post this Credit Card refund because the credit card and refund records could not be found.",
"_xtdb_postCCcredit4": "Cannot post this Credit Card refund because the credit card payment records is not for a refund.",
+ "_xtdb_postCCcredit5": "Cannot post this Credit Card refund because cannot find the Credit Card type.",
"_xtdb_postCheck10": "Cannot post this Check because it has already been posted.",
"_xtdb_postCheck11": "Cannot post this Check because the recipient type is not valid.",
"_xtdb_postCheck12": "Cannot post this Check because the Expense Category could not be found.",
_cardType = _c.ccpay_card_type;
ELSE
-- TODO: Where is the other half of these -n error codes???
- RAISE EXCEPTION 'Cannot find the Credit Card type [xtuple: postCCcashReceipt, -1, %, %, %]',
+ RAISE EXCEPTION 'Cannot find the Credit Card type [xtuple: postCCcashReceipt, -2, %, %, %]',
pCCpay, pdocid, pdoctype;
END IF;
_cardType = _c.ccpay_card_type;
ELSE
-- TODO: Where is the other half of these -n error codes???
- RAISE EXCEPTION 'Cannot find the Credit Card type [xtuple: postCCcredit, -3, %, %, %]',
+ RAISE EXCEPTION 'Cannot find the Credit Card type [xtuple: postCCcredit, -5, %, %, %]',
pCCpay, preftype, prefid;
END IF;