Overview
Summary
Contact
Donate
Imprint
Prompt for the
InvoiceView
Please create a React-JS view called "InvoiceView" for the fields of the Invoice entity. The InvoiceView must contain the following fields: - name: BilledUserAccount type: LONG - name: Currency type: Currency - name: DueDate type: DATE - name: IssueDate type: DATE - name: Merchant type: Merchant - name: Notes type: STRING - name: Number type: STRING - name: Status type: STRING - name: TotalAmount type: DOUBLE - name: Transaction type: Transaction The data source for the [Merchant] select control should be loaded from the relative URL: "/MerchantService/merchant" (HTTP-GET) The data source for the [Transaction] select control should be loaded from the relative URL: "/TransactionService/transaction" (HTTP-GET) The data source for the [Currency] select control should be loaded from the relative URL: "/CurrencyService/currency" (HTTP-GET) An existing Invoice entity should be loaded from the relative URL: "/CurrencyService/invoice/{id}" (HTTP-GET) If a new Invoice entity has been created, the new entity should be posted to the relative URL: "/CurrencyService/invoice" (HTTP-POST) If an existing Invoice entity has been updated, the modified entity should be sent to the relative URL: "/CurrencyService/invoice/{id}" (HTTP-PUT) If an existing Invoice entity has to be deleted, the following relative URL should be called: "/CurrencyService/invoice/{id}" (HTTP-DELETE) Add a HTML table to the view with the following InvoiceItem columns: - column: Invoice - column: Name - column: UnitAmount - column: Quantity - column: TaxAmount - column: Description The table should have the title "InvoiceItems" und the data must be loaded from the server with the following relative URL: "/CurrencyService/invoiceitem/invoice/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint