GLQSD33YYNRDK23R7W2LEIXODI4N5JD3RHX5VMRR5WPMSVMS333QC
PPW6ROC5U7FZCJCH2RX7UJ3PJYNPUMNEZ6KKO3375VFRUM4VT3VQC
QAC2QJ32ZLAK25KJ7SWT27WOZKD2MMDE7OZPHIRRFP2W2QZW7PBAC
NAFJ6RB3KYDBSTSNB3WQSVUQEPUGG2RZCBWRF4XNT2UKSOXDNMDQC
Z5KNL332YCRMHKU3NG7YWNLUCNHKSLXBZ3O22FSS47MNVXU2FDLAC
QH4UB73NUR2XPHZQ2RGJBKKUBN43RKC7ZJBCFPP4ESUIIEDDR5XQC
RB2ETNIFLQUA6OA66DAEOXZ25ENMQGNKX5CZRSKEYHTD6BQ6NTFQC
WRPIYG3EUHZR6N6T74ZXZDXATRMIRLXAQ24UNUNSVTVYGMT2VDSQC
SAESJLLYCQJUIHKFYFV53AWHFOSGI5SKLVS7DPTQO6BKGITPYPUQC
, projectDetail: case input of
Nothing -> Nothing
Just p -> Just $ ProjectDetail'
{ project: p
, depreciation: LinearDepreciation { undep: Days 30.0, dep: Days 300.0 }
, contributors: M.singleton (unwrap p).initiator $ ProjectUserData'
{ userName: "Joe"
, joinedOn: DateTime (fromMaybe bottom $ canonicalDate <$> (toEnum 2021) <*> (toEnum 1) <*> (toEnum 26)) bottom
, totalContribution: Hours 100.0
, currentPayoutRatio: 55 R.% 100
}
}
, projectDetail: Nothing
{ getProjectMembers: \_ -> pure []
{ getProjectDetail: \pid -> do
t <- liftEffect nowDateTime
uid <- UserId <$> liftEffect genUUID
pure <<< Just $ ProjectDetail'
{ project: Project'
{ projectId: pid
, projectName: "Fake Project"
, inceptionDate: t
, initiator: uid
}
, depreciation: LinearDepreciation { undep: Days 30.0, dep: Days 300.0 }
, contributors: M.singleton uid $ ProjectUserData'
{ userName: "Joe"
, joinedOn: t
, totalContribution: Hours 100.0
, currentPayoutRatio: 55 R.% 100
}
}