Skip to content

Commit

Permalink
change fulfilment state to pending on creation from Order view
Browse files Browse the repository at this point in the history
  • Loading branch information
belsman committed Oct 15, 2024
1 parent 876e381 commit 72fb299
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions packages/core/state/src/lib/+state/order/order.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ export const mapOrderToFulfilment = (
const orderToFulfillment: IIoRestorecommerceFulfillmentFulfillmentList = {
items: [
{
// id: '',
customerId: order.customerId,
shopId: order.shopId,
userId: order.userId,
fulfillmentState:
IoRestorecommerceFulfillmentFulfillmentState.Submitted,
fulfillmentState: IoRestorecommerceFulfillmentFulfillmentState.Pending,
labels: [],
packaging: {
invoiceNumber: '',
Expand All @@ -56,45 +54,11 @@ export const mapOrderToFulfilment = (
notify: order.notificationEmail,
parcels: [
{
id: '1',
productId: 'n-fuse-shop000-fp-dhl-domestic',
variantId: 'n-fuse-shop000-fp-dhl-domestic_max_weight_1kg',
items: parcelItems,
price: {
salePrice: 4.85,
regularPrice: 4.85,
sale: false,
},
amount: undefined,
package: {
sizeInCm: {
height: 5.0,
length: 5.0,
width: 5.0,
},
weightInKg: 1.0,
},
},
],
// sender: {
// address: {
// id: 'sender_address',
// postcode: '28757',
// countryId: 'germany',
// locality: 'Bremen',
// street: 'Vegesacker Heerstr',
// region: 'Bremen',
// buildingNumber: '1',
// businessAddress: {
// name: 'Restorecommerce GmbH',
// },
// },
// contact: {
// name: 'bello babakolo',
// email: 'fleetbeekay@gmail.com ',
// phone: '+2347038405297',
// },
// },
recipient: {
address: {
buildingNumber: order.shippingAddress?.address?.buildingNumber,
Expand Down

0 comments on commit 72fb299

Please sign in to comment.