Skip to content

Commit

Permalink
fixup! feat: add cost center approval widget
Browse files Browse the repository at this point in the history
  • Loading branch information
shauke committed Oct 11, 2021
1 parent 746cc32 commit 1febc0a
Showing 1 changed file with 80 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,87 +53,87 @@ describe('Requisition Mapper', () => {

const mapped = requisitionMapper.fromData({ data });
expect(mapped).toMatchInlineSnapshot(`
Object {
"approval": Object {
"approvalDate": 76543627,
"approver": Object {
"firstName": "Bernhard",
"lastName": "Boldner",
},
"costCenterApproval": Object {
"approvers": Array [
Object {
"email": "jlink@test.intershop.de",
},
],
},
"customerApprovers": undefined,
"status": "APPROVED",
},
"attributes": undefined,
"bucketId": undefined,
"commonShipToAddress": undefined,
"commonShippingMethod": undefined,
"costCenter": "CostCenter123",
"creationDate": 12345678,
"customerNo": "OilCorp",
"dynamicMessages": undefined,
"email": "bboldner@test.intershop.de",
"id": "testUUDI",
"infos": undefined,
"invoiceToAddress": undefined,
"lineItemCount": 2,
"lineItems": Array [],
"orderNo": "10001",
"payment": undefined,
"promotionCodes": undefined,
"purchaseCurrency": "USD",
"requisitionNo": "0001",
"totalProductQuantity": undefined,
"totals": Object {
"bucketSurchargeTotalsByType": undefined,
"dutiesAndSurchargesTotal": undefined,
"isEstimated": false,
"itemRebatesTotal": undefined,
"itemShippingRebatesTotal": undefined,
"itemSurchargeTotalsByType": undefined,
"itemTotal": undefined,
"paymentCostsTotal": undefined,
"shippingRebates": undefined,
"shippingRebatesTotal": undefined,
"shippingTotal": undefined,
"taxTotal": undefined,
"total": undefined,
"undiscountedItemTotal": undefined,
"undiscountedShippingTotal": undefined,
"valueRebates": undefined,
"valueRebatesTotal": undefined,
},
"user": Object {
"email": "pmiller@test.intershop.de",
"firstName": "Patricia",
"lastName": "Miller",
},
"userBudget": Object {
"budget": Object {
"currency": "USD",
"type": "Money",
"value": 3000,
},
"budgetPeriod": "weekly",
"orderSpentLimit": Object {
"currency": "USD",
"type": "Money",
"value": 500,
},
"spentBudget": Object {
"currency": "USD",
"type": "Money",
"value": 0,
},
},
}
`);
"approval": Object {
"approvalDate": 76543627,
"approver": Object {
"firstName": "Bernhard",
"lastName": "Boldner",
},
"costCenterApproval": Object {
"approvers": Array [
Object {
"email": "jlink@test.intershop.de",
},
],
},
"customerApprovers": undefined,
"status": "APPROVED",
},
"attributes": undefined,
"bucketId": undefined,
"commonShipToAddress": undefined,
"commonShippingMethod": undefined,
"costCenter": "CostCenter123",
"creationDate": 12345678,
"customerNo": "OilCorp",
"dynamicMessages": undefined,
"email": "bboldner@test.intershop.de",
"id": "testUUDI",
"infos": undefined,
"invoiceToAddress": undefined,
"lineItemCount": 2,
"lineItems": Array [],
"orderNo": "10001",
"payment": undefined,
"promotionCodes": undefined,
"purchaseCurrency": "USD",
"requisitionNo": "0001",
"totalProductQuantity": undefined,
"totals": Object {
"bucketSurchargeTotalsByType": undefined,
"dutiesAndSurchargesTotal": undefined,
"isEstimated": false,
"itemRebatesTotal": undefined,
"itemShippingRebatesTotal": undefined,
"itemSurchargeTotalsByType": undefined,
"itemTotal": undefined,
"paymentCostsTotal": undefined,
"shippingRebates": undefined,
"shippingRebatesTotal": undefined,
"shippingTotal": undefined,
"taxTotal": undefined,
"total": undefined,
"undiscountedItemTotal": undefined,
"undiscountedShippingTotal": undefined,
"valueRebates": undefined,
"valueRebatesTotal": undefined,
},
"user": Object {
"email": "pmiller@test.intershop.de",
"firstName": "Patricia",
"lastName": "Miller",
},
"userBudget": Object {
"budget": Object {
"currency": "USD",
"type": "Money",
"value": 3000,
},
"budgetPeriod": "weekly",
"orderSpentLimit": Object {
"currency": "USD",
"type": "Money",
"value": 500,
},
"spentBudget": Object {
"currency": "USD",
"type": "Money",
"value": 0,
},
},
}
`);
});
});
});

1 comment on commit 1febc0a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Azure Demo Servers are available:

Please sign in to comment.