@@ -1305,9 +1305,9 @@ along with this software (see the LICENSE.md file). If not, see
13051305 <field name =" partyId" type =" id" ><description >The Party that owns the TimePeriod, generally an Internal Organization.</description ></field >
13061306 <field name =" periodNum" type =" number-integer" />
13071307 <field name =" periodName" type =" text-medium" />
1308- <field name =" fromDate" type =" date" ><description >The first day of the period.</description ></field >
1309- <field name =" thruDate" type =" date" ><description >The last day of the period.</description ></field >
1310- <field name =" isClosed" type =" text-indicator" />
1308+ <field name =" fromDate" type =" date" not-null = " true " ><description >The first day of the period.</description ></field >
1309+ <field name =" thruDate" type =" date" not-null = " true " ><description >The last day of the period.</description ></field >
1310+ <field name =" isClosed" type =" text-indicator" default = " 'N' " />
13111311 <relationship type =" one" title =" Parent" related =" mantle.party.time.TimePeriod" short-alias =" parent" >
13121312 <key-map field-name =" parentPeriodId" related =" timePeriodId" /></relationship >
13131313 <relationship type =" one" title =" Previous" related =" mantle.party.time.TimePeriod" short-alias =" previous" >
@@ -1317,12 +1317,15 @@ along with this software (see the LICENSE.md file). If not, see
13171317 <entity entity-name =" TimePeriodType" package =" mantle.party.time" >
13181318 <field name =" timePeriodTypeId" type =" id" is-pk =" true" />
13191319 <field name =" periodPurposeEnumId" type =" id" />
1320+ <field name =" parentPeriodTypeId" type =" id" />
13201321 <field name =" description" type =" text-medium" />
13211322 <field name =" periodLength" type =" number-decimal" />
13221323 <field name =" lengthUomId" type =" id" />
13231324 <relationship type =" one" title =" TimePeriodPurpose" related =" moqui.basic.Enumeration" short-alias =" purpose" >
13241325 <key-map field-name =" periodPurposeEnumId" /></relationship >
1325- <relationship type =" one" title =" Length" related =" moqui.basic.Uom" short-alias =" " >
1326+ <relationship type =" one" title =" Parent" related =" mantle.party.time.TimePeriodType" short-alias =" parentPeriodType" >
1327+ <key-map field-name =" parentPeriodTypeId" /></relationship >
1328+ <relationship type =" one" title =" Length" related =" moqui.basic.Uom" short-alias =" lengthUom" >
13261329 <key-map field-name =" lengthUomId" related =" uomId" /></relationship >
13271330 <seed-data >
13281331 <moqui .basic.EnumerationType description =" Time Period Purpose" enumTypeId =" TimePeriodPurpose" />
@@ -1334,42 +1337,42 @@ along with this software (see the LICENSE.md file). If not, see
13341337 <mantle .party.time.TimePeriodType description =" Fiscal Year" timePeriodTypeId =" FiscalYear"
13351338 periodPurposeEnumId =" Fiscal" periodLength =" 1" lengthUomId =" TF_yr" />
13361339 <mantle .party.time.TimePeriodType description =" Fiscal Quarter" timePeriodTypeId =" FiscalQuarter"
1337- periodPurposeEnumId =" Fiscal" periodLength =" 3" lengthUomId =" TF_mon" />
1340+ parentPeriodTypeId = " FiscalYear " periodPurposeEnumId =" Fiscal" periodLength =" 3" lengthUomId =" TF_mon" />
13381341 <mantle .party.time.TimePeriodType description =" Fiscal Month" timePeriodTypeId =" FiscalMonth"
1339- periodPurposeEnumId =" Fiscal" periodLength =" 1" lengthUomId =" TF_mon" />
1342+ parentPeriodTypeId = " FiscalQuarter " periodPurposeEnumId =" Fiscal" periodLength =" 1" lengthUomId =" TF_mon" />
13401343 <mantle .party.time.TimePeriodType description =" Fiscal Bi-Week" timePeriodTypeId =" FiscalBiWeek"
1341- periodPurposeEnumId =" Fiscal" periodLength =" 2" lengthUomId =" TF_wk" />
1344+ parentPeriodTypeId = " FiscalMonth " periodPurposeEnumId =" Fiscal" periodLength =" 2" lengthUomId =" TF_wk" />
13421345 <mantle .party.time.TimePeriodType description =" Fiscal Week" timePeriodTypeId =" FiscalWeek"
1343- periodPurposeEnumId =" Fiscal" periodLength =" 1" lengthUomId =" TF_wk" />
1346+ parentPeriodTypeId = " FiscalMonth " periodPurposeEnumId =" Fiscal" periodLength =" 1" lengthUomId =" TF_wk" />
13441347
13451348 <mantle .party.time.TimePeriodType description =" Payroll Year" timePeriodTypeId =" PayrollYear"
13461349 periodPurposeEnumId =" Payroll" periodLength =" 1" lengthUomId =" TF_yr" />
13471350 <mantle .party.time.TimePeriodType description =" Payroll Semi-Year" timePeriodTypeId =" PayrollSemiYear"
1348- periodPurposeEnumId =" Payroll" periodLength =" 6" lengthUomId =" TF_mon" />
1351+ parentPeriodTypeId = " PayrollYear " periodPurposeEnumId =" Payroll" periodLength =" 6" lengthUomId =" TF_mon" />
13491352 <mantle .party.time.TimePeriodType description =" Payroll Quarter" timePeriodTypeId =" PayrollQuarter"
1350- periodPurposeEnumId =" Payroll" periodLength =" 3" lengthUomId =" TF_mon" />
1353+ parentPeriodTypeId = " PayrollYear " periodPurposeEnumId =" Payroll" periodLength =" 3" lengthUomId =" TF_mon" />
13511354 <mantle .party.time.TimePeriodType description =" Payroll Month" timePeriodTypeId =" PayrollMonth"
1352- periodPurposeEnumId =" Payroll" periodLength =" 1" lengthUomId =" TF_mon" />
1355+ parentPeriodTypeId = " PayrollQuarter " periodPurposeEnumId =" Payroll" periodLength =" 1" lengthUomId =" TF_mon" />
13531356 <mantle .party.time.TimePeriodType description =" Payroll Semi-Month" timePeriodTypeId =" PayrollSemiMonth"
1354- periodPurposeEnumId =" Payroll" periodLength =" 0.5" lengthUomId =" TF_mon" />
1357+ parentPeriodTypeId = " PayrollMonth " periodPurposeEnumId =" Payroll" periodLength =" 0.5" lengthUomId =" TF_mon" />
13551358 <mantle .party.time.TimePeriodType description =" Payroll Bi-Week" timePeriodTypeId =" PayrollBiWeek"
1356- periodPurposeEnumId =" Payroll" periodLength =" 2" lengthUomId =" TF_wk" />
1359+ parentPeriodTypeId = " PayrollMonth " periodPurposeEnumId =" Payroll" periodLength =" 2" lengthUomId =" TF_wk" />
13571360 <mantle .party.time.TimePeriodType description =" Payroll Week" timePeriodTypeId =" PayrollWeek"
1358- periodPurposeEnumId =" Payroll" periodLength =" 1" lengthUomId =" TF_wk" />
1361+ parentPeriodTypeId = " PayrollMonth " periodPurposeEnumId =" Payroll" periodLength =" 1" lengthUomId =" TF_wk" />
13591362
13601363 <mantle .party.time.TimePeriodType description =" Sales Year" timePeriodTypeId =" SalesYear"
13611364 periodPurposeEnumId =" Sales" periodLength =" 1" lengthUomId =" TF_yr" />
13621365 <mantle .party.time.TimePeriodType description =" Sales Quarter" timePeriodTypeId =" SalesQuarter"
1363- periodPurposeEnumId =" Sales" periodLength =" 3" lengthUomId =" TF_mon" />
1366+ parentPeriodTypeId = " SalesYear " periodPurposeEnumId =" Sales" periodLength =" 3" lengthUomId =" TF_mon" />
13641367 <mantle .party.time.TimePeriodType description =" Sales Month" timePeriodTypeId =" SalesMonth"
1365- periodPurposeEnumId =" Sales" periodLength =" 1" lengthUomId =" TF_mon" />
1368+ parentPeriodTypeId = " SalesQuarter " periodPurposeEnumId =" Sales" periodLength =" 1" lengthUomId =" TF_mon" />
13661369
13671370 <mantle .party.time.TimePeriodType description =" Tax Year" timePeriodTypeId =" TaxYear"
13681371 periodPurposeEnumId =" Tax" periodLength =" 1" lengthUomId =" TF_yr" />
13691372 <mantle .party.time.TimePeriodType description =" Tax Quarter" timePeriodTypeId =" TaxQuarter"
1370- periodPurposeEnumId =" Tax" periodLength =" 3" lengthUomId =" TF_mon" />
1373+ parentPeriodTypeId = " TaxYear " periodPurposeEnumId =" Tax" periodLength =" 3" lengthUomId =" TF_mon" />
13711374 <mantle .party.time.TimePeriodType description =" Tax Month" timePeriodTypeId =" TaxMonth"
1372- periodPurposeEnumId =" Tax" periodLength =" 1" lengthUomId =" TF_mon" />
1375+ parentPeriodTypeId = " TaxQuarter " periodPurposeEnumId =" Tax" periodLength =" 1" lengthUomId =" TF_mon" />
13731376 </seed-data >
13741377 </entity >
13751378</entities >
0 commit comments