Răsfoiți Sursa

fix(admin-ui): Improved support for modifying OrderLine custom fields

Relates to #2641
Michael Bromley 2 ani în urmă
părinte
comite
0750fb19c8
28 a modificat fișierele cu 100 adăugiri și 66 ștergeri
  1. 23 23
      packages/admin-ui/i18n-coverage.json
  2. 1 6
      packages/admin-ui/src/lib/core/src/shared/components/custom-field-control/custom-field-control.component.ts
  3. 4 0
      packages/admin-ui/src/lib/core/src/shared/components/data-table-2/data-table-custom-field-column.component.ts
  4. 3 0
      packages/admin-ui/src/lib/order/src/components/modification-detail/modification-detail.component.html
  5. 14 3
      packages/admin-ui/src/lib/order/src/components/modification-detail/modification-detail.component.ts
  6. 26 9
      packages/admin-ui/src/lib/order/src/components/order-editor/order-editor.component.html
  7. 5 1
      packages/admin-ui/src/lib/order/src/components/order-editor/order-editor.component.ts
  8. 2 2
      packages/admin-ui/src/lib/order/src/components/simple-item-list/simple-item-list.component.html
  9. 1 1
      packages/admin-ui/src/lib/order/src/components/simple-item-list/simple-item-list.component.ts
  10. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/ar.json
  11. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/cs.json
  12. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/de.json
  13. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/en.json
  14. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/es.json
  15. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/fa.json
  16. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/fr.json
  17. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/he.json
  18. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/hr.json
  19. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/it.json
  20. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/nb.json
  21. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/ne.json
  22. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/pl.json
  23. 2 2
      packages/admin-ui/src/lib/static/i18n-messages/pt_BR.json
  24. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/pt_PT.json
  25. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/ru.json
  26. 2 2
      packages/admin-ui/src/lib/static/i18n-messages/uk.json
  27. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/zh_Hans.json
  28. 1 1
      packages/admin-ui/src/lib/static/i18n-messages/zh_Hant.json

+ 23 - 23
packages/admin-ui/i18n-coverage.json

@@ -1,20 +1,20 @@
 {
 {
-  "generatedOn": "2024-01-19T11:46:08.674Z",
-  "lastCommit": "fc1f6490bddbc225b4824007088596372fb9958f",
+  "generatedOn": "2024-01-26T08:34:41.984Z",
+  "lastCommit": "2314ff6a392488179cd3e3c553a445bd0fd8202d",
   "translationStatus": {
   "translationStatus": {
     "ar": {
     "ar": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 766,
+      "translatedCount": 767,
       "percentage": 100
       "percentage": 100
     },
     },
     "cs": {
     "cs": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 578,
+      "translatedCount": 579,
       "percentage": 75
       "percentage": 75
     },
     },
     "de": {
     "de": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 766,
+      "translatedCount": 767,
       "percentage": 100
       "percentage": 100
     },
     },
     "en": {
     "en": {
@@ -24,77 +24,77 @@
     },
     },
     "es": {
     "es": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 766,
+      "translatedCount": 767,
       "percentage": 100
       "percentage": 100
     },
     },
     "fa": {
     "fa": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 766,
+      "translatedCount": 767,
       "percentage": 100
       "percentage": 100
     },
     },
     "fr": {
     "fr": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 764,
+      "translatedCount": 765,
       "percentage": 99
       "percentage": 99
     },
     },
     "he": {
     "he": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 766,
+      "translatedCount": 767,
       "percentage": 100
       "percentage": 100
     },
     },
     "hr": {
     "hr": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 765,
-      "percentage": 99
+      "translatedCount": 766,
+      "percentage": 100
     },
     },
     "it": {
     "it": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 766,
+      "translatedCount": 767,
       "percentage": 100
       "percentage": 100
     },
     },
     "nb": {
     "nb": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 763,
+      "translatedCount": 764,
       "percentage": 99
       "percentage": 99
     },
     },
     "ne": {
     "ne": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 755,
+      "translatedCount": 756,
       "percentage": 98
       "percentage": 98
     },
     },
     "pl": {
     "pl": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 408,
+      "translatedCount": 409,
       "percentage": 53
       "percentage": 53
     },
     },
     "pt_BR": {
     "pt_BR": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 765,
-      "percentage": 99
+      "translatedCount": 766,
+      "percentage": 100
     },
     },
     "pt_PT": {
     "pt_PT": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 613,
+      "translatedCount": 614,
       "percentage": 80
       "percentage": 80
     },
     },
     "ru": {
     "ru": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 766,
+      "translatedCount": 767,
       "percentage": 100
       "percentage": 100
     },
     },
     "uk": {
     "uk": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 601,
-      "percentage": 78
+      "translatedCount": 767,
+      "percentage": 100
     },
     },
     "zh_Hans": {
     "zh_Hans": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 548,
+      "translatedCount": 549,
       "percentage": 71
       "percentage": 71
     },
     },
     "zh_Hant": {
     "zh_Hant": {
       "tokenCount": 769,
       "tokenCount": 769,
-      "translatedCount": 395,
+      "translatedCount": 396,
       "percentage": 51
       "percentage": 51
     }
     }
   }
   }

+ 1 - 6
packages/admin-ui/src/lib/core/src/shared/components/custom-field-control/custom-field-control.component.ts

@@ -1,4 +1,4 @@
-import { Component, ComponentFactory, Input, OnInit, ViewChild, ViewContainerRef } from '@angular/core';
+import { Component, Input, OnInit } from '@angular/core';
 import { UntypedFormGroup } from '@angular/forms';
 import { UntypedFormGroup } from '@angular/forms';
 import { Observable } from 'rxjs';
 import { Observable } from 'rxjs';
 import { map } from 'rxjs/operators';
 import { map } from 'rxjs/operators';
@@ -8,7 +8,6 @@ import { CustomFieldConfig, CustomFieldsFragment, LanguageCode } from '../../../
 import { DataService } from '../../../data/providers/data.service';
 import { DataService } from '../../../data/providers/data.service';
 import {
 import {
     CustomFieldComponentService,
     CustomFieldComponentService,
-    CustomFieldControl,
     CustomFieldEntityName,
     CustomFieldEntityName,
 } from '../../../providers/custom-field-component/custom-field-component.service';
 } from '../../../providers/custom-field-component/custom-field-component.service';
 
 
@@ -29,10 +28,6 @@ export class CustomFieldControlComponent implements OnInit {
     @Input() showLabel = true;
     @Input() showLabel = true;
     @Input() readonly = false;
     @Input() readonly = false;
     hasCustomControl = false;
     hasCustomControl = false;
-    @ViewChild('customComponentPlaceholder', { read: ViewContainerRef })
-    private customComponentPlaceholder: ViewContainerRef;
-
-    private customComponentFactory: ComponentFactory<CustomFieldControl> | undefined;
     uiLanguage$: Observable<LanguageCode>;
     uiLanguage$: Observable<LanguageCode>;
 
 
     constructor(
     constructor(

+ 4 - 0
packages/admin-ui/src/lib/core/src/shared/components/data-table-2/data-table-custom-field-column.component.ts

@@ -4,8 +4,11 @@ import { map } from 'rxjs/operators';
 import { CustomFieldConfig, LanguageCode } from '../../../common/generated-types';
 import { CustomFieldConfig, LanguageCode } from '../../../common/generated-types';
 import { DataService } from '../../../data/providers/data.service';
 import { DataService } from '../../../data/providers/data.service';
 import { DataTableSortCollection } from '../../../providers/data-table/data-table-sort-collection';
 import { DataTableSortCollection } from '../../../providers/data-table/data-table-sort-collection';
+import { CustomFieldLabelPipe } from '../../pipes/custom-field-label.pipe';
 import { DataTable2ColumnComponent } from './data-table-column.component';
 import { DataTable2ColumnComponent } from './data-table-column.component';
 
 
+const labelPipe = new CustomFieldLabelPipe();
+
 @Component({
 @Component({
     selector: 'vdr-dt2-custom-field-column',
     selector: 'vdr-dt2-custom-field-column',
     templateUrl: './data-table-custom-field-column.component.html',
     templateUrl: './data-table-custom-field-column.component.html',
@@ -35,6 +38,7 @@ export class DataTableCustomFieldColumnComponent<T> extends DataTable2ColumnComp
         this.hiddenByDefault = true;
         this.hiddenByDefault = true;
         this.sort = this.sorts?.get(this.customField.name);
         this.sort = this.sorts?.get(this.customField.name);
         this.id = this.customField.name;
         this.id = this.customField.name;
+        this.heading = labelPipe.transform(this.customField, null);
         super.ngOnInit();
         super.ngOnInit();
     }
     }
 }
 }

+ 3 - 0
packages/admin-ui/src/lib/order/src/components/modification-detail/modification-detail.component.html

@@ -12,3 +12,6 @@
 <vdr-labeled-data *ngIf="getRemovedItems().length" [label]="'order.removed-items' | translate">
 <vdr-labeled-data *ngIf="getRemovedItems().length" [label]="'order.removed-items' | translate">
     <vdr-simple-item-list [items]="getRemovedItems()"></vdr-simple-item-list>
     <vdr-simple-item-list [items]="getRemovedItems()"></vdr-simple-item-list>
 </vdr-labeled-data>
 </vdr-labeled-data>
+<vdr-labeled-data *ngIf="getModifiedItems().length" [label]="'order.modified-items' | translate">
+    <vdr-simple-item-list [items]="getModifiedItems()"></vdr-simple-item-list>
+</vdr-labeled-data>

+ 14 - 3
packages/admin-ui/src/lib/order/src/components/modification-detail/modification-detail.component.ts

@@ -12,11 +12,13 @@ export class ModificationDetailComponent implements OnChanges {
     @Input() modification: OrderDetailFragment['modifications'][number];
     @Input() modification: OrderDetailFragment['modifications'][number];
     private addedItems = new Map<OrderDetailFragment['lines'][number], number>();
     private addedItems = new Map<OrderDetailFragment['lines'][number], number>();
     private removedItems = new Map<OrderDetailFragment['lines'][number], number>();
     private removedItems = new Map<OrderDetailFragment['lines'][number], number>();
+    private modifiedItems = new Set<OrderDetailFragment['lines'][number]>();
 
 
     ngOnChanges(): void {
     ngOnChanges(): void {
-        const { added, removed } = this.getModifiedLines();
+        const { added, removed, modified } = this.getModifiedLines();
         this.addedItems = added;
         this.addedItems = added;
         this.removedItems = removed;
         this.removedItems = removed;
+        this.modifiedItems = modified;
     }
     }
 
 
     getSurcharge(id: string) {
     getSurcharge(id: string) {
@@ -37,20 +39,29 @@ export class ModificationDetailComponent implements OnChanges {
         }));
         }));
     }
     }
 
 
+    getModifiedItems() {
+        return [...this.modifiedItems].map(line => ({
+            name: line.productVariant.name,
+        }));
+    }
+
     private getModifiedLines() {
     private getModifiedLines() {
         const added = new Map<OrderDetailFragment['lines'][number], number>();
         const added = new Map<OrderDetailFragment['lines'][number], number>();
         const removed = new Map<OrderDetailFragment['lines'][number], number>();
         const removed = new Map<OrderDetailFragment['lines'][number], number>();
+        const modified = new Set<OrderDetailFragment['lines'][number]>();
         for (const modificationLine of this.modification.lines || []) {
         for (const modificationLine of this.modification.lines || []) {
             const line = this.order.lines.find(l => l.id === modificationLine.orderLineId);
             const line = this.order.lines.find(l => l.id === modificationLine.orderLineId);
             if (!line) {
             if (!line) {
                 continue;
                 continue;
             }
             }
-            if (modificationLine.quantity < 0) {
+            if (modificationLine.quantity === 0) {
+                modified.add(line);
+            } else if (modificationLine.quantity < 0) {
                 removed.set(line, -modificationLine.quantity);
                 removed.set(line, -modificationLine.quantity);
             } else {
             } else {
                 added.set(line, modificationLine.quantity);
                 added.set(line, modificationLine.quantity);
             }
             }
         }
         }
-        return { added, removed };
+        return { added, removed, modified };
     }
     }
 }
 }

+ 26 - 9
packages/admin-ui/src/lib/order/src/components/order-editor/order-editor.component.html

@@ -191,6 +191,21 @@
                         ></vdr-line-fulfillment>
                         ></vdr-line-fulfillment>
                     </ng-template>
                     </ng-template>
                 </vdr-dt2-column>
                 </vdr-dt2-column>
+                <vdr-dt2-column
+                    *ngFor="let customField of orderLineCustomFields"
+                    [id]="customField.name"
+                    [heading]="customField | customFieldLabel:(uiLanguage$ | async)"
+                    [hiddenByDefault]="true"
+                >
+                    <ng-template let-line="item" let-index="index">
+                        <vdr-custom-field-control
+                                [compact]="true"
+                            [entityName]="'OrderLine'"
+                            [customField]="customField"
+                            [customFieldsFormGroup]="orderLineCustomFieldsFormArray.at(index)"
+                        />
+                    </ng-template>
+                </vdr-dt2-column>
             </vdr-data-table-2>
             </vdr-data-table-2>
         </vdr-card>
         </vdr-card>
         <vdr-card [title]="'order.add-item-to-order' | translate">
         <vdr-card [title]="'order.add-item-to-order' | translate">
@@ -215,15 +230,17 @@
                             </div>
                             </div>
                         </div>
                         </div>
                     </div>
                     </div>
-                    <ng-container *ngFor="let customField of orderLineCustomFields">
-                        <vdr-custom-field-control
-                            [readonly]="!addItemSelectedVariant"
-                            [customField]="customField"
-                            [customFieldsFormGroup]="addItemCustomFieldsForm"
-                            entityName="OrderLine"
-                            [compact]="true"
-                        ></vdr-custom-field-control>
-                    </ng-container>
+                    <div class="form-grid" *ngIf="addItemSelectedVariant">
+                        <ng-container *ngFor="let customField of orderLineCustomFields">
+                            <vdr-custom-field-control
+                                [readonly]="!addItemSelectedVariant"
+                                [customField]="customField"
+                                [customFieldsFormGroup]="addItemCustomFieldsForm"
+                                entityName="OrderLine"
+                                [compact]="true"
+                            ></vdr-custom-field-control>
+                        </ng-container>
+                    </div>
                 </div>
                 </div>
                 <div class="flex-spacer"></div>
                 <div class="flex-spacer"></div>
                 <div>
                 <div>

+ 5 - 1
packages/admin-ui/src/lib/order/src/components/order-editor/order-editor.component.ts

@@ -28,7 +28,7 @@ import {
 import { assertNever, notNullOrUndefined } from '@vendure/common/lib/shared-utils';
 import { assertNever, notNullOrUndefined } from '@vendure/common/lib/shared-utils';
 import { simpleDeepClone } from '@vendure/common/lib/simple-deep-clone';
 import { simpleDeepClone } from '@vendure/common/lib/simple-deep-clone';
 import { EMPTY, Observable, of } from 'rxjs';
 import { EMPTY, Observable, of } from 'rxjs';
-import { mapTo, shareReplay, switchMap, take, takeUntil } from 'rxjs/operators';
+import { map, mapTo, shareReplay, switchMap, take, takeUntil } from 'rxjs/operators';
 import {
 import {
     AddedLine,
     AddedLine,
     ModifyOrderData,
     ModifyOrderData,
@@ -54,6 +54,7 @@ export class OrderEditorComponent
 {
 {
     availableCountries$: Observable<GetAvailableCountriesQuery['countries']['items']>;
     availableCountries$: Observable<GetAvailableCountriesQuery['countries']['items']>;
     addressCustomFields: CustomFieldConfig[];
     addressCustomFields: CustomFieldConfig[];
+    uiLanguage$: Observable<LanguageCode>;
     detailForm = new UntypedFormGroup({});
     detailForm = new UntypedFormGroup({});
     couponCodesControl = new FormControl<string[]>([]);
     couponCodesControl = new FormControl<string[]>([]);
     orderLineCustomFieldsFormArray: UntypedFormArray;
     orderLineCustomFieldsFormArray: UntypedFormArray;
@@ -183,6 +184,9 @@ export class OrderEditorComponent
             .single$.subscribe(({ order }) => {
             .single$.subscribe(({ order }) => {
                 this.previousState = order?.history.items[0].data.from;
                 this.previousState = order?.history.items[0].data.from;
             });
             });
+        this.uiLanguage$ = this.dataService.client
+            .uiState()
+            .stream$.pipe(map(({ uiState }) => uiState.language));
     }
     }
 
 
     ngOnDestroy(): void {
     ngOnDestroy(): void {

+ 2 - 2
packages/admin-ui/src/lib/order/src/components/simple-item-list/simple-item-list.component.html

@@ -1,8 +1,8 @@
 <div class="items-list">
 <div class="items-list">
     <ul>
     <ul>
         <li *ngFor="let item of items" [title]="item.name">
         <li *ngFor="let item of items" [title]="item.name">
-            <div class="quantity">{{ item.quantity }}</div>
-            <clr-icon shape="times" size="12"></clr-icon>
+            <div class="quantity" *ngIf="item.quantity != null">{{ item.quantity }}</div>
+            <clr-icon shape="times" size="12" *ngIf="item.quantity != null"></clr-icon>
             {{ item.name }}
             {{ item.name }}
         </li>
         </li>
     </ul>
     </ul>

+ 1 - 1
packages/admin-ui/src/lib/order/src/components/simple-item-list/simple-item-list.component.ts

@@ -7,5 +7,5 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
     changeDetection: ChangeDetectionStrategy.OnPush,
     changeDetection: ChangeDetectionStrategy.OnPush,
 })
 })
 export class SimpleItemListComponent {
 export class SimpleItemListComponent {
-    @Input() items: Array<{ name: string; quantity: number }>;
+    @Input() items: Array<{ name: string; quantity?: number }>;
 }
 }

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/ar.json

@@ -601,6 +601,7 @@
     "modification-summary": "ملخص التعديلات",
     "modification-summary": "ملخص التعديلات",
     "modification-updating-billing-address": "تحديث عنوان الفواتير",
     "modification-updating-billing-address": "تحديث عنوان الفواتير",
     "modification-updating-shipping-address": "تحديث عنوان الشحن",
     "modification-updating-shipping-address": "تحديث عنوان الشحن",
+    "modified-items": "العناصر المعدلة",
     "modify-order": "تعديل الترتيب",
     "modify-order": "تعديل الترتيب",
     "modify-order-price-difference": "فرق السعر",
     "modify-order-price-difference": "فرق السعر",
     "net-price": "السعر الصافي",
     "net-price": "السعر الصافي",
@@ -625,7 +626,6 @@
     "payment-metadata": "بيانات تعريف الدفع",
     "payment-metadata": "بيانات تعريف الدفع",
     "payment-method": "طريقة الدفع او السداد",
     "payment-method": "طريقة الدفع او السداد",
     "payment-state": "وضع الأداء",
     "payment-state": "وضع الأداء",
-    "payment-to-refund": "الدفع لاسترداد",
     "payments": "المدفوعات",
     "payments": "المدفوعات",
     "placed-at": "وضعت في",
     "placed-at": "وضعت في",
     "preview-changes": "تغييرات المعاينة",
     "preview-changes": "تغييرات المعاينة",

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/cs.json

@@ -601,6 +601,7 @@
     "modification-summary": "Souhrn úprav",
     "modification-summary": "Souhrn úprav",
     "modification-updating-billing-address": "Upravování fakturační adresy",
     "modification-updating-billing-address": "Upravování fakturační adresy",
     "modification-updating-shipping-address": "Upravování dodací adresy",
     "modification-updating-shipping-address": "Upravování dodací adresy",
+    "modified-items": "Upravené položky",
     "modify-order": "Upravit objednávku",
     "modify-order": "Upravit objednávku",
     "modify-order-price-difference": "Cenový rozdíl",
     "modify-order-price-difference": "Cenový rozdíl",
     "net-price": "Čistá cena",
     "net-price": "Čistá cena",
@@ -625,7 +626,6 @@
     "payment-metadata": "Data platby",
     "payment-metadata": "Data platby",
     "payment-method": "Platební metoda",
     "payment-method": "Platební metoda",
     "payment-state": "Stav",
     "payment-state": "Stav",
-    "payment-to-refund": "Platba k refundaci",
     "payments": "",
     "payments": "",
     "placed-at": "Datum objednávky",
     "placed-at": "Datum objednávky",
     "preview-changes": "Náhled změn",
     "preview-changes": "Náhled změn",

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/de.json

@@ -601,6 +601,7 @@
     "modification-summary": "Zusammenfassung der Änderungen",
     "modification-summary": "Zusammenfassung der Änderungen",
     "modification-updating-billing-address": "Rechnungsadresse aktualisieren",
     "modification-updating-billing-address": "Rechnungsadresse aktualisieren",
     "modification-updating-shipping-address": "Versandadresse aktualisieren",
     "modification-updating-shipping-address": "Versandadresse aktualisieren",
+    "modified-items": "Geänderte Artikel",
     "modify-order": "Bestellung ändern",
     "modify-order": "Bestellung ändern",
     "modify-order-price-difference": "Preisunterschied",
     "modify-order-price-difference": "Preisunterschied",
     "net-price": "Nettopreis",
     "net-price": "Nettopreis",
@@ -625,7 +626,6 @@
     "payment-metadata": "Metadaten zur Bezahlung",
     "payment-metadata": "Metadaten zur Bezahlung",
     "payment-method": "Zahlungsart",
     "payment-method": "Zahlungsart",
     "payment-state": "Status",
     "payment-state": "Status",
-    "payment-to-refund": "Zu erstattende Zahlung",
     "payments": "Zahlungen",
     "payments": "Zahlungen",
     "placed-at": "Aufgegeben um",
     "placed-at": "Aufgegeben um",
     "preview-changes": "Änderungsvorschau",
     "preview-changes": "Änderungsvorschau",

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/en.json

@@ -601,6 +601,7 @@
     "modification-summary": "Summary of modifications",
     "modification-summary": "Summary of modifications",
     "modification-updating-billing-address": "Updating billing address",
     "modification-updating-billing-address": "Updating billing address",
     "modification-updating-shipping-address": "Updating shipping address",
     "modification-updating-shipping-address": "Updating shipping address",
+    "modified-items": "Modified items",
     "modify-order": "Modify order",
     "modify-order": "Modify order",
     "modify-order-price-difference": "Price difference",
     "modify-order-price-difference": "Price difference",
     "net-price": "Net price",
     "net-price": "Net price",
@@ -625,7 +626,6 @@
     "payment-metadata": "Payment metadata",
     "payment-metadata": "Payment metadata",
     "payment-method": "Payment method",
     "payment-method": "Payment method",
     "payment-state": "State",
     "payment-state": "State",
-    "payment-to-refund": "Payment to refund",
     "payments": "Payments",
     "payments": "Payments",
     "placed-at": "Placed at",
     "placed-at": "Placed at",
     "preview-changes": "Preview changes",
     "preview-changes": "Preview changes",

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/es.json

@@ -601,6 +601,7 @@
     "modification-summary": "Resumen de modificaciones",
     "modification-summary": "Resumen de modificaciones",
     "modification-updating-billing-address": "Actualizando dirección de facturación",
     "modification-updating-billing-address": "Actualizando dirección de facturación",
     "modification-updating-shipping-address": "Actualizando dirección de envío",
     "modification-updating-shipping-address": "Actualizando dirección de envío",
+    "modified-items": "Artículos modificados",
     "modify-order": "Modificar pedido",
     "modify-order": "Modificar pedido",
     "modify-order-price-difference": "Diferencia de precio",
     "modify-order-price-difference": "Diferencia de precio",
     "net-price": "Precio neto",
     "net-price": "Precio neto",
@@ -625,7 +626,6 @@
     "payment-metadata": "Metadatos de pago",
     "payment-metadata": "Metadatos de pago",
     "payment-method": "Método de pago",
     "payment-method": "Método de pago",
     "payment-state": "Estado",
     "payment-state": "Estado",
-    "payment-to-refund": "Pago por reembolso",
     "payments": "Pagos",
     "payments": "Pagos",
     "placed-at": "Realizado en",
     "placed-at": "Realizado en",
     "preview-changes": "Previsualizar cambios",
     "preview-changes": "Previsualizar cambios",

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/fa.json

@@ -601,6 +601,7 @@
     "modification-summary": "خلاصه تغییرات",
     "modification-summary": "خلاصه تغییرات",
     "modification-updating-billing-address": "بروزرسانی آدرس صورتحساب",
     "modification-updating-billing-address": "بروزرسانی آدرس صورتحساب",
     "modification-updating-shipping-address": "بروزرسانی آدرس حمل و نقل",
     "modification-updating-shipping-address": "بروزرسانی آدرس حمل و نقل",
+    "modified-items": "موارد تغییر یافته",
     "modify-order": "تغییر سفارش",
     "modify-order": "تغییر سفارش",
     "modify-order-price-difference": "تفاوت قیمتی",
     "modify-order-price-difference": "تفاوت قیمتی",
     "net-price": "قیمت کل",
     "net-price": "قیمت کل",
@@ -625,7 +626,6 @@
     "payment-metadata": "اطلاعات تکمیلی پرداخت",
     "payment-metadata": "اطلاعات تکمیلی پرداخت",
     "payment-method": "روش پرداخت",
     "payment-method": "روش پرداخت",
     "payment-state": "وضعیت پرداخت",
     "payment-state": "وضعیت پرداخت",
-    "payment-to-refund": "تبدیل پرداخت به بازگشت وجه / استرداد",
     "payments": "پرداخت ها",
     "payments": "پرداخت ها",
     "placed-at": "انجام شده در",
     "placed-at": "انجام شده در",
     "preview-changes": "پیش نمایش تغییرات",
     "preview-changes": "پیش نمایش تغییرات",

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/fr.json

@@ -601,6 +601,7 @@
     "modification-summary": "Résumé des modifications",
     "modification-summary": "Résumé des modifications",
     "modification-updating-billing-address": "Mise à jour de l'adresse de facturation",
     "modification-updating-billing-address": "Mise à jour de l'adresse de facturation",
     "modification-updating-shipping-address": "Mise à jour de l'adresse de livraison",
     "modification-updating-shipping-address": "Mise à jour de l'adresse de livraison",
+    "modified-items": "Articles modifiés",
     "modify-order": "Modifier la commande",
     "modify-order": "Modifier la commande",
     "modify-order-price-difference": "Différence de prix",
     "modify-order-price-difference": "Différence de prix",
     "net-price": "Prix net",
     "net-price": "Prix net",
@@ -625,7 +626,6 @@
     "payment-metadata": "Métadonnées de paiement",
     "payment-metadata": "Métadonnées de paiement",
     "payment-method": "Mode de paiement",
     "payment-method": "Mode de paiement",
     "payment-state": "Etat",
     "payment-state": "Etat",
-    "payment-to-refund": "Montant à rembourser",
     "payments": "Paiements",
     "payments": "Paiements",
     "placed-at": "Placé à",
     "placed-at": "Placé à",
     "preview-changes": "Aperçu des modifications",
     "preview-changes": "Aperçu des modifications",

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/he.json

@@ -601,6 +601,7 @@
     "modification-summary": "סיכום השינויים",
     "modification-summary": "סיכום השינויים",
     "modification-updating-billing-address": "מעדכן כתובת לחיוב",
     "modification-updating-billing-address": "מעדכן כתובת לחיוב",
     "modification-updating-shipping-address": "מעדכן כתובת למשלוח",
     "modification-updating-shipping-address": "מעדכן כתובת למשלוח",
+    "modified-items": "פריטים ששונו",
     "modify-order": "שנה הזמנה",
     "modify-order": "שנה הזמנה",
     "modify-order-price-difference": "הפרש מחיר",
     "modify-order-price-difference": "הפרש מחיר",
     "net-price": "מחיר נטו",
     "net-price": "מחיר נטו",
@@ -625,7 +626,6 @@
     "payment-metadata": "מטה נתונים של התשלום",
     "payment-metadata": "מטה נתונים של התשלום",
     "payment-method": "שיטת תשלום",
     "payment-method": "שיטת תשלום",
     "payment-state": "מצב",
     "payment-state": "מצב",
-    "payment-to-refund": "תשלום להחזר",
     "payments": "תשלומים",
     "payments": "תשלומים",
     "placed-at": "נעשתה בתאריך",
     "placed-at": "נעשתה בתאריך",
     "preview-changes": "הצג שינויים",
     "preview-changes": "הצג שינויים",

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/hr.json

@@ -601,6 +601,7 @@
     "modification-summary": "Sažetak izmjena",
     "modification-summary": "Sažetak izmjena",
     "modification-updating-billing-address": "Ažuriranje adrese za naplatu",
     "modification-updating-billing-address": "Ažuriranje adrese za naplatu",
     "modification-updating-shipping-address": "Ažuriranje adrese za dostavu",
     "modification-updating-shipping-address": "Ažuriranje adrese za dostavu",
+    "modified-items": "Izmijenjene stavke",
     "modify-order": "Izmijeni narudžbu",
     "modify-order": "Izmijeni narudžbu",
     "modify-order-price-difference": "Razlika u cijeni",
     "modify-order-price-difference": "Razlika u cijeni",
     "net-price": "Neto cijena",
     "net-price": "Neto cijena",
@@ -625,7 +626,6 @@
     "payment-metadata": "Metapodaci plaćanja",
     "payment-metadata": "Metapodaci plaćanja",
     "payment-method": "Metoda plaćanja",
     "payment-method": "Metoda plaćanja",
     "payment-state": "Stanje plaćanja",
     "payment-state": "Stanje plaćanja",
-    "payment-to-refund": "Plaćanje za povrat",
     "payments": "Plaćanja",
     "payments": "Plaćanja",
     "placed-at": "Naručeno u",
     "placed-at": "Naručeno u",
     "preview-changes": "Pregled promjena",
     "preview-changes": "Pregled promjena",

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/it.json

@@ -601,6 +601,7 @@
     "modification-summary": "Riepilogo delle modifiche",
     "modification-summary": "Riepilogo delle modifiche",
     "modification-updating-billing-address": "Aggiornando l'indirizzo di fatturazione",
     "modification-updating-billing-address": "Aggiornando l'indirizzo di fatturazione",
     "modification-updating-shipping-address": "Aggiornando l'indirizzo di spedizione",
     "modification-updating-shipping-address": "Aggiornando l'indirizzo di spedizione",
+    "modified-items": "Articoli modificati",
     "modify-order": "Modifica ordine",
     "modify-order": "Modifica ordine",
     "modify-order-price-difference": "Differenza di prezzo",
     "modify-order-price-difference": "Differenza di prezzo",
     "net-price": "Prezzo netto",
     "net-price": "Prezzo netto",
@@ -625,7 +626,6 @@
     "payment-metadata": "Metadati pagamento",
     "payment-metadata": "Metadati pagamento",
     "payment-method": "Metodo di pagamento",
     "payment-method": "Metodo di pagamento",
     "payment-state": "Stato",
     "payment-state": "Stato",
-    "payment-to-refund": "Pagamento da rimborsare",
     "payments": "Pagamenti",
     "payments": "Pagamenti",
     "placed-at": "Effettuato a",
     "placed-at": "Effettuato a",
     "preview-changes": "Anteprima modifiche",
     "preview-changes": "Anteprima modifiche",

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/nb.json

@@ -601,6 +601,7 @@
     "modification-summary": "Sammendrag av endringer",
     "modification-summary": "Sammendrag av endringer",
     "modification-updating-billing-address": "Oppdaterer faktureringsadresse",
     "modification-updating-billing-address": "Oppdaterer faktureringsadresse",
     "modification-updating-shipping-address": "Oppdaterer leveringsadresse",
     "modification-updating-shipping-address": "Oppdaterer leveringsadresse",
+    "modified-items": "Endrede varer",
     "modify-order": "Endre ordre",
     "modify-order": "Endre ordre",
     "modify-order-price-difference": "Prisforskjell",
     "modify-order-price-difference": "Prisforskjell",
     "net-price": "Nettopris",
     "net-price": "Nettopris",
@@ -625,7 +626,6 @@
     "payment-metadata": "Betaling metadata",
     "payment-metadata": "Betaling metadata",
     "payment-method": "Betalingsmetode",
     "payment-method": "Betalingsmetode",
     "payment-state": "Status",
     "payment-state": "Status",
-    "payment-to-refund": "Betaling å refundere",
     "payments": "Betalinger",
     "payments": "Betalinger",
     "placed-at": "Plassert den",
     "placed-at": "Plassert den",
     "preview-changes": "Forhåndsvis endringer",
     "preview-changes": "Forhåndsvis endringer",

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/ne.json

@@ -601,6 +601,7 @@
     "modification-summary": "संशोधनको संक्षेप",
     "modification-summary": "संशोधनको संक्षेप",
     "modification-updating-billing-address": "बिलिङ ठेगाना अपडेट गरिएको छ",
     "modification-updating-billing-address": "बिलिङ ठेगाना अपडेट गरिएको छ",
     "modification-updating-shipping-address": "पारिश्रमिक ठेगाना अपडेट गरिएको छ",
     "modification-updating-shipping-address": "पारिश्रमिक ठेगाना अपडेट गरिएको छ",
+    "modified-items": "परिवर्तित वस्तुहरू",
     "modify-order": "ओर्दर संशोधन गर्नुहोस्",
     "modify-order": "ओर्दर संशोधन गर्नुहोस्",
     "modify-order-price-difference": "मूल्य अन्तर",
     "modify-order-price-difference": "मूल्य अन्तर",
     "net-price": "नेट मूल्य",
     "net-price": "नेट मूल्य",
@@ -625,7 +626,6 @@
     "payment-metadata": "भुक्तानी मेटाडाटा",
     "payment-metadata": "भुक्तानी मेटाडाटा",
     "payment-method": "भुक्तानी तरिका",
     "payment-method": "भुक्तानी तरिका",
     "payment-state": "स्थिति",
     "payment-state": "स्थिति",
-    "payment-to-refund": "वापसी गर्नका लागि भुक्तानी",
     "payments": "भुक्तानीहरू",
     "payments": "भुक्तानीहरू",
     "placed-at": "मा राखिएको",
     "placed-at": "मा राखिएको",
     "preview-changes": "पूर्वावलोकन परिवर्तनहरू",
     "preview-changes": "पूर्वावलोकन परिवर्तनहरू",

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/pl.json

@@ -601,6 +601,7 @@
     "modification-summary": "",
     "modification-summary": "",
     "modification-updating-billing-address": "",
     "modification-updating-billing-address": "",
     "modification-updating-shipping-address": "",
     "modification-updating-shipping-address": "",
+    "modified-items": "Zmodyfikowane przedmioty",
     "modify-order": "",
     "modify-order": "",
     "modify-order-price-difference": "",
     "modify-order-price-difference": "",
     "net-price": "Cena netto",
     "net-price": "Cena netto",
@@ -625,7 +626,6 @@
     "payment-metadata": "Metadane płatności",
     "payment-metadata": "Metadane płatności",
     "payment-method": "Metoda płatności",
     "payment-method": "Metoda płatności",
     "payment-state": "Status",
     "payment-state": "Status",
-    "payment-to-refund": "Płatność do zwrotu",
     "payments": "",
     "payments": "",
     "placed-at": "",
     "placed-at": "",
     "preview-changes": "",
     "preview-changes": "",

+ 2 - 2
packages/admin-ui/src/lib/static/i18n-messages/pt_BR.json

@@ -601,6 +601,7 @@
     "modification-summary": "Resumo de modificações",
     "modification-summary": "Resumo de modificações",
     "modification-updating-billing-address": "Atualizando endereço de fatura",
     "modification-updating-billing-address": "Atualizando endereço de fatura",
     "modification-updating-shipping-address": "Atualizando endereço de envio",
     "modification-updating-shipping-address": "Atualizando endereço de envio",
+    "modified-items": "Itens modificados",
     "modify-order": "Modificar pedido",
     "modify-order": "Modificar pedido",
     "modify-order-price-difference": "Preço diference",
     "modify-order-price-difference": "Preço diference",
     "net-price": "Preço líquido",
     "net-price": "Preço líquido",
@@ -625,7 +626,6 @@
     "payment-metadata": "Dados do pagamento",
     "payment-metadata": "Dados do pagamento",
     "payment-method": "Método de pagamento",
     "payment-method": "Método de pagamento",
     "payment-state": "Estado",
     "payment-state": "Estado",
-    "payment-to-refund": "Pagamento para reembolso",
     "payments": "Pagamentos",
     "payments": "Pagamentos",
     "placed-at": "Posicionado em",
     "placed-at": "Posicionado em",
     "preview-changes": "Revisar mudanças",
     "preview-changes": "Revisar mudanças",
@@ -800,4 +800,4 @@
     "job-state-pending": "Pendente",
     "job-state-pending": "Pendente",
     "job-state-running": "Em execução"
     "job-state-running": "Em execução"
   }
   }
-}
+}

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/pt_PT.json

@@ -601,6 +601,7 @@
     "modification-summary": "Resumo de modificações",
     "modification-summary": "Resumo de modificações",
     "modification-updating-billing-address": "A actualizar morada de faturação",
     "modification-updating-billing-address": "A actualizar morada de faturação",
     "modification-updating-shipping-address": "A actualizar morada de entrega",
     "modification-updating-shipping-address": "A actualizar morada de entrega",
+    "modified-items": "Itens modificados",
     "modify-order": "Modificar pedido",
     "modify-order": "Modificar pedido",
     "modify-order-price-difference": "Diferença de preço",
     "modify-order-price-difference": "Diferença de preço",
     "net-price": "Preço líquido",
     "net-price": "Preço líquido",
@@ -625,7 +626,6 @@
     "payment-metadata": "Dados do pagamento",
     "payment-metadata": "Dados do pagamento",
     "payment-method": "Método de pagamento",
     "payment-method": "Método de pagamento",
     "payment-state": "Estado",
     "payment-state": "Estado",
-    "payment-to-refund": "Pagamento para reembolso",
     "payments": "",
     "payments": "",
     "placed-at": "Adicionada em",
     "placed-at": "Adicionada em",
     "preview-changes": "Revisar mudanças",
     "preview-changes": "Revisar mudanças",

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/ru.json

@@ -601,6 +601,7 @@
     "modification-summary": "Сводка модификаций",
     "modification-summary": "Сводка модификаций",
     "modification-updating-billing-address": "Обновление платежного адреса",
     "modification-updating-billing-address": "Обновление платежного адреса",
     "modification-updating-shipping-address": "Обновление адреса доставки",
     "modification-updating-shipping-address": "Обновление адреса доставки",
+    "modified-items": "Измененные товары",
     "modify-order": "Изменить порядок",
     "modify-order": "Изменить порядок",
     "modify-order-price-difference": "Разница в цене",
     "modify-order-price-difference": "Разница в цене",
     "net-price": "Цена нетто",
     "net-price": "Цена нетто",
@@ -625,7 +626,6 @@
     "payment-metadata": "Метаданные платежа",
     "payment-metadata": "Метаданные платежа",
     "payment-method": "Способ оплаты",
     "payment-method": "Способ оплаты",
     "payment-state": "Состояние",
     "payment-state": "Состояние",
-    "payment-to-refund": "Платеж к возврату",
     "payments": "Платежи",
     "payments": "Платежи",
     "placed-at": "Размещено в",
     "placed-at": "Размещено в",
     "preview-changes": "Предпросмотр изменений",
     "preview-changes": "Предпросмотр изменений",

+ 2 - 2
packages/admin-ui/src/lib/static/i18n-messages/uk.json

@@ -601,6 +601,7 @@
     "modification-summary": "Зведення модифікацій",
     "modification-summary": "Зведення модифікацій",
     "modification-updating-billing-address": "Оновлення платіжної адреси",
     "modification-updating-billing-address": "Оновлення платіжної адреси",
     "modification-updating-shipping-address": "Оновлення адреси доставки",
     "modification-updating-shipping-address": "Оновлення адреси доставки",
+    "modified-items": "Змінені товари",
     "modify-order": "Змінити порядок",
     "modify-order": "Змінити порядок",
     "modify-order-price-difference": "Різниця в ціні",
     "modify-order-price-difference": "Різниця в ціні",
     "net-price": "Ціна нетто",
     "net-price": "Ціна нетто",
@@ -625,7 +626,6 @@
     "payment-metadata": "Метадані платежу",
     "payment-metadata": "Метадані платежу",
     "payment-method": "Спосіб оплати",
     "payment-method": "Спосіб оплати",
     "payment-state": "Стан",
     "payment-state": "Стан",
-    "payment-to-refund": "Платіж до повернення",
     "payments": "Платежі",
     "payments": "Платежі",
     "placed-at": "Розміщено в",
     "placed-at": "Розміщено в",
     "preview-changes": "Попередній перегляд змін",
     "preview-changes": "Попередній перегляд змін",
