Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { type Overwrite } from '@amalia/core/models';
import { OverwriteTypesEnum } from '@amalia/core/types';
import { OverwriteScopeEnum } from '@amalia/data-correction/overwrites/types';
import { company } from './company';
import { customObjectDefinitions } from './customObjectDefinitions';
import { users } from './users';
export const overwrites = [
{
id: 'ca635f52-6247-4ee7-95e0-bd05a8dc3169',
appliesToDefinitionId: customObjectDefinitions.opportunityLineItem.id,
appliesToExternalId: 'aaaaaa1',
field: 'quantity',
sourceValue: { quantity: '2' },
overwriteValue: { quantity: '5' },
statementId: undefined,
createdOnStatementId: undefined,
creator: users.admin,
overwriteType: OverwriteTypesEnum.PROPERTY,
scope: OverwriteScopeEnum.GLOBAL,
createdAt: new Date(),
updatedAt: new Date(),
company,
companyId: company.id,
},
{
id: 'a044d56f-b523-4808-b4c4-5d20e8106894',
appliesToDefinitionId: customObjectDefinitions.opportunityLineItem.id,
appliesToExternalId: 'aaaaaa1',
field: 'quantity',
sourceValue: { quantity: '2' },
overwriteValue: { quantity: '5' },
clearedAt: new Date('2022-06-29'),
statementId: undefined,
createdOnStatementId: undefined,
creator: users.admin,
overwriteType: OverwriteTypesEnum.PROPERTY,
scope: OverwriteScopeEnum.GLOBAL,
createdAt: new Date(),
updatedAt: new Date(),
company,
companyId: company.id,
},
{
id: '1fb5e107-789d-44b0-9c43-2de977471997',
appliesToDefinitionId: '8f9b148d-d569-4d13-9243-7e886fe01234',
appliesToExternalId: '0175p00022x3xmvAAA',
field: 'delaiPaiement',
sourceValue: { delaiPaiement: '30j' },
overwriteValue: { delaiPaiement: '45j' },
statementId: 'bcb72da4-49b3-4b8b-a3a2-f9459c9791e3',
createdOnStatementId: 'bcb72da4-49b3-4b8b-a3a2-f9459c9791e3',
creator: users.admin,
overwriteType: OverwriteTypesEnum.KPI,
clearedAt: null,
scope: OverwriteScopeEnum.GLOBAL,
createdAt: new Date(),
updatedAt: new Date(),
company,
companyId: company.id,
},
] as const satisfies Overwrite[];
|