Commit 68155f6e by 张立顺

fix: remove customer delivery date from submit payload

1 parent 674a533b
...@@ -22,7 +22,8 @@ export const SUBMIT_CUSTOMER_PROPERTIES_TO_DELETE = [ ...@@ -22,7 +22,8 @@ export const SUBMIT_CUSTOMER_PROPERTIES_TO_DELETE = [
'buyTime', 'buyTime',
'createdDate', 'createdDate',
'updatedDate', 'updatedDate',
'goodsOrder' 'goodsOrder',
'actualDeliveryDate'
] ]
/** /**
......
...@@ -20,6 +20,7 @@ describe('submitPayload.helpers', () => { ...@@ -20,6 +20,7 @@ describe('submitPayload.helpers', () => {
createdDate: 'y', createdDate: 'y',
updatedDate: 'z', updatedDate: 'z',
goodsOrder: { orderCode: 'GO1' }, goodsOrder: { orderCode: 'GO1' },
actualDeliveryDate: '2026-08-17',
customerName: 'retained customer', customerName: 'retained customer',
plateNumber: 'P' plateNumber: 'P'
}, },
...@@ -66,6 +67,7 @@ describe('submitPayload.helpers', () => { ...@@ -66,6 +67,7 @@ describe('submitPayload.helpers', () => {
assert.equal(out.customer.buyTime, undefined) assert.equal(out.customer.buyTime, undefined)
assert.equal(out.customer.updatedDate, undefined) assert.equal(out.customer.updatedDate, undefined)
assert.equal(out.customer.goodsOrder, undefined) assert.equal(out.customer.goodsOrder, undefined)
assert.equal(out.customer.actualDeliveryDate, undefined)
assert.equal(out.customer.customerName, 'retained customer') assert.equal(out.customer.customerName, 'retained customer')
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!