Skip to content

Instantly share code, notes, and snippets.

@BrianMRO
Created September 28, 2021 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrianMRO/0d1a2baa173dad741300246cb519cae6 to your computer and use it in GitHub Desktop.
Save BrianMRO/0d1a2baa173dad741300246cb519cae6 to your computer and use it in GitHub Desktop.
Approval Setup
#region Hook to Standard Approval System
[PXViewName(Messages.Approval)]
public EPApprovalAutomation<MyDAC, MyDAC.approved, MyDAC.rejected, MyDAC.hold, MySetupApproval> Approval;
#endregion
#region EPApproval Cache Attached
[PXDBDate()]
[PXDefault(typeof(MyDAC.planDate), PersistingCheck = PXPersistingCheck.Nothing)]
protected virtual void EPApproval_DocDate_CacheAttached(PXCache sender) { }
[PXDBInt()]
[PXDefault(typeof(MyDAC.customerID), PersistingCheck = PXPersistingCheck.Nothing)]
protected virtual void EPApproval_BAccountID_CacheAttached(PXCache sender) { }
[PXDBInt()]
[PXDefault(typeof(MyDAC.ownerID), PersistingCheck = PXPersistingCheck.Nothing)]
protected virtual void EPApproval_DocumentOwnerID_CacheAttached(PXCache sender) { }
[PXDBString(60, IsUnicode = true)]
[PXDefault(typeof(MyDAC.descr), PersistingCheck = PXPersistingCheck.Nothing)]
protected virtual void EPApproval_Descr_CacheAttached(PXCache sender) { }
[PXDBLong()]
[CurrencyInfo(typeof(MyDAC.curyInfoID))]
protected virtual void EPApproval_CuryInfoID_CacheAttached(PXCache sender) { }
[PXDBDecimal(4)]
[PXDefault(typeof(MyDAC.curyExtCost), PersistingCheck = PXPersistingCheck.Nothing)]
protected virtual void EPApproval_CuryTotalAmount_CacheAttached(PXCache sender) { }
[PXDBDecimal(4)]
[PXDefault(typeof(MyDAC.extCost), PersistingCheck = PXPersistingCheck.Nothing)]
protected virtual void EPApproval_TotalAmount_CacheAttached(PXCache sender) { }
#endregion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment