cancel
Showing results for 
Search instead for 
Did you mean: 

Backoffice customization -Widget

0 Kudos

Hi Team,

I have question regarding Backoffice order entry widget.

We have requirement like creation order entry widget, whenever we create new order entry in existing order the default existing should be added in widget like '

Thank You.

safin
Advisor
Advisor

Hi,

You mean whenever creating a new order entry, the existing order entries for the same order should appear in the order entry creation wizard, is that right?

Thanks

0 Kudos

Yes, We have the type ServiceFee that extend AbstractServiceFee where it have different attribute like

1. b2bUnit

serviceFeeType
rimDiameterMi
feeType
id
where it have relation with b2bunit as one to many .As every b2bunit will have the many servicefee.
so whener customer would like create new servicefee from the b2bunut admin tab, the current b2buni suppose to be added in service fee while creating.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

here the current b2bunit is not assigned as default using the property below.

@

<wz:assign property="serviceFee.b2bUnit" value="ctx.parentObject"/>

any one what is wrong here

adiputera
Active Participant
0 Kudos

Hi,

I think it's because you called wrong variable, at wz:initialize property, it's newServiceFee, but when you assign it, you're calling serviceFee, it should be newServiceFee

adiputera
Active Participant
0 Kudos

Try these to add the default value of quantity:

	<context type="OrderEntry" component="create-wizard">
		<wz:flow id="OrderEntryWizard" title="create.title(ctx.TYPE_CODE)">
			<wz:prepare id="prepareOrderEntry">
				<wz:initialize property="newOe" type="ctx.TYPE_CODE"/>
				<wz:assign property="newOe.quantity" value="1"/>
			</wz:prepare>
			<wz:step id="step1" label="create.orderentry.essential.label">
				..........
			</wz:step>
		</wz:flow>
	</context>
0 Kudos

<wz:assign property="newOe.quantity" value="1"/>'

this does not work