Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
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: CreatedAt type: DATE - name: Customer type: Customer - name: DueDate type: DATE - name: InvoiceDate type: DATE - name: InvoiceNumber type: STRING - name: Status type: STRING - name: TaxAmount type: STRING - name: TotalGross type: STRING - name: TotalNet type: STRING The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) An existing Invoice entity should be loaded from the relative URL: "/InvoiceService/invoice/{id}" (HTTP-GET) If a new Invoice entity has been created, the new entity should be posted to the relative URL: "/InvoiceService/invoice" (HTTP-POST) If an existing Invoice entity has been updated, the modified entity should be sent to the relative URL: "/InvoiceService/invoice/{id}" (HTTP-PUT) If an existing Invoice entity has to be deleted, the following relative URL should be called: "/InvoiceService/invoice/{id}" (HTTP-DELETE) Add a HTML table to the view with the following InvoiceItem columns: - column: UnitPrice - column: TotalGross - column: Invoice - column: TaxRate - column: Description - column: Quantity - column: SourceKey - column: SourceType The table should have the title "InvoiceItems" und the data must be loaded from the server with the following relative URL: "/InvoiceService/invoiceitem/invoice/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum