protected bool AreThereAnyLienWaiverRecipientsForVendorClass(int?vendorId, int?projectId) { var vendor = VendorDataProvider.GetVendor(Graph, vendorId); var lienWaiverRecipient = LienWaiverRecipientDataProvider.GetLienWaiverRecipient(Graph, vendor.VendorClassID, projectId); return(PXCache <Vendor> .GetExtension <VendorExtension>(vendor).ShouldGenerateLienWaivers == true && lienWaiverRecipient != null); }
protected bool DoesCommitmentAmountExceedMinimumCommitmentAmount(int?vendorId, APTran transaction) { var commitment = GetCommitment(transaction); if (commitment == null) { return(false); } var vendor = VendorDataProvider.GetVendor(Graph, vendorId); var projectId = LienWaiverProjectDataProvider.GetProjectId(Graph, transaction); var lienWaiverRecipient = LienWaiverRecipientDataProvider.GetLienWaiverRecipient(Graph, vendor.VendorClassID, projectId); return(commitment.CuryOrderTotal > lienWaiverRecipient.MinimumCommitmentAmount); }