@bizdoc/core 1.15.0 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/compose/action/return-action.component.mjs +3 -3
- package/esm2020/lib/compose/trace/flow.component.mjs +7 -13
- package/fesm2015/bizdoc-core.mjs +8 -14
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +8 -14
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/bizdoc-core.mjs
CHANGED
@@ -14638,19 +14638,13 @@ class FlowViewComponent extends TraceBase {
|
|
14638
14638
|
role = `- ${by.role}`;
|
14639
14639
|
}
|
14640
14640
|
}
|
14641
|
+
else if (this.model.ownerId === this._session.userId)
|
14642
|
+
note = this._translate.get('YouSubmittedNote', ago);
|
14641
14643
|
else {
|
14642
|
-
|
14643
|
-
|
14644
|
-
|
14645
|
-
|
14646
|
-
note = this._translate.get('YouSubmittedNote', ago);
|
14647
|
-
}
|
14648
|
-
else {
|
14649
|
-
const who = await this._accounts.get(this.model.ownerId).toPromise();
|
14650
|
-
note = this._translate.personalize('SubmittedNote', who.gender, who.name, ago);
|
14651
|
-
if (who.role)
|
14652
|
-
role = `- ${who.role}`;
|
14653
|
-
}
|
14644
|
+
const who = await this._accounts.get(this.model.ownerId).toPromise();
|
14645
|
+
note = this._translate.personalize('SubmittedNote', who.gender, who.name, ago);
|
14646
|
+
if (who.role)
|
14647
|
+
role = `- ${who.role}`;
|
14654
14648
|
}
|
14655
14649
|
return { note, role };
|
14656
14650
|
}
|
@@ -21705,10 +21699,10 @@ let ReturnActionComponent = class ReturnActionComponent {
|
|
21705
21699
|
recipientId: this._fb.control(null, Validators.required),
|
21706
21700
|
note: this._fb.control(null, Validators.maxLength(200))
|
21707
21701
|
});
|
21708
|
-
const recipient = actionRef.item.recipients.find(r => r.id === actionRef.item.id)
|
21702
|
+
const recipient = actionRef.item.recipients.find(r => r.id === actionRef.item.id);
|
21709
21703
|
actionRef.item.recipients.slice(1).
|
21710
21704
|
filter(r => r.userId !== session.profile.userId && !r.estimate && !r.pending
|
21711
|
-
&& r.received >= actionRef.item.issued && r.received
|
21705
|
+
&& r.received >= actionRef.item.issued && r.received < recipient.received).
|
21712
21706
|
reverse().forEach(r => this.recipients.findIndex(i => i.userId === r.userId) < 0 &&
|
21713
21707
|
this.recipients.push(r));
|
21714
21708
|
}
|