@@ -842,8 +842,8 @@ const T13 = {
842842 } ,
843843 error : {
844844 httpStatus : 400 ,
845- message : `WorkPeriods with id of 10faf505-d0e3-4d13-a817-7f1319625e91
846- has completed, partially-completed or in-progress payment status .`
845+ message : `Can't delete associated WorkPeriods 10faf505-d0e3-4d13-a817-7f1319625e91
846+ as they have associated WorkPeriodsPayment with one of statuses scheduled, in-progress, completed .`
847847 } ,
848848 workPeriod : {
849849 response : [ {
@@ -861,7 +861,8 @@ const T13 = {
861861 createdBy : '00000000-0000-0000-0000-000000000000' ,
862862 updatedBy : null ,
863863 createdAt : '2021-04-10T22:25:08.289Z' ,
864- updatedAt : '2021-04-10T22:25:08.289Z'
864+ updatedAt : '2021-04-10T22:25:08.289Z' ,
865+ payments : [ ]
865866 } ,
866867 toJSON : ( ) => T13 . workPeriod . response [ 0 ] . dataValues
867868 } , {
@@ -879,7 +880,23 @@ const T13 = {
879880 createdBy : '00000000-0000-0000-0000-000000000000' ,
880881 updatedBy : null ,
881882 createdAt : '2021-04-10T22:25:08.289Z' ,
882- updatedAt : '2021-04-10T22:25:08.289Z'
883+ updatedAt : '2021-04-10T22:25:08.289Z' ,
884+ payments : [ {
885+ amount : 400 ,
886+ updatedBy : '57646ff9-1cd3-4d3c-88ba-eb09a395366c' ,
887+ billingAccountId : 80000071 ,
888+ workPeriodId : '193a029e-0d3d-48fa-a249-0a4b6b21c32a' ,
889+ createdAt : '2021-06-16T08:51:30.374Z' ,
890+ challengeId : '3c849caf-6c60-40f7-8f0e-ee72c41ede6e' ,
891+ memberRate : 2000 ,
892+ createdBy : '57646ff9-1cd3-4d3c-88ba-eb09a395366c' ,
893+ customerRate : 2600 ,
894+ days : 1 ,
895+ statusDetails : null ,
896+ id : 'c3ba01c5-56db-462f-811f-65cd256096c3' ,
897+ status : 'in-progress' ,
898+ updatedAt : '2021-06-16T08:57:21.483Z'
899+ } ]
883900 } ,
884901 toJSON : ( ) => T13 . workPeriod . response [ 1 ] . dataValues
885902 } ]
@@ -912,8 +929,8 @@ const T14 = {
912929 } ,
913930 error : {
914931 httpStatus : 400 ,
915- message : `WorkPeriods with id of 10faf505-d0e3-4d13-a817-7f1319625e91
916- has completed, partially-completed or in-progress payment status .`
932+ message : `Can't delete associated WorkPeriods 10faf505-d0e3-4d13-a817-7f1319625e91
933+ as they have associated WorkPeriodsPayment with one of statuses scheduled, in-progress, completed .`
917934 } ,
918935 workPeriod : {
919936 response : [ {
@@ -931,7 +948,8 @@ const T14 = {
931948 createdBy : '00000000-0000-0000-0000-000000000000' ,
932949 updatedBy : null ,
933950 createdAt : '2021-04-10T22:25:08.289Z' ,
934- updatedAt : '2021-04-10T22:25:08.289Z'
951+ updatedAt : '2021-04-10T22:25:08.289Z' ,
952+ payments : [ ]
935953 } ,
936954 toJSON : ( ) => T14 . workPeriod . response [ 0 ] . dataValues
937955 } , {
@@ -949,7 +967,23 @@ const T14 = {
949967 createdBy : '00000000-0000-0000-0000-000000000000' ,
950968 updatedBy : null ,
951969 createdAt : '2021-04-10T22:25:08.289Z' ,
952- updatedAt : '2021-04-10T22:25:08.289Z'
970+ updatedAt : '2021-04-10T22:25:08.289Z' ,
971+ payments : [ {
972+ amount : 400 ,
973+ updatedBy : '57646ff9-1cd3-4d3c-88ba-eb09a395366c' ,
974+ billingAccountId : 80000071 ,
975+ workPeriodId : '193a029e-0d3d-48fa-a249-0a4b6b21c32a' ,
976+ createdAt : '2021-06-16T08:51:30.374Z' ,
977+ challengeId : '3c849caf-6c60-40f7-8f0e-ee72c41ede6e' ,
978+ memberRate : 2000 ,
979+ createdBy : '57646ff9-1cd3-4d3c-88ba-eb09a395366c' ,
980+ customerRate : 2600 ,
981+ days : 1 ,
982+ statusDetails : null ,
983+ id : 'c3ba01c5-56db-462f-811f-65cd256096c3' ,
984+ status : 'scheduled' ,
985+ updatedAt : '2021-06-16T08:57:21.483Z'
986+ } ]
953987 } ,
954988 toJSON : ( ) => T14 . workPeriod . response [ 1 ] . dataValues
955989 } ]
@@ -992,7 +1026,8 @@ const T15 = {
9921026 createdBy : '00000000-0000-0000-0000-000000000000' ,
9931027 updatedBy : null ,
9941028 createdAt : '2021-04-10T22:25:08.289Z' ,
995- updatedAt : '2021-04-10T22:25:08.289Z'
1029+ updatedAt : '2021-04-10T22:25:08.289Z' ,
1030+ payments : [ ]
9961031 } ,
9971032 toJSON : ( ) => T15 . workPeriod . response [ 0 ] . dataValues
9981033 } , {
@@ -1010,7 +1045,23 @@ const T15 = {
10101045 createdBy : '00000000-0000-0000-0000-000000000000' ,
10111046 updatedBy : null ,
10121047 createdAt : '2021-04-10T22:25:08.289Z' ,
1013- updatedAt : '2021-04-10T22:25:08.289Z'
1048+ updatedAt : '2021-04-10T22:25:08.289Z' ,
1049+ payments : [ {
1050+ amount : 400 ,
1051+ updatedBy : '57646ff9-1cd3-4d3c-88ba-eb09a395366c' ,
1052+ billingAccountId : 80000071 ,
1053+ workPeriodId : '193a029e-0d3d-48fa-a249-0a4b6b21c32a' ,
1054+ createdAt : '2021-06-16T08:51:30.374Z' ,
1055+ challengeId : '3c849caf-6c60-40f7-8f0e-ee72c41ede6e' ,
1056+ memberRate : 2000 ,
1057+ createdBy : '57646ff9-1cd3-4d3c-88ba-eb09a395366c' ,
1058+ customerRate : 2600 ,
1059+ days : 1 ,
1060+ statusDetails : null ,
1061+ id : 'c3ba01c5-56db-462f-811f-65cd256096c3' ,
1062+ status : 'failed' ,
1063+ updatedAt : '2021-06-16T08:57:21.483Z'
1064+ } ]
10141065 } ,
10151066 toJSON : ( ) => T15 . workPeriod . response [ 1 ] . dataValues
10161067 } ] ,
@@ -1048,8 +1099,8 @@ const T16 = {
10481099 } ,
10491100 error : {
10501101 httpStatus : 400 ,
1051- message : `WorkPeriods with id of 10faf505-d0e3-4d13-a817-7f1319625e91
1052- has completed, partially-completed or in-progress payment status .`
1102+ message : `Can't delete associated WorkPeriods 10faf505-d0e3-4d13-a817-7f1319625e91
1103+ as they have associated WorkPeriodsPayment with one of statuses scheduled, in-progress, completed .`
10531104 } ,
10541105 workPeriod : {
10551106 response : [ {
@@ -1067,7 +1118,8 @@ const T16 = {
10671118 createdBy : '00000000-0000-0000-0000-000000000000' ,
10681119 updatedBy : null ,
10691120 createdAt : '2021-04-10T22:25:08.289Z' ,
1070- updatedAt : '2021-04-10T22:25:08.289Z'
1121+ updatedAt : '2021-04-10T22:25:08.289Z' ,
1122+ payments : [ ]
10711123 } ,
10721124 toJSON : ( ) => T16 . workPeriod . response [ 0 ] . dataValues
10731125 } , {
@@ -1080,12 +1132,28 @@ const T16 = {
10801132 endDate : '2021-04-17' ,
10811133 daysWorked : 4 ,
10821134 daysPaid : 4 ,
1083- paymentTotal : 10.59 ,
1135+ paymentTotal : 400 ,
10841136 paymentStatus : 'completed' ,
10851137 createdBy : '00000000-0000-0000-0000-000000000000' ,
10861138 updatedBy : null ,
10871139 createdAt : '2021-04-10T22:25:08.289Z' ,
1088- updatedAt : '2021-04-10T22:25:08.289Z'
1140+ updatedAt : '2021-04-10T22:25:08.289Z' ,
1141+ payments : [ {
1142+ amount : 400 ,
1143+ updatedBy : '57646ff9-1cd3-4d3c-88ba-eb09a395366c' ,
1144+ billingAccountId : 80000071 ,
1145+ workPeriodId : '193a029e-0d3d-48fa-a249-0a4b6b21c32a' ,
1146+ createdAt : '2021-06-16T08:51:30.374Z' ,
1147+ challengeId : '3c849caf-6c60-40f7-8f0e-ee72c41ede6e' ,
1148+ memberRate : 2000 ,
1149+ createdBy : '57646ff9-1cd3-4d3c-88ba-eb09a395366c' ,
1150+ customerRate : 2600 ,
1151+ days : 4 ,
1152+ statusDetails : null ,
1153+ id : 'c3ba01c5-56db-462f-811f-65cd256096c3' ,
1154+ status : 'completed' ,
1155+ updatedAt : '2021-06-16T08:57:21.483Z'
1156+ } ]
10891157 } ,
10901158 toJSON : ( ) => T16 . workPeriod . response [ 1 ] . dataValues
10911159 } ]
0 commit comments