diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e915029
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+################################################################################
+# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
+################################################################################
+
+/.vs
diff --git a/README.md b/README.md
index aacbb63..875d97a 100644
--- a/README.md
+++ b/README.md
@@ -28,7 +28,12 @@ To use this customziation:

- Clicking on Reports -> Print Refund Check will assign the next check number to 'Payment Ref' and Payment Method (CA204000) -> AR Last Reference Number for matching Cash Account used. And also it will redirect to refund check form report AR640501.rpx.

-- There is no batch printing capability of refund checks.
+- If you want to use the AP Check numbering sequence for customer refunds, check "Use AP Reference Nbr for AR"
+
+- If you want to print multiple checks at once, navigate to AR508800 "Print customer Refunds"
+
+- After clicking "Process", the selected checks will be displayed in the report browser
+
Known Issues
------------
diff --git a/_ReadMeImages/AR302000a.png b/_ReadMeImages/AR302000a.png
index c4d841a..6729634 100644
Binary files a/_ReadMeImages/AR302000a.png and b/_ReadMeImages/AR302000a.png differ
diff --git a/_ReadMeImages/AR302000f.png b/_ReadMeImages/AR302000f.png
new file mode 100644
index 0000000..8eb0c55
Binary files /dev/null and b/_ReadMeImages/AR302000f.png differ
diff --git a/_ReadMeImages/AR508800a.png b/_ReadMeImages/AR508800a.png
new file mode 100644
index 0000000..35ff154
Binary files /dev/null and b/_ReadMeImages/AR508800a.png differ
diff --git a/_ReadMeImages/AR508800b.png b/_ReadMeImages/AR508800b.png
new file mode 100644
index 0000000..1b9691c
Binary files /dev/null and b/_ReadMeImages/AR508800b.png differ
diff --git a/cust/PrintCustomerRefundPkg/Pages/AR/AR508800.aspx b/cust/PrintCustomerRefundPkg/Pages/AR/AR508800.aspx
new file mode 100644
index 0000000..1778bed
--- /dev/null
+++ b/cust/PrintCustomerRefundPkg/Pages/AR/AR508800.aspx
@@ -0,0 +1,45 @@
+<%@ Page Language="C#" MasterPageFile="~/MasterPages/FormDetail.master" AutoEventWireup="true" ValidateRequest="false" CodeFile="AR508800.aspx.cs" Inherits="Page_AR508800" Title="Untitled Page" %>
+<%@ MasterType VirtualPath="~/MasterPages/FormDetail.master" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cust/PrintCustomerRefundPkg/Pages/AR/AR508800.aspx.cs b/cust/PrintCustomerRefundPkg/Pages/AR/AR508800.aspx.cs
new file mode 100644
index 0000000..3572ead
--- /dev/null
+++ b/cust/PrintCustomerRefundPkg/Pages/AR/AR508800.aspx.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Configuration;
+using System.Collections;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.HtmlControls;
+
+public partial class Page_AR508800 : PX.Web.UI.PXPage
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ }
+}
diff --git a/cust/PrintCustomerRefundPkg/_project/Code_ARPaymentEntryExt.xml b/cust/PrintCustomerRefundPkg/_project/Code_ARPaymentEntryExt.xml
new file mode 100644
index 0000000..856a420
--- /dev/null
+++ b/cust/PrintCustomerRefundPkg/_project/Code_ARPaymentEntryExt.xml
@@ -0,0 +1,153 @@
+
+
+ {
+ public PXSelect>>,
+ OrderBy>> CashAcctDetail_AccountID;
+
+ public PXSelect>,
+ And>>>>> cashaccountdetail;
+
+ public override void Initialize()
+ {
+ Base.report.AddMenuAction(printRefundCheck);
+ printRefundCheck.SetEnabled(false);
+ }
+
+ public PXAction printRefundCheck;
+ [PXButton()]
+ [PXUIField(DisplayName = "Print Refund Check", MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select)]
+ protected virtual void PrintRefundCheck()
+ {
+ AssignCheckNumber();
+
+ Dictionary d = new Dictionary()
+ {
+ ["StartCheckNbr"] = Base.Document.Current.ExtRefNbr,
+ ["PaymentMethodID"] = Base.Document.Current.PaymentMethodID,
+ ["CashAccountID"] = CashAccount.PK.Find(Base, Base.Document.Current.CashAccountID).CashAccountCD,
+ [PX.Objects.AP.ReportMessages.CheckReportFlag] = PX.Objects.AP.ReportMessages.CheckReportFlagValue
+ };
+
+ var requiredException = new PXReportRequiredException(d, "AR640501", PXBaseRedirectException.WindowMode.New, "Refund Check");
+
+
+ throw new PXRedirectWithReportException(this.Base, requiredException, "Preview");
+ }
+
+ protected virtual void ARPayment_ExtRefNbr_FieldDefaulting(PXCache sender, PXFieldDefaultingEventArgs e, PXFieldDefaulting BaseInvoke)
+ {
+ if (BaseInvoke != null)
+ BaseInvoke(sender, e);
+ ARPayment data = (ARPayment)e.Row;
+ PaymentMethod pmRow = Base.paymentmethod.Current;
+ if (data == null || pmRow == null) return;
+ if (!(data.DocType == ARDocType.Refund
+ && pmRow.PaymentType == PaymentMethodType.CashOrCheck)) return;
+ e.NewValue = null;
+ e.Cancel = true;
+ }
+
+ protected virtual void ARPayment_ExtRefNbr_FieldVerifying(PXCache sender, PXFieldVerifyingEventArgs e, PXFieldVerifying BaseInvoke)
+ {
+ if (BaseInvoke != null)
+ BaseInvoke(sender, e);
+ ARPayment data = (ARPayment)e.Row;
+ PaymentMethod pmRow = Base.paymentmethod.Current;
+
+ if (
+ !(data == null
+ || pmRow == null
+ || String.IsNullOrEmpty(data.ExtRefNbr))
+ && (
+ data.DocType == ARDocType.Refund
+ && pmRow.PaymentType == PaymentMethodType.CashOrCheck
+ && data.ExtRefNbr.ToUpper() == MessageConst._TOBEGEN.ToUpper()
+ ))
+ e.Cancel = true;
+ }
+
+ protected void ARPayment_RowSelected(PXCache sender, PXRowSelectedEventArgs e)
+ {
+ ARPayment row = e.Row as ARPayment;
+ PaymentMethod pmRow = Base.paymentmethod.Current;
+ if (row == null || pmRow == null) return;
+
+ bool bPrint = ((row.DocType == ARDocType.Refund) && (pmRow.PaymentType == PaymentMethodType.CashOrCheck));
+ printRefundCheck.SetEnabled(bPrint && !row.Released.Value && !row.Hold.Value);
+ PXUIFieldAttribute.SetEnabled(sender, row, !bPrint);
+ }
+
+ protected virtual void ARPayment_RowPersisting(PXCache sender, PXRowPersistingEventArgs e, PXRowPersisting del)
+ {
+ ARPayment row = e.Row as ARPayment;
+ PaymentMethod pmRow = Base.paymentmethod.Current;
+ if (row == null || pmRow == null) return;
+
+ if ((row.DocType == ARDocType.Refund) &&
+ (pmRow.PaymentType == PaymentMethodType.CashOrCheck) &&
+ (String.IsNullOrEmpty(row.ExtRefNbr)))
+ {
+ row.ExtRefNbr = MessageConst._TOBEGEN;
+ }
+
+ if (del != null)
+ del(sender, e);
+ }
+
+ public void AssignCheckNumber()
+ {
+ ARPayment row = Base.Document.Current;
+ PaymentMethod pmRow = Base.paymentmethod.Current;
+
+ if (row != null && pmRow != null)
+ {
+ if ((row.DocType == ARDocType.Refund) && (pmRow.PaymentType == PaymentMethodType.CashOrCheck))
+ {
+ cashaccountdetail.Cache.ClearQueryCache();
+ PaymentMethodAccount det = this.cashaccountdetail.Select();
+ bool useAp = det.GetExtension().UsrUseAPReferenceNbrForArRefund.GetValueOrDefault();
+ string lastRefNbr = useAp ? det.APLastRefNbr : det.ARLastRefNbr;
+
+ if ((String.IsNullOrEmpty(row.ExtRefNbr)
+ || (row.ExtRefNbr.Trim().ToUpper() == MessageConst._TOBEGEN.ToUpper()))
+ && (!String.IsNullOrEmpty(lastRefNbr)))
+ {
+ row.ExtRefNbr = AutoNumberAttribute.NextNumber(lastRefNbr);
+ Base.Document.Update(row);
+
+ if (useAp)
+ {
+ det.APLastRefNbr = row.ExtRefNbr;
+ }
+ else
+ {
+ det.ARLastRefNbr = row.ExtRefNbr;
+ }
+ this.cashaccountdetail.Update(det);
+
+ row.Status = ARDocStatus.Open;
+ Base.Document.Update(row);
+
+ Base.Actions.PressSave();
+ }
+ }
+ }
+ }
+ }
+}]]>
+
\ No newline at end of file
diff --git a/cust/PrintCustomerRefundPkg/_project/Code_ARPaymentExt.xml b/cust/PrintCustomerRefundPkg/_project/Code_ARPaymentExt.xml
new file mode 100644
index 0000000..ebba3b9
--- /dev/null
+++ b/cust/PrintCustomerRefundPkg/_project/Code_ARPaymentExt.xml
@@ -0,0 +1,33 @@
+
+
+ {
+ #region AmountToWords
+ public abstract class amountToWords : IBqlField { }
+ protected string _AmountToWords;
+ [PX.Objects.AP.ToWords(typeof(ARPayment.curyOrigDocAmt))]
+ public virtual string AmountToWords
+ {
+ get
+ {
+ return this._AmountToWords;
+ }
+ set
+ {
+ this._AmountToWords = value;
+ }
+ }
+ #endregion
+ }
+}
+]]>
+
\ No newline at end of file
diff --git a/cust/PrintCustomerRefundPkg/_project/Code_ARReleaseProcessExt.xml b/cust/PrintCustomerRefundPkg/_project/Code_ARReleaseProcessExt.xml
new file mode 100644
index 0000000..38d3c65
--- /dev/null
+++ b/cust/PrintCustomerRefundPkg/_project/Code_ARReleaseProcessExt.xml
@@ -0,0 +1,37 @@
+
+
+ {
+ public delegate List ReleaseDocProcBaseDelegate(JournalEntry je, ARRegister ardoc, List pmBatchList,
+ ARDocumentRelease.ARMassProcessReleaseTransactionScopeDelegate onreleasecomplete);
+
+ [PXOverride]
+ public List ReleaseDocProc(JournalEntry je, ARRegister ardoc, List pmBatchList,
+ ARDocumentRelease.ARMassProcessReleaseTransactionScopeDelegate onreleasecomplete,
+ ReleaseDocProcBaseDelegate BaseInvoke)
+ {
+ if (ardoc is ARPayment)
+ {
+ ARPayment currentPayment = ardoc as ARPayment;
+ if (currentPayment.DocType == ARDocType.Refund
+ && (String.IsNullOrEmpty(currentPayment.ExtRefNbr)
+ || currentPayment.ExtRefNbr.Trim().ToUpper() == MessageConst._TOBEGEN.ToUpper())
+ )
+ {
+ throw new PXException(MessageConst._CHECK_NOTPRINTED_CANNOTRELEASE);
+ }
+ }
+ return BaseInvoke(je, ardoc, pmBatchList, onreleasecomplete);
+ }
+ }
+}]]>
+
\ No newline at end of file
diff --git a/cust/PrintCustomerRefundPkg/_project/Code_CustomerRefundMassPrint.xml b/cust/PrintCustomerRefundPkg/_project/Code_CustomerRefundMassPrint.xml
new file mode 100644
index 0000000..2ca6d9b
--- /dev/null
+++ b/cust/PrintCustomerRefundPkg/_project/Code_CustomerRefundMassPrint.xml
@@ -0,0 +1,155 @@
+
+
+ {
+ public PXCancel Cancel;
+
+ public PXFilter Filter;
+ public PXFilteredProcessing, And>>> Refunds;
+ public PXSetup.Where.And>> cashAcct;
+
+ protected IEnumerable refunds()
+ {
+ var select = new PXSelect, And>>>(this);
+
+ // Filter here
+ if (!string.IsNullOrWhiteSpace(Filter.Current.PaymentMethodID))
+ {
+
+ select.WhereAnd>>>();
+ }
+ else
+ {
+ return Enumerable.Empty
+
\ No newline at end of file
diff --git a/cust/PrintCustomerRefundPkg/_project/Code_Messages.xml b/cust/PrintCustomerRefundPkg/_project/Code_Messages.xml
new file mode 100644
index 0000000..7f96082
--- /dev/null
+++ b/cust/PrintCustomerRefundPkg/_project/Code_Messages.xml
@@ -0,0 +1,25 @@
+
+
+ {
+ public toBeGenerated() : base(_TOBEGEN)
+ {
+
+ }
+ }
+ }
+}
+]]>
+
\ No newline at end of file
diff --git a/cust/PrintCustomerRefundPkg/_project/Code_PaymentMethodAccount.xml b/cust/PrintCustomerRefundPkg/_project/Code_PaymentMethodAccount.xml
new file mode 100644
index 0000000..a0c7c79
--- /dev/null
+++ b/cust/PrintCustomerRefundPkg/_project/Code_PaymentMethodAccount.xml
@@ -0,0 +1,26 @@
+
+
+ {
+ #region UsrUseAPReferenceNbrForArRefund
+ [PXDBBool]
+ [PXDefault(false, PersistingCheck = PXPersistingCheck.Nothing)]
+ [PXUIField(DisplayName="Use AP Reference Nbr for AR")]
+ public virtual bool? UsrUseAPReferenceNbrForArRefund { get; set; }
+ public abstract class usrUseAPReferenceNbrForArRefund : PX.Data.BQL.BqlBool.Field { }
+ #endregion
+ }
+}]]>
+
\ No newline at end of file
diff --git a/cust/PrintCustomerRefundPkg/_project/DATA_SITEMAP.xml b/cust/PrintCustomerRefundPkg/_project/DATA_SITEMAP.xml
new file mode 100644
index 0000000..4fea416
--- /dev/null
+++ b/cust/PrintCustomerRefundPkg/_project/DATA_SITEMAP.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/cust/PrintCustomerRefundPkg/_project/PaymentMethodAccount.xml b/cust/PrintCustomerRefundPkg/_project/PaymentMethodAccount.xml
new file mode 100644
index 0000000..f8671fd
--- /dev/null
+++ b/cust/PrintCustomerRefundPkg/_project/PaymentMethodAccount.xml
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/cust/PrintCustomerRefundPkg/_project/ProjectMetadata.xml b/cust/PrintCustomerRefundPkg/_project/ProjectMetadata.xml
new file mode 100644
index 0000000..8502bdb
--- /dev/null
+++ b/cust/PrintCustomerRefundPkg/_project/ProjectMetadata.xml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/cust/PrintCustomerRefundPkg/_project/REPORT_AR640501_RPX.xml b/cust/PrintCustomerRefundPkg/_project/REPORT_AR640501_RPX.xml
new file mode 100644
index 0000000..52c663e
--- /dev/null
+++ b/cust/PrintCustomerRefundPkg/_project/REPORT_AR640501_RPX.xml
@@ -0,0 +1,2909 @@
+
+
+ False
+
+
+ ARPayment.Hold
+ False
+
+
+ ARPayment.Voided
+ False
+
+
+ IsNotNull
+ ARPayment.ExtRefNbr
+
+
+ @PrintFlag
+ PRINT
+
+
+ Between
+ ARPayment.ExtRefNbr
+ 1
+ Or
+ @StartCheckNbr
+ @EndCheckNbr
+
+
+ ARPayment.ExtRefNbr
+ 1
+ @StartCheckNbr
+
+
+ 2
+ IsNull
+ @EndCheckNbr
+
+
+ ARPayment.PaymentMethodID
+ @PaymentMethodID
+
+
+ ARPayment.CashAccountID
+ @CashAccountID
+
+
+ 4px, 4px
+
+
+ NOPRINT
+ PrintFlag
+ False
+
+
+ StartCheckNbr
+
+
+ EndCheckNbr
+ True
+
+
+ PaymentMethodID
+
+
+ CashAccountID
+
+
+
+
+ ARAdjust
+ Inner
+
+
+ AdjgDocType
+ DocType
+
+
+ AdjgRefNbr
+ RefNbr
+
+
+ Released
+ Released
+
+
+ ARPayment
+
+
+ ARInvoice
+ Inner
+
+
+ DocType
+ AdjdDocType
+
+
+ RefNbr
+ AdjdRefNbr
+
+
+ ARAdjust
+
+
+ Customer
+ Inner
+
+
+ BAccountID
+ CustomerID
+
+
+ ARPayment
+
+
+ ARAddress
+
+
+ AddressID
+ BillAddressID
+
+
+ ARInvoice
+
+
+ ARContact
+
+
+ ContactID
+ BillContactID
+
+
+ ARInvoice
+
+
+ Country
+
+
+ CountryID
+ CountryID
+
+
+ ARAddress
+
+
+ Currency
+ Inner
+
+
+ CuryID
+ CuryID
+
+
+ ARPayment
+
+
+ FeaturesSet
+ ARPayment
+
+
+ http://localhost/ccis
+ templateform.rpx
+
+
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Decimal
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Int16
+
+
+ Int32
+
+
+ Int32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Decimal
+
+
+
+
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+ Boolean
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+
+
+ Int64
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Boolean
+
+
+ Decimal
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Decimal
+
+
+ DateTime
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+
+
+ DateTime
+
+
+
+
+ Decimal
+
+
+
+
+ Boolean
+
+
+ Boolean
+
+
+
+
+ DateTime
+
+
+ Boolean
+
+
+ Boolean
+
+
+
+
+ Boolean
+
+
+
+
+
+
+ Boolean
+
+
+
+
+ Int16
+
+
+ Int16
+
+
+ DateTime
+
+
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ DateTime
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+ Int32
+
+
+ Decimal
+
+
+
+
+
+
+
+
+ Object
+
+
+
+
+
+
+ Boolean
+
+
+ Decimal
+
+
+ Decimal
+
+
+ DateTime
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Boolean
+
+
+ Boolean
+
+
+
+
+
+
+
+
+ Int32
+
+
+
+
+
+
+
+
+ Boolean
+
+
+ Boolean
+
+
+
+
+
+
+
+
+
+
+ Object
+
+
+ Boolean
+
+
+ Decimal
+
+
+
+
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Boolean
+
+
+ DateTime
+
+
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Int32
+
+
+ Int32
+
+
+ Decimal
+
+
+ Decimal
+
+
+
+
+ Decimal
+
+
+
+
+
+
+
+
+ Boolean
+
+
+
+
+ Boolean
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Int16
+
+
+ DateTime
+
+
+
+
+ Decimal
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Boolean
+
+
+ Decimal
+
+
+
+
+
+
+
+
+ PX.Objects.AR.ARInvoice
+
+
+
+
+
+
+
+
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Int32
+
+
+ Int32
+
+
+ Int32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Int32
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+ Int16
+
+
+ Decimal
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Int32
+
+
+
+
+
+
+ Int32
+
+
+ Int32
+
+
+ Int32
+
+
+ Int32
+
+
+
+
+
+
+
+
+
+
+
+
+ Int32
+
+
+ Int32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Boolean
+
+
+ Object
+
+
+ Int32
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+
+
+ DateTime
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+ Boolean
+
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Boolean
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Decimal
+
+
+
+
+ DateTime
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Boolean
+
+
+
+
+
+
+
+
+ PX.Objects.AR.Customer
+
+
+
+
+ Int32
+
+
+
+
+
+
+
+
+ Int32
+
+
+ Int32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+ Int32
+
+
+ Int32
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+ Boolean
+
+
+
+
+ Int32
+
+
+
+
+
+
+
+
+
+
+ PX.Objects.AR.ARAddress
+
+
+
+
+ Int32
+
+
+ Int32
+
+
+ Int32
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+ Int32
+
+
+ Int32
+
+
+
+
+
+
+
+
+
+
+ Boolean
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+ Boolean
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Int32
+
+
+
+
+
+
+
+
+ PX.Objects.AR.ARContact
+
+
+
+
+
+
+ Boolean
+
+
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+
+
+ Boolean
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PX.Objects.CS.Country
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+
+
+
+
+
+
+ Int16
+
+
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+
+
+
+
+ Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PX.Objects.CM.Currency
+
+
+
+
+ Decimal
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Decimal
+
+
+
+
+
+
+
+
+
+
+
+
+ Int64
+
+
+ Decimal
+
+
+ DateTime
+
+
+
+
+
+
+ Decimal
+
+
+
+
+
+
+
+
+ Int64
+
+
+
+
+ Decimal
+
+
+
+
+ Decimal
+
+
+
+
+
+
+
+
+
+
+ Int64
+
+
+ DateTime
+
+
+
+
+
+
+ Decimal
+
+
+
+
+ Decimal
+
+
+
+
+ Int32
+
+
+ Decimal
+
+
+ Decimal
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Boolean
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Int32
+
+
+ Decimal
+
+
+ Decimal
+
+
+
+
+ Boolean
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+
+
+
+
+ Object
+
+
+
+
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+
+
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Decimal
+
+
+ Decimal
+
+
+
+
+ Int32
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Decimal
+
+
+ Decimal
+
+
+
+
+ PX.Objects.AR.ARAdjust
+
+
+
+
+ DateTime
+
+
+
+
+
+
+
+
+ Decimal
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Int16
+
+
+
+
+
+
+
+
+ Boolean
+
+
+ Int32
+
+
+ Int32
+
+
+ Int64
+
+
+
+
+
+
+
+
+ Int64
+
+
+
+
+ Decimal
+
+
+ Int32
+
+
+ DateTime
+
+
+ Boolean
+
+
+
+
+
+
+ Decimal
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+
+
+ Int64
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Boolean
+
+
+ Decimal
+
+
+ Decimal
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+ Boolean
+
+
+ DateTime
+
+
+ Boolean
+
+
+
+
+
+
+ Decimal
+
+
+ DateTime
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+
+
+ DateTime
+
+
+
+
+ Decimal
+
+
+
+
+
+
+ DateTime
+
+
+
+
+
+
+ Boolean
+
+
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+
+
+
+
+
+
+
+
+ DateTime
+
+
+ Int32
+
+
+
+
+
+
+ Object
+
+
+
+
+
+
+ Boolean
+
+
+ Decimal
+
+
+ Decimal
+
+
+ DateTime
+
+
+
+
+
+
+
+
+ Boolean
+
+
+ Boolean
+
+
+
+
+
+
+
+
+ Int32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Boolean
+
+
+ Decimal
+
+
+ Decimal
+
+
+
+
+
+
+
+
+ Boolean
+
+
+
+
+ Boolean
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Decimal
+
+
+ Int16
+
+
+ DateTime
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Decimal
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Decimal
+
+
+ Decimal
+
+
+ PX.Objects.AR.ARPayment
+
+
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Int32
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+
+
+ DateTime
+
+
+
+
+
+
+
+
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ Boolean
+
+
+ PX.Objects.CS.FeaturesSet
+
+
+
+
+ CheckNbr
+
+
+ RefNbr
+
+
+ DocType
+
+
+ 21cm
+
+
+ True
+ 8px, 8px
+ 0in
+
+
+ True
+ 8px, 8px
+ 10.5in
+
+
+ 4px, 64px
+ 80px, 0.16667in
+
+ Normal
+ =[ARAdjust.AdjdDocDate]
+
+
+ 4px, 736px
+ 80px, 0.16667in
+
+ Normal
+ =[ARAdjust.AdjdDocDate]
+
+
+ 208px, 40px
+ 104px, 16px
+
+
+
+ Normal
+ Reference
+
+
+ 100px, 40px
+ 100px, 16px
+
+
+ Left
+
+ Normal
+ Doc Type
+
+
+ 4px, 712px
+ 80px, 16px
+
+
+ Center
+
+ Normal
+ Date
+
+
+ 208px, 712px
+ 104px, 16px
+
+
+ Left
+
+ Normal
+ Reference
+
+
+ 100px, 712px
+ 100px, 16px
+
+
+ Left
+
+ Normal
+ Doc Type
+
+
+ 620px, 372px
+ 112px, 16px
+
+
+ Right
+
+ Normal
+ =[ARPayment.ExtRefNbr]
+ =[FeaturesSet.Construction]<>1
+
+
+ 624px, 392px
+ 112px, 16px
+
+
+ Right
+
+ Normal
+ =PadLeft( Report.IntToUI('ARPayment.CuryOrigDocAmt',[ARPayment.CuryOrigDocAmt]), 10, '*')
+ =[FeaturesSet.Construction]<>1
+
+
+ 608px, 392px
+ 112px, 16px
+
+
+ Right
+
+ Normal
+ =PadLeft( Report.IntToUI('ARPayment.CuryOrigDocAmt',[ARPayment.CuryOrigDocAmt]), 10, '*') #010;
+ =[FeaturesSet.Construction]=1
+
+
+ 440px, 392px
+ 116px, 16px
+
+
+ Right
+
+ Normal
+ =[ARPayment.DocDate]
+ =[FeaturesSet.Construction]<>1
+
+
+ 424px, 392px
+ 116px, 16px
+
+
+ Right
+
+ Normal
+ =[ArPayment.DocDate]
+ =[FeaturesSet.Construction]=1
+
+
+ 16px, 400px
+ 588px, 24px
+
+
+ Top
+
+ Normal
+ =PadRight(UCASE(replace(replace([ARPayment.AmountToWords], ' ', ' '), ' Only', ' and XX/100')), 50, '*')#010;
+
+
+ True
+ 700px, 64px
+ 80px, 16px
+
+
+ Right
+
+ Normal
+ =[ARPayment.ExtRefNbr]
+
+
+ 56px, 448px
+ 388px, 80px
+
+
+
+ Normal
+ =[ARContact.FullName] + '{br}'#010;+ iif([ARAddress.AddressLine1]<> null, [ARAddress.AddressLine1] + '{br}', '')#010;+ iif([ARAddress.AddressLine2]<> null, [ARAddress.AddressLine2] + '{br}', '')#010;+ iif([ARAddress.City]<> null, [ARAddress.City] + ', ', '')#010;+ iif([ARAddress.State]<> null, [ARAddress.State] + ' ', '')#010;+ iif([ARAddress.PostalCode]<> null, [ARAddress.PostalCode], '')#010;
+ =[FeaturesSet.Construction]<>1
+
+
+ 56px, 480px
+ 388px, 80px
+
+
+
+ Normal
+ =iif([ARAddress.AddressLine1]<> null, [ARAddress.AddressLine1] + '{br}', '')#010;+ iif([ARAddress.AddressLine2]<> null, [ARAddress.AddressLine2] + '{br}', '')#010;+ iif([ARAddress.City]<> null, [ARAddress.City] + ', ', '')#010;+ iif([ARAddress.State]<> null, [ARAddress.State] + ' ', '')#010;+ iif([ARAddress.PostalCode]<> null, [ARAddress.PostalCode], '')#010;#010;
+ =[FeaturesSet.Construction]=1
+
+
+ 700px, 40px
+ 80px, 16px
+
+
+ Right
+
+ Normal
+ Check Nbr.
+
+
+ True
+ 700px, 736px
+ 80px, 16px
+
+
+ Right
+
+ Normal
+ =[ARPayment.ExtRefNbr]
+
+
+ 700px, 712px
+ 80px, 16px
+
+
+ Right
+
+ Normal
+ Check Nbr.
+
+
+ 12px, 984px
+ 404px, 0.16667in
+
+ =[ARPayment.CashAccountID] + ' ' + [ARPayment.CashAccountID_CashAccount_descr]
+
+
+ 8px, 8px
+ 576px, 0.16667in
+
+ =[ARPayment.CustomerID] + ' - ' + [ARPayment.CustomerID_description]
+
+
+ 4px, 688px
+ 576px, 0.16667in
+
+ =[ARPayment.CustomerID] + ' - ' + [ARPayment.CustomerID_description]
+
+
+ 100px, 64px
+ 100px, 0.16667in
+
+ Normal
+ =[ARAdjust.AdjdDocType]
+
+
+ 208px, 64px
+ 104px, 16px
+
+ Normal
+ =[ARAdjust.AdjdRefNbr]
+
+
+ True
+ 320px, 64px
+ 264px, 0.16667in
+
+ Normal
+ =[ARPayment.DocDesc]
+
+
+ 56px, 448px
+ 388px, 26px
+
+
+
+ Normal
+ =Format('{0}{1}',#010; CustomFunc.GetJointPayeesMultiline([APPayment.DocType], [APPayment.RefNbr]),#010; [APContact.FullName])
+ =[FeaturesSet.Construction]=1
+
+
+ 592px, 64px
+ 100px, 0.16667in
+
+ Normal
+ =[ARPayment.CuryOrigDocAmt]
+
+
+ 592px, 736px
+ 100px, 0.16667in
+
+ Normal
+ =[ARPayment.CuryOrigDocAmt]
+
+
+ 320px, 736px
+ 264px, 0.16667in
+
+ Normal
+ =[ARPayment.DocDesc]
+
+
+ 208px, 736px
+ 104px, 16px
+
+ Normal
+ =[ARAdjust.AdjdRefNbr]
+
+
+ 100px, 736px
+ 100px, 0.16667in
+
+ Normal
+ =[ARAdjust.AdjdDocType]
+
+
+ 592px, 712px
+ 100px, 16px
+
+
+ Right
+
+ Normal
+ Payment
+
+
+ 320px, 712px
+ 264px, 16px
+
+
+ Left
+
+ Normal
+ Description
+
+
+ 592px, 40px
+ 100px, 16px
+
+
+ Right
+
+ Normal
+ Payment
+
+
+ 320px, 40px
+ 264px, 16px
+
+
+ Left
+
+ Normal
+ Description
+
+
+ 4px, 40px
+ 80px, 16px
+
+
+ Center
+
+ Normal
+ Date
+
+
+
+
+ True
+ 8px, 8px
+ 0in
+
+
+
+
\ No newline at end of file
diff --git a/cust/PrintCustomerRefundPkg/_project/SiteMapNode_3b869f2d_cee8_4ab9_8bfb_9f50b8a3f5a2.xml b/cust/PrintCustomerRefundPkg/_project/SiteMapNode_3b869f2d_cee8_4ab9_8bfb_9f50b8a3f5a2.xml
new file mode 100644
index 0000000..8217e75
--- /dev/null
+++ b/cust/PrintCustomerRefundPkg/_project/SiteMapNode_3b869f2d_cee8_4ab9_8bfb_9f50b8a3f5a2.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cust/PrintCustomerRefundPkg/_project/SiteMapNode_71d7b175_ddfb_4080_b8e0_0c2ce0856f01.xml b/cust/PrintCustomerRefundPkg/_project/SiteMapNode_71d7b175_ddfb_4080_b8e0_0c2ce0856f01.xml
new file mode 100644
index 0000000..889fc0f
--- /dev/null
+++ b/cust/PrintCustomerRefundPkg/_project/SiteMapNode_71d7b175_ddfb_4080_b8e0_0c2ce0856f01.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cust/PrintCustomerRefundPkg/_project/pages_ca_ca204000_aspx.xml b/cust/PrintCustomerRefundPkg/_project/pages_ca_ca204000_aspx.xml
new file mode 100644
index 0000000..e82b1ce
--- /dev/null
+++ b/cust/PrintCustomerRefundPkg/_project/pages_ca_ca204000_aspx.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file