Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
Merge pull request #6 from mkdecisiondev/sec-vulnerabilities
Browse files Browse the repository at this point in the history
Merging sec-vulnerabilities to master
  • Loading branch information
amiranjom authored Sep 26, 2023
2 parents e0ac64c + 93916c4 commit 270e0a6
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 48 deletions.
6 changes: 3 additions & 3 deletions entity/AccountingAccountEntities.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ along with this software (see the LICENSE.md file). If not, see
<description>Calculated as actualBalance minus sum of outstanding FinancialAccountAuth.amount</description></field>
<field name="replenishPaymentId" type="id"/>
<field name="replenishLevel" type="currency-amount"/>
<relationship type="one" related="FinancialAccountType" short-alias="type">
<relationship type="one" related="mantle.account.financial.FinancialAccountType" short-alias="type">
<key-map field-name="finAccountTypeId"/></relationship>
<relationship type="one" title="FinancialAccount" related="moqui.basic.StatusItem" short-alias="status"/>
<relationship type="one" title="Organization" related="mantle.party.Party" short-alias="organization">
Expand Down Expand Up @@ -698,7 +698,7 @@ along with this software (see the LICENSE.md file). If not, see

<relationship type="one" title="Quantity" related="moqui.basic.Uom" short-alias="quantityUom">
<key-map field-name="quantityUomId"/></relationship>
<relationship type="one" related="SalesOpportunity" short-alias="salesOpportunity"/>
<relationship type="one" related="mantle.sales.opportunity.SalesOpportunity" short-alias="salesOpportunity"/>
<relationship type="one" related="mantle.other.tax.TaxAuthority" short-alias="taxAuthority"/>
<relationship type="one" related="mantle.humanres.employment.PayrollAdjustment" short-alias="payrollAdjustment"/>
<relationship type="one" related="mantle.account.financial.FinancialAccount" short-alias="financialAccount"/>
Expand Down Expand Up @@ -1373,7 +1373,7 @@ along with this software (see the LICENSE.md file). If not, see
<field name="amount" type="currency-amount"/>
<relationship type="one" title="DeductionType" related="moqui.basic.Enumeration">
<key-map field-name="deductionTypeEnumId"/></relationship>
<relationship type="one" related="Payment"/>
<relationship type="one" related="mantle.account.payment.Payment"/>
</entity>
<entity entity-name="Payment" package="mantle.account.payment" short-alias="payments" cache="never" optimistic-lock="true">
<field name="paymentId" type="id" is-pk="true"/>
Expand Down
8 changes: 4 additions & 4 deletions entity/AccountingLedgerEntities.xml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ along with this software (see the LICENSE.md file). If not, see
<field name="finAccountTypeId" type="id" is-pk="true"/>
<field name="organizationPartyId" type="id" is-pk="true"/>
<field name="glAccountId" type="id"/>
<relationship type="one" related="FinancialAccountType"/>
<relationship type="one" related="mantle.account.financial.FinancialAccountType"/>
<relationship type="one" title="Organization" related="mantle.party.Party">
<key-map field-name="organizationPartyId"/></relationship>
<relationship type="one" related="mantle.ledger.account.GlAccount"/>
Expand Down Expand Up @@ -417,7 +417,7 @@ along with this software (see the LICENSE.md file). If not, see
<field name="glAccountTypeEnumId" type="id" is-pk="true"/>
<field name="glAccountId" type="id"><description>Revenue account for products in the category</description></field>
<field name="contraGlAccountId" type="id"><description>Contra Revenue account for products in the category</description></field>
<relationship type="one" related="ProductCategory"/>
<relationship type="one" related="mantle.product.category.ProductCategory"/>
<relationship type="one" title="Organization" related="mantle.party.Party">
<key-map field-name="organizationPartyId"/></relationship>
<relationship type="one" title="GlAccountType" related="moqui.basic.Enumeration">
Expand All @@ -441,7 +441,7 @@ along with this software (see the LICENSE.md file). If not, see
<field name="taxAuthorityId" type="id" is-pk="true"/>
<field name="organizationPartyId" type="id" is-pk="true"/>
<field name="glAccountId" type="id"/>
<relationship type="one" related="TaxAuthority"/>
<relationship type="one" related="mantle.other.tax.TaxAuthority"/>
<relationship type="one" title="Organization" related="mantle.party.Party">
<key-map field-name="organizationPartyId"/></relationship>
<relationship type="one" related="mantle.ledger.account.GlAccount"/>
Expand Down Expand Up @@ -840,7 +840,7 @@ along with this software (see the LICENSE.md file). If not, see
<relationship type="one" related="mantle.ledger.account.GlAccount" short-alias="glAccount"/>
<relationship type="one" title="AcctgTransEntryReconcile" related="moqui.basic.StatusItem" short-alias="reconcileStatus">
<key-map field-name="reconcileStatusId"/></relationship>
<relationship type="one" related="SettlementTerm" short-alias="settlementTerm"/>
<relationship type="one" related="mantle.account.invoice.SettlementTerm" short-alias="settlementTerm"/>
<relationship type="one" related="mantle.product.Product" short-alias="product"/>
<relationship type="one" related="mantle.product.asset.Asset" short-alias="asset"/>

Expand Down
30 changes: 15 additions & 15 deletions entity/AccountingOtherEntities.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ along with this software (see the LICENSE.md file). If not, see
<field name="partyId" type="id"/>
<field name="budgetReviewResultEnumId" type="id"/>
<field name="reviewDate" type="date-time"/>
<relationship type="one" related="Budget"/>
<relationship type="one" related="Party"/>
<relationship type="one" related="mantle.other.budget.Budget"/>
<relationship type="one" related="mantle.party.Party"/>
<relationship type="one" title="BudgetReviewResult" related="moqui.basic.Enumeration">
<key-map field-name="budgetReviewResultEnumId"/></relationship>
<seed-data>
Expand All @@ -119,7 +119,7 @@ along with this software (see the LICENSE.md file). If not, see
<field name="revisionSeqId" type="id" is-pk="true"/>
<field name="dateRevised" type="date-time"/>
<field name="description" type="text-medium"/>
<relationship type="one" related="Budget"/>
<relationship type="one" related="mantle.other.budget.Budget"/>
</entity>
<entity entity-name="BudgetRevisionImpact" package="mantle.other.budget">
<field name="budgetId" type="id" is-pk="true"/>
Expand All @@ -128,19 +128,19 @@ along with this software (see the LICENSE.md file). If not, see
<field name="revisedAmount" type="currency-amount"/>
<field name="addDeleteFlag" type="text-indicator"/>
<field name="revisionReason" type="text-medium"/>
<relationship type="one" related="Budget"/>
<relationship type="one" related="BudgetItem">
<relationship type="one" related="mantle.other.budget.Budget"/>
<relationship type="one" related="mantle.other.budget.BudgetItem">
<key-map field-name="budgetId"/><key-map field-name="budgetItemSeqId"/></relationship>
<relationship type="one" related="BudgetRevision">
<relationship type="one" related="mantle.other.budget.BudgetRevision">
<key-map field-name="budgetId"/><key-map field-name="revisionSeqId"/></relationship>
</entity>
<entity entity-name="BudgetParty" package="mantle.other.budget">
<field name="budgetId" type="id" is-pk="true"/>
<field name="partyId" type="id" is-pk="true"/>
<field name="roleTypeId" type="id" is-pk="true"/>
<relationship type="one" related="Budget"/>
<relationship type="one" related="Party"/>
<relationship type="one" related="RoleType"/>
<relationship type="one" related="mantle.other.budget.Budget"/>
<relationship type="one" related="mantle.party.Party"/>
<relationship type="one" related="mantle.party.RoleType"/>
</entity>
<entity entity-name="BudgetScenario" package="mantle.other.budget">
<field name="budgetScenarioId" type="id" is-pk="true"/>
Expand All @@ -153,17 +153,17 @@ along with this software (see the LICENSE.md file). If not, see
<field name="budgetItemSeqId" type="id"/>
<field name="amountChange" type="currency-amount"/>
<field name="percentageChange" type="number-decimal"/>
<relationship type="one" related="BudgetScenario"/>
<relationship type="one" related="Budget"/>
<relationship type="one" related="BudgetItem">
<relationship type="one" related="mantle.other.budget.BudgetScenario"/>
<relationship type="one" related="mantle.other.budget.Budget"/>
<relationship type="one" related="mantle.other.budget.BudgetItem">
<key-map field-name="budgetId"/><key-map field-name="budgetItemSeqId"/></relationship>
</entity>
<entity entity-name="BudgetScenarioRule" package="mantle.other.budget">
<field name="budgetScenarioId" type="id" is-pk="true"/>
<field name="budgetItemTypeEnumId" type="id" is-pk="true"/>
<field name="amountChange" type="currency-amount"/>
<field name="percentageChange" type="number-decimal"/>
<relationship type="one" related="BudgetScenario"/>
<relationship type="one" related="mantle.other.budget.BudgetScenario"/>
<relationship type="one" title="BudgetItemType" related="moqui.basic.Enumeration">
<key-map field-name="budgetItemTypeEnumId"/></relationship>
</entity>
Expand Down Expand Up @@ -254,8 +254,8 @@ along with this software (see the LICENSE.md file). If not, see
<key-map field-name="taxAuthGeoId"/><key-map field-name="taxAuthPartyId"/></relationship>
<relationship type="one" title="TaxAuthorityRateType" related="moqui.basic.Enumeration">
<key-map field-name="rateTypeEnumId"/></relationship>
<relationship type="one" related="ProductStore"/>
<relationship type="one" related="ProductCategory"/>
<relationship type="one" related="mantle.product.store.ProductStore"/>
<relationship type="one" related="mantle.product.category.ProductCategory"/>
<seed-data>
<!- - Tax Authority Rate Type - ->
<moqui.basic.EnumerationType description="Tax Authority Rate Type" enumTypeId="TaxAuthorityRateType"/>
Expand Down
14 changes: 7 additions & 7 deletions entity/HumanResourcesEntities.xml
Original file line number Diff line number Diff line change
Expand Up @@ -362,15 +362,15 @@ along with this software (see the LICENSE.md file). If not, see
<field name="referredByPartyId" type="id"/>
<field name="approverPartyId" type="id"/>
<!-- not yet used: <field name="jobRequisitionId" type="id"/> -->
<relationship type="one" related="mantle.humanres.position.EmplPosition"/>
<relationship type="one" title="EmploymentApplication" related="moqui.basic.StatusItem"/>
<relationship type="one" related="mantle.humanres.position.EmplPosition" short-alias="position"/>
<relationship type="one" title="EmploymentApplication" related="moqui.basic.StatusItem" short-alias="status"/>
<relationship type="one" title="EmploymentApplicationReferredBy" related="moqui.basic.Enumeration">
<key-map field-name="referredByEnumId"/></relationship>
<relationship type="one" title="Applying" related="mantle.party.Party">
<relationship type="one" title="Applying" related="mantle.party.Party" short-alias="applyingParty">
<key-map field-name="applyingPartyId"/></relationship>
<relationship type="one" title="ReferredBy" related="mantle.party.Party">
<relationship type="one" title="ReferredBy" related="mantle.party.Party" short-alias="referredParty">
<key-map field-name="referredByPartyId"/></relationship>
<relationship type="one" title="Approver" related="mantle.party.Party">
<relationship type="one" title="Approver" related="mantle.party.Party" short-alias="approverParty">
<key-map field-name="approverPartyId"/></relationship>
<!-- <relationship type="one" related="mantle.humanres.recruitment.JobRequisition"/> -->
<seed-data>
Expand Down Expand Up @@ -756,9 +756,9 @@ along with this software (see the LICENSE.md file). If not, see
<relationship type="one" title="Organization" related="mantle.party.Party">
<key-map field-name="organizationPartyId"/></relationship>
<relationship type="one" related="mantle.humanres.position.EmplPositionClass"/>
<relationship type="one" title="EmplPosition" related="moqui.basic.StatusItem"/>
<relationship type="one" title="EmplPosition" related="moqui.basic.StatusItem" short-alias="status"/>
<relationship type="one" related="mantle.humanres.rate.PayGrade"/>
<relationship type="one" related="BudgetItem">
<relationship type="one" related="mantle.other.budget.BudgetItem">
<key-map field-name="budgetId"/><key-map field-name="budgetItemSeqId"/></relationship>
<relationship type="one" title="EmplTaxExempt" related="moqui.basic.Enumeration">
<key-map field-name="taxExemptEnumId"/></relationship>
Expand Down
4 changes: 2 additions & 2 deletions entity/MarketingEntities.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ along with this software (see the LICENSE.md file). If not, see
<field name="fromDate" type="date-time" is-pk="true"/>
<field name="thruDate" type="date-time"/>
<field name="emailTemplateId" type="id"/>
<relationship type="one" related="ContactList"/>
<relationship type="one" related="mantle.marketing.contact.ContactList"/>
<relationship type="one" title="ContactListEmailType" related="moqui.basic.Enumeration">
<key-map field-name="emailTypeEnumId"/></relationship>
<relationship type="one" related="moqui.basic.email.EmailTemplate"/>
Expand Down Expand Up @@ -202,7 +202,7 @@ along with this software (see the LICENSE.md file). If not, see
<field name="marketSegmentId" type="id" is-pk="true"/>
<field name="fromDate" type="date-time" is-pk="true"/>
<field name="thruDate" type="date-time"/>
<relationship type="one" related="ProductCategory"/>
<relationship type="one" related="mantle.product.category.ProductCategory"/>
<relationship type="one" related="mantle.marketing.segment.MarketSegment"/>
</entity>
<entity entity-name="MarketSegment" package="mantle.marketing.segment">
Expand Down
8 changes: 4 additions & 4 deletions entity/OrderEntities.xml
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ along with this software (see the LICENSE.md file). If not, see
<relationship type="one" related="mantle.account.financial.FinancialAccountTrans" short-alias="financialAccountTrans"/>
<relationship type="one" title="Override" related="mantle.ledger.account.GlAccount" short-alias="overrideGlAccount">
<key-map field-name="overrideGlAccountId"/></relationship>
<relationship type="one" related="SalesOpportunity" short-alias="opportunity"/>
<relationship type="one" related="mantle.sales.opportunity.SalesOpportunity" short-alias="opportunity"/>
<relationship type="one" related="mantle.other.tax.TaxAuthority" short-alias="taxAuthority"/>

