Overview
Summary
Contact
Donate
Imprint
Prompt for the
ReturnRequestView
Please create a React-JS view called "ReturnRequestView" for the fields of the ReturnRequest entity. The ReturnRequestView must contain the following fields: - name: CreatedAt type: DATE - name: Customer type: Customer - name: CustomerOrder type: Customer - name: Reason type: STRING - name: Status type: STRING - name: UpdatedAt type: DATE The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) The data source for the [CustomerOrder] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) An existing ReturnRequest entity should be loaded from the relative URL: "/ReturnRequestService/returnrequest/{id}" (HTTP-GET) If a new ReturnRequest entity has been created, the new entity should be posted to the relative URL: "/ReturnRequestService/returnrequest" (HTTP-POST) If an existing ReturnRequest entity has been updated, the modified entity should be sent to the relative URL: "/ReturnRequestService/returnrequest/{id}" (HTTP-PUT) If an existing ReturnRequest entity has to be deleted, the following relative URL should be called: "/ReturnRequestService/returnrequest/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ReturnItem columns: - column: Condition - column: Quantity - column: Resolution - column: ReturnRequest - column: OrderItem The table should have the title "ReturnItems" und the data must be loaded from the server with the following relative URL: "/ReturnRequestService/returnitem/returnrequest/{id}" Add a HTML table to the view with the following Refund columns: - column: ReturnRequest - column: Amount - column: CreatedAt - column: PaymentTransaction - column: Currency The table should have the title "Refunds" und the data must be loaded from the server with the following relative URL: "/ReturnRequestService/refund/returnrequest/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint