Fix error messages.
authorBen Thompson <ben@xtuple.com>
Thu, 19 Jun 2014 00:01:20 +0000 (20:01 -0400)
committerBen Thompson <ben@xtuple.com>
Thu, 19 Jun 2014 00:01:20 +0000 (20:01 -0400)
enyo-client/database/source/en/strings.js
foundation-database/public/functions/postcccashreceipt.sql
foundation-database/public/functions/postcccredit.sql

index 1b4c352..ec3324e 100644 (file)
@@ -297,11 +297,14 @@ strict:true, trailing:true, white:true */
     "_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.",
index a282e1b..5569839 100644 (file)
@@ -39,7 +39,7 @@ BEGIN
     _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;
 
index 01f98be..2e48211 100644 (file)
@@ -58,7 +58,7 @@ BEGIN
     _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;