@@ -175,6 +175,11 @@ export function ParcelTransportOrganisation({
...
@@ -175,6 +175,11 @@ export function ParcelTransportOrganisation({
body:{
body:{
...parcel,
...parcel,
isReimbursed:e.currentTarget.checked,
isReimbursed:e.currentTarget.checked,
returnParcelInformation:{
returnType:undefined,
forwarderName:undefined,
plannedPickupDate:undefined,
},
},
},
});
});
if (e.currentTarget.checked){
if (e.currentTarget.checked){
...
@@ -198,7 +203,7 @@ export function ParcelTransportOrganisation({
...
@@ -198,7 +203,7 @@ export function ParcelTransportOrganisation({
reference={reference}
reference={reference}
/>
/>
)}
)}
{parcel.returnAddress&&paidByFacility!==true&&(
{parcel.returnAddress&&(
<>
<>
<RowclassName="mt-1">
<RowclassName="mt-1">
<Col>
<Col>
...
@@ -214,13 +219,15 @@ export function ParcelTransportOrganisation({
...
@@ -214,13 +219,15 @@ export function ParcelTransportOrganisation({
label={`I will prepare the transport documents using my forwarder account, and ${facilityName} will organise the return using the return documents I prepared (daily pickups from ${facilityName} exist for ${faciltyTransporters}).`}
label={`I will prepare the transport documents using my forwarder account, and ${facilityName} will organise the return using the return documents I prepared (daily pickups from ${facilityName} exist for ${faciltyTransporters}).`}
name="radio-parcel-papers-included"
name="radio-parcel-papers-included"
id="radio-parcel-papers-included"
id="radio-parcel-papers-included"
checked={parcelPapersManaged}
checked={!paidByFacility&&parcelPapersManaged}
onChange={(e)=>{
onChange={(e)=>{
setParcelPapersManaged(e.currentTarget.checked);
setParcelPapersManaged(e.currentTarget.checked);
setPaidByFacility(false);
setPickup(!e.currentTarget.checked);
setPickup(!e.currentTarget.checked);
mutate({
mutate({
body:{
body:{
...parcel,
...parcel,
isReimbursed:false,
returnParcelInformation:{
returnParcelInformation:{
returnType:RETURN_PARCEL_TYPE_MANAGE,
returnType:RETURN_PARCEL_TYPE_MANAGE,
forwarderName:undefined,
forwarderName:undefined,
...
@@ -241,13 +248,15 @@ export function ParcelTransportOrganisation({
...
@@ -241,13 +248,15 @@ export function ParcelTransportOrganisation({
label={`I will prepare the transport documents using my forwarder account, and I will organise the return directly with the fowarder (if not ${faciltyTransporters}).`}
label={`I will prepare the transport documents using my forwarder account, and I will organise the return directly with the fowarder (if not ${faciltyTransporters}).`}