Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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