@@ -800,4 +800,4 @@
     "job-state-pending": "В очікуванні",
     "job-state-pending": "В очікуванні",
     "job-state-running": "Виконується"
     "job-state-running": "Виконується"
   }
   }
-}
+}

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/zh_Hans.json

@@ -601,6 +601,7 @@
     "modification-summary": "",
     "modification-summary": "",
     "modification-updating-billing-address": "",
     "modification-updating-billing-address": "",
     "modification-updating-shipping-address": "",
     "modification-updating-shipping-address": "",
+    "modified-items": "修改过的商品",
     "modify-order": "",
     "modify-order": "",
     "modify-order-price-difference": "",
     "modify-order-price-difference": "",
     "net-price": "净价",
     "net-price": "净价",
@@ -625,7 +626,6 @@
     "payment-metadata": "付款元数据",
     "payment-metadata": "付款元数据",
     "payment-method": "付款方式",
     "payment-method": "付款方式",
     "payment-state": "付款状态",
     "payment-state": "付款状态",
-    "payment-to-refund": "退款订单付款信息",
     "payments": "",
     "payments": "",
     "placed-at": "",
     "placed-at": "",
     "preview-changes": "",
     "preview-changes": "",

+ 1 - 1
packages/admin-ui/src/lib/static/i18n-messages/zh_Hant.json

@@ -601,6 +601,7 @@
     "modification-summary": "",
     "modification-summary": "",
     "modification-updating-billing-address": "",
     "modification-updating-billing-address": "",
     "modification-updating-shipping-address": "",
     "modification-updating-shipping-address": "",
+    "modified-items": "修改過的商品",
     "modify-order": "",
     "modify-order": "",
     "modify-order-price-difference": "",
     "modify-order-price-difference": "",
     "net-price": "淨價",
     "net-price": "淨價",
@@ -625,7 +626,6 @@
     "payment-metadata": "付款元數據",
     "payment-metadata": "付款元數據",
     "payment-method": "付款方式",
     "payment-method": "付款方式",
     "payment-state": "付款狀態",
     "payment-state": "付款狀態",
-    "payment-to-refund": "退款訂單付款信息",
     "payments": "",
     "payments": "",
     "placed-at": "",
     "placed-at": "",
     "preview-changes": "",
     "preview-changes": "",