<relationship type="many" related="mantle.product.issuance.AssetReservation" short-alias="reservations">
Expand Down Expand Up @@ -597,15 +597,15 @@ along with this software (see the LICENSE.md file). If not, see
<relationship type="many" title="Customer" related="mantle.party.PartyClassificationAppl" short-alias="customerClasses">
<key-map field-name="customerPartyId" related="partyId"/></relationship>

<relationship type="one" related="Facility" short-alias="facility"/>
<relationship type="one" related="mantle.facility.Facility" short-alias="facility"/>
<relationship type="one" title="Carrier" related="mantle.party.Party" short-alias="carrier">
<key-map field-name="carrierPartyId"/></relationship>
<relationship type="one" title="ShipmentMethod" related="moqui.basic.Enumeration" short-alias="shipmentMethod">
<key-map field-name="shipmentMethodEnumId"/></relationship>
<!-- For tradeTermEnumId terms are defined with enumTypeId="TermType" in AccountingAccountEntities.xml -->
<relationship type="one" title="TermType" related="moqui.basic.Enumeration" short-alias="tradeTermEnum">
<key-map field-name="tradeTermEnumId"/></relationship>
<relationship type="one" related="SettlementTerm" short-alias="settlementTerm"/>
<relationship type="one" related="mantle.account.invoice.SettlementTerm" short-alias="settlementTerm"/>

<relationship type="one" title="Postal" related="mantle.party.contact.ContactMech" short-alias="postal">
<key-map field-name="postalContactMechId"/></relationship>
Expand Down Expand Up @@ -661,7 +661,7 @@ along with this software (see the LICENSE.md file). If not, see
<field name="orderPartSeqId" type="id" is-pk="true"/>
<field name="settlementTermId" type="id" is-pk="true"/>
<relationship type="one" related="mantle.order.OrderPart" short-alias="orderPart"/>
<relationship type="one" related="SettlementTerm" short-alias="term"/>
<relationship type="one" related="mantle.account.invoice.SettlementTerm" short-alias="term"/>
</entity>
<entity entity-name="OrderPromoCode" package="mantle.order" cache="never">
<field name="orderId" type="id" is-pk="true"/>
Expand Down
Loading

0 comments on commit 270e0a6

Please sign in to comment.