law-common 10.26.1-beta.0 → 10.26.1-beta.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.
|
@@ -69,7 +69,7 @@ export declare class BillingEntityModel extends BaseEntityModel<EntityEnum.BILLI
|
|
|
69
69
|
EntityEnum.BILLING_TIMESHEET,
|
|
70
70
|
EntityEnum.BANK
|
|
71
71
|
], EnumEntityType<EntityEnum.BILLING>>;
|
|
72
|
-
static
|
|
72
|
+
static fromEntity(entity: IBillingEntity): BillingEntityModel;
|
|
73
73
|
getStatusCategory(): BillingStatusCategoryEnumForUI;
|
|
74
74
|
getStatusLabel(): string;
|
|
75
75
|
getTotalAmountInINR(): number;
|
|
@@ -43,7 +43,7 @@ class BillingEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
43
43
|
this.updatedOn = 0;
|
|
44
44
|
this.type = billing_type_enum_1.BillingTypeEnum.INVOICE;
|
|
45
45
|
}
|
|
46
|
-
static
|
|
46
|
+
static fromEntity(entity) {
|
|
47
47
|
const result = new BillingEntityModel(entity_utils_interface_1.EntityEnum.BILLING);
|
|
48
48
|
Object.assign(result, entity);
|
|
49
49
|
return result;
|
|
@@ -52,7 +52,7 @@ function parseEntities(json, baseEntity, entityMap) {
|
|
|
52
52
|
const entityFromJsonMappings = {
|
|
53
53
|
[entity_utils_interface_1.EntityEnum.PROJECT]: project_entity_model_1.ProjectEntityModel.fromEntity,
|
|
54
54
|
[entity_utils_interface_1.EntityEnum.CLIENT]: client_entity_model_1.ClientEntityModel.fromEntity,
|
|
55
|
-
[entity_utils_interface_1.EntityEnum.BILLING]: billing_entity_model_1.BillingEntityModel.
|
|
55
|
+
[entity_utils_interface_1.EntityEnum.BILLING]: billing_entity_model_1.BillingEntityModel.fromEntity,
|
|
56
56
|
[entity_utils_interface_1.EntityEnum.USER]: user_entity_model_1.UserEntityModel.fromEntity,
|
|
57
57
|
[entity_utils_interface_1.EntityEnum.PROJECT_USER_MAPPING]: project_user_mapping_entity_model_1.ProjectUserMappingEntityModel.fromEntity,
|
|
58
58
|
[entity_utils_interface_1.EntityEnum.REIMBURSEMENT]: reimbursement_entity_model_1.ReimbursementEntityModel.fromApiEntity,
|