@colijnit/transaction 12.1.190 → 12.1.191

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/bundles/colijnit-transaction.umd.js +46 -21
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.metadata.json +1 -1
  4. package/esm2015/lib/component/transaction-cash-register-order/transaction-cash-register-order-expense-dialog/transaction-cash-register-order-expense-dialog.component.js +2 -2
  5. package/esm2015/lib/component/transaction-create-date-label/transaction-create-date-label.component.js +2 -2
  6. package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-order.component.js +2 -2
  7. package/esm2015/lib/component/transaction-internal/transaction-internal.component.js +125 -110
  8. package/esm2015/lib/component/transaction-internal/transaction-internal.module.js +5 -4
  9. package/esm2015/lib/component/transaction-line/transaction-base-line/transaction-base-line.component.js +2 -2
  10. package/esm2015/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.component.js +18 -16
  11. package/esm2015/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.module.js +16 -13
  12. package/esm2015/lib/component/transaction-line-image-and-description/transaction-line-image-and-description.component.js +4 -2
  13. package/esm2015/lib/component/transaction-line-side-panel-article-details/transaction-line-side-panel-article-details.component.js +2 -4
  14. package/esm2015/lib/component/transaction-lines-side-panel/transaction-lines-side-panel-cash-desk/transaction-lines-side-panel-cash-desk.component.js +12 -13
  15. package/esm2015/lib/component/transaction-number-label/transaction-number-label.component.js +5 -5
  16. package/esm2015/lib/enum/transaction-cfg-name.enum.js +4 -1
  17. package/esm2015/lib/service/transaction-connector-adapter.service.js +4 -4
  18. package/esm2015/lib/transaction-version.js +3 -3
  19. package/fesm2015/colijnit-transaction.js +165 -144
  20. package/fesm2015/colijnit-transaction.js.map +1 -1
  21. package/lib/component/transaction-internal/transaction-internal.component.d.ts +1 -0
  22. package/lib/component/transaction-line/transaction-cash-register-order-line/style/_layout.scss +9 -0
  23. package/lib/component/transaction-line/transaction-cash-register-order-line/transaction-cash-register-order-line.component.d.ts +1 -1
  24. package/lib/component/transaction-line-image-and-description/style/_layout.scss +7 -0
  25. package/lib/component/transaction-line-side-panel-article-details/transaction-line-side-panel-article-details.component.d.ts +2 -3
  26. package/lib/component/transaction-lines-side-panel/transaction-lines-side-panel-cash-desk/transaction-lines-side-panel-cash-desk.component.d.ts +3 -1
  27. package/lib/component/transaction-number-label/transaction-number-label.component.d.ts +3 -3
  28. package/lib/enum/transaction-cfg-name.enum.d.ts +3 -0
  29. package/lib/service/transaction-connector-adapter.service.d.ts +4 -4
  30. package/package.json +2 -2
@@ -3,8 +3,8 @@ export class Version {
3
3
  constructor() {
4
4
  this.name = "@colijnit/transaction";
5
5
  this.description = "Colijn IT transaction package";
6
- this.symVer = "12.1.190";
7
- this.publishDate = "17-2-2024 11:14:23";
6
+ this.symVer = "12.1.191";
7
+ this.publishDate = "20-2-2024 18:15:42";
8
8
  }
9
9
  }
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMTIuMS4xOTBcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIxNy0yLTIwMjQgMTE6MTQ6MjNcIjtcbn0iXX0=
10
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMTIuMS4xOTFcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIyMC0yLTIwMjQgMTg6MTU6NDJcIjtcbn0iXX0=
@@ -220,8 +220,8 @@ class Version {
220
220
  constructor() {
221
221
  this.name = "@colijnit/transaction";
222
222
  this.description = "Colijn IT transaction package";
223
- this.symVer = "12.1.190";
224
- this.publishDate = "17-2-2024 11:14:23";
223
+ this.symVer = "12.1.191";
224
+ this.publishDate = "20-2-2024 18:15:42";
225
225
  }
226
226
  }
227
227
 
@@ -6399,6 +6399,8 @@ var TransactionCfgName;
6399
6399
  TransactionCfgName["AddTransactionBtn"] = "addTransactionBtn";
6400
6400
  TransactionCfgName["DeleteTransactionBtn"] = "deleteTransactionBtn";
6401
6401
  TransactionCfgName["CopyTransactionBtn"] = "copyTransactionBtn";
6402
+ TransactionCfgName["HeaderHandledBy"] = "headerHandledBy";
6403
+ TransactionCfgName["HeaderBranch"] = "headerBranch";
6402
6404
  /*Transaction header*/
6403
6405
  TransactionCfgName["OrderInfoHeader"] = "orderInfoHeader";
6404
6406
  TransactionCfgName["DeliveryInfoHeader"] = "deliveryInfoHeader";
@@ -6442,6 +6444,7 @@ var TransactionCfgName;
6442
6444
  TransactionCfgName["SalesPerson"] = "salesPerson";
6443
6445
  TransactionCfgName["Buyer"] = "buyer";
6444
6446
  TransactionCfgName["MarketingCode"] = "marketingCode";
6447
+ TransactionCfgName["ProjectCode"] = "projectCode";
6445
6448
  TransactionCfgName["HeaderPaymentAvatarHeader"] = "headerPaymentAvatarHeader";
6446
6449
  TransactionCfgName["HeaderPaymentPercentageHeader"] = "headerPaymentPercentageHeader";
6447
6450
  TransactionCfgName["HeaderPaymentAmountHeader"] = "headerPaymentAmountHeader";
@@ -13401,9 +13404,11 @@ TransactionLineImageAndDescriptionComponent.decorators = [
13401
13404
  selector: "co-transaction-line-image-and-description",
13402
13405
  template: `
13403
13406
  <span class="transaction-field-label" [textContent]="'ARTICLE_INFORMATION' | localize" *ngIf="isFirst"></span>
13404
- <div class="transaction-line-image" [class.preview]="preview" [screenConfigurationObject]="imageAndDescriptionConfigNames?.image" screenConfigNativeElement>
13407
+ <div *ngIf="!transactionLine.isPayment" class="transaction-line-image" [class.preview]="preview" [screenConfigurationObject]="imageAndDescriptionConfigNames?.image" screenConfigNativeElement>
13405
13408
  <co-image-display [model]="image"></co-image-display>
13406
13409
  </div>
13410
+ <co-icon *ngIf="transactionLine.isPayment" class="payment-line-icon" [iconData]="iconCacheService.getIcon(icons.UpFromLineRegular)">
13411
+ </co-icon>
13407
13412
  <div class="colorBlock" *ngIf="transactionLine.color" [style.background-color]="transactionLine.color"></div>
13408
13413
  <div class="transaction-line-description" data-action="openSidePanel">
13409
13414
  <div class="description-wrapper">
@@ -18788,25 +18793,27 @@ TransactionCashRegisterOrderLineComponent.decorators = [
18788
18793
  [checkbox]="false"
18789
18794
  [actionButtons]="false"
18790
18795
  observeVisibility #observer=visibilityObserve (visibilityChange)="handleVisibilityChange(transactionLine, $event)">
18791
- <div class="line-content-wrapper">
18792
- <co-transaction-line-warehouse-button [transactionLine]="transactionLine" [transactionInfo]="transactionInfo"></co-transaction-line-warehouse-button>
18793
- <co-transaction-line-vat-button [transactionLine]="transactionLine" [transactionInfo]="transactionInfo"></co-transaction-line-vat-button>
18794
- <co-editable-label class="transaction-line-totals-total price"
18795
- [model]="(transactionLine.price + transactionLine.discountAmount) | coCurrency"
18796
- [crossedOut]="!!transactionLine.discountAmount"
18797
- [editModel]="transactionLine.displayNetLineTotal"
18798
- [readonly]="true"
18799
- ></co-editable-label>
18800
- <co-transaction-line-discount-button [transactionLine]="transactionLine" [transactionInfo]="transactionInfo"></co-transaction-line-discount-button>
18801
- <co-editable-label class="transaction-line-totals-total price"
18796
+ <div class="line-content-wrapper" [class.payment-line]="transactionLine && transactionLine.isPayment">
18797
+ <co-transaction-line-warehouse-button *ngIf="!transactionLine.isPayment" [transactionLine]="transactionLine" [transactionInfo]="transactionInfo"></co-transaction-line-warehouse-button>
18798
+ <co-transaction-line-vat-button *ngIf="!transactionLine.isPayment" [transactionLine]="transactionLine" [transactionInfo]="transactionInfo"></co-transaction-line-vat-button>
18799
+ <co-transaction-line-price *ngIf="!transactionLine.isPayment" class="transaction-line-totals-price price"
18800
+ [screenConfigurationObject]="cfgNames.LinePrice"
18801
+ [transactionInfo]="transactionInfo"
18802
+ [transactionLine]="transactionLine"
18803
+ [showLabel]="false"
18804
+ [defaultEditMode]="false"
18805
+ ></co-transaction-line-price>
18806
+ <co-transaction-line-discount-button *ngIf="!transactionLine.isPayment" [transactionLine]="transactionLine" [transactionInfo]="transactionInfo"></co-transaction-line-discount-button>
18807
+ <co-editable-label *ngIf="!transactionLine.isPayment"
18808
+ class="transaction-line-totals-total price"
18802
18809
  [model]="transactionLine.price | coCurrency"
18803
18810
  [readonly]="true"
18804
18811
  ></co-editable-label>
18805
- <div class="transaction-line-totals-amount">
18812
+ <div class="transaction-line-totals-amount" *ngIf="!transactionLine.isPayment">
18806
18813
  <co-transaction-line-amount class="amount-number-picker" [transactionLine]="transactionLine"
18807
18814
  [transactionInfo]="transactionInfo"></co-transaction-line-amount>
18808
18815
  </div>
18809
- <co-editable-label class="transaction-line-totals-total price"
18816
+ <co-editable-label class="transaction-line-totals-total price" [class.payment-label]="transactionLine && transactionLine.isPayment"
18810
18817
  [model]="transactionLine.displayNetLineTotal | coCurrency"
18811
18818
  [editModel]="transactionLine.displayNetLineTotal"
18812
18819
  [readonly]="true"
@@ -20001,11 +20008,12 @@ class TransactionLinesSidePanelCashDeskComponent extends TransactionBaseComponen
20001
20008
  handlePayed() {
20002
20009
  this.transactionEventService.posOrderPayed.next();
20003
20010
  }
20004
- //TODO TO BE REINSTATED ONCE BACKEND SUPPORT IS FIXED-->
20005
- /*public async createExpenseForOrder(request: TransactionAddPaymentLineRequest): Promise<void> {
20006
- this.showExpenseDialog = false;
20007
- await this.transactionService.addPaymentLineToTransaction(request);
20008
- }*/
20011
+ createExpenseForOrder(request) {
20012
+ return __awaiter(this, void 0, void 0, function* () {
20013
+ this.showExpenseDialog = false;
20014
+ yield this.transactionService.addPaymentLineToTransaction(request);
20015
+ });
20016
+ }
20009
20017
  paymentMethodSelected(method, index) {
20010
20018
  this.cashRegisterNr = this.posOrderData ? this.posOrderData.cashRegisterNr : this.transaction.transactionInfo.cashRegisterNr;
20011
20019
  this.cashRegisterGroupId = this.posOrderData ? this.posOrderData.cashRegisterGroupId : this.transaction.transactionInfo.cashRegisterGroupId;
@@ -20025,13 +20033,11 @@ TransactionLinesSidePanelCashDeskComponent.decorators = [
20025
20033
  { type: Component, args: [{
20026
20034
  selector: 'co-transaction-lines-side-panel-cash-desk',
20027
20035
  template: `
20028
- <!--TODO TO BE REINSTATED ONCE BACKEND SUPPORT IS FIXED-->
20029
- <!--
20030
20036
  <div class="cash-register-button-wrapper">
20031
20037
  <co-button class="expense-button" [iconData]="iconCacheService.getIcon(icons.UpFromLineRegular)"
20032
20038
  [label]="'EXPENSE' | localize" (click)="showExpenseDialog = true">
20033
20039
  </co-button>
20034
- </div>-->
20040
+ </div>
20035
20041
  <div class="cash-register-payment-methods-wrapper">
20036
20042
  <co-payment-tile *ngFor="let paymentMethod of paymentMethods; let index = index"
20037
20043
  [image]="paymentMethod.image"
@@ -20059,13 +20065,12 @@ TransactionLinesSidePanelCashDeskComponent.decorators = [
20059
20065
  (closeDialog)="showCashRegisterPaymentDialog = false"
20060
20066
  >
20061
20067
  </co-transaction-cash-register-payment-dialog>
20062
- <!--TODO TO BE REINSTATED ONCE BACKEND SUPPORT IS FIXED-->
20063
- <!-- <co-transaction-cash-register-order-expense-dialog *ngIf="showExpenseDialog"
20068
+ <co-transaction-cash-register-order-expense-dialog *ngIf="showExpenseDialog"
20064
20069
  [transaction]="this.transaction"
20065
20070
  (cancelClicked)="showExpenseDialog = false"
20066
20071
  (okayClicked)="createExpenseForOrder($event)"
20067
20072
  >
20068
- </co-transaction-cash-register-order-expense-dialog>-->
20073
+ </co-transaction-cash-register-order-expense-dialog>
20069
20074
  `,
20070
20075
  encapsulation: ViewEncapsulation.None
20071
20076
  },] }
@@ -21119,7 +21124,7 @@ TransactionBaseLineComponent.decorators = [
21119
21124
  (modelChange)="checkboxValueChanged.emit($event)"
21120
21125
  ></co-input-checkbox>
21121
21126
  <co-transaction-line-image-and-description
21122
- *ngIf="transactionLine.isArticle" class="transaction-line-image-and-description-wrapper"
21127
+ *ngIf="transactionLine.isArticle || transactionLine.isPayment" class="transaction-line-image-and-description-wrapper"
21123
21128
  [preview]="preview"
21124
21129
  [isFirst]="isFirst"
21125
21130
  [showPurchaseDesc]="showPurchaseDescAndPrice"
@@ -25423,7 +25428,9 @@ TransactionCashRegisterOrderLineModule.decorators = [
25423
25428
  TransactionLineVatButtonModule,
25424
25429
  CoCurrencyPipeModule,
25425
25430
  TransactionLineDiscountButtonModule,
25426
- TransactionLineAmountModule
25431
+ TransactionLineAmountModule,
25432
+ TransactionLinePriceModule,
25433
+ ScreenConfigurationModule
25427
25434
  ],
25428
25435
  declarations: [
25429
25436
  TransactionCashRegisterOrderLineComponent
@@ -29060,7 +29067,7 @@ TransactionHeaderPopupOrderComponent.decorators = [
29060
29067
  <co-transaction-header-sales-person *ngIf="transactionKind === transKind.PurchaseOrder"
29061
29068
  [screenConfigurationObject]="cfgNames.Buyer" [label]="'PURCHASE_PERSON'" [transactionInfo]="transactionInfo" [lockAndSave]="false"></co-transaction-header-sales-person>
29062
29069
  <co-transaction-header-currency [screenConfigurationObject]="cfgNames.Currency" [transactionInfo]="transactionInfo" [lockAndSave]="false"></co-transaction-header-currency>
29063
- <co-transaction-header-project-code [screenConfigurationObject]="cfgNames.Currency" [transactionInfo]="transactionInfo" [lockAndSave]="false"></co-transaction-header-project-code>
29070
+ <co-transaction-header-project-code [screenConfigurationObject]="cfgNames.ProjectCode" [transactionInfo]="transactionInfo" [lockAndSave]="false"></co-transaction-header-project-code>
29064
29071
  </div>
29065
29072
  </div>
29066
29073
  <div class="transaction-header-popup-section" *ngIf="transactionInfo.transactionKind === transKind.SalesQuotation">
@@ -31882,6 +31889,13 @@ class TransactionInternalComponent {
31882
31889
  // Adjust the width condition as needed
31883
31890
  return this.screenWidth < 1280; // Show the div if screen width is smaller than 1280px
31884
31891
  }
31892
+ fullyInvoiced() {
31893
+ return (this.transaction &&
31894
+ this.transaction.transactionInfo &&
31895
+ this.transaction.transactionInfo.headerInfoStatus &&
31896
+ this.transaction.transactionInfo.headerInfoStatus.hasOwnProperty('isFullyInvoiced') &&
31897
+ this.transaction.transactionInfo.headerInfoStatus.isFullyInvoiced);
31898
+ }
31885
31899
  _getOrderLineSetIfExists(line) {
31886
31900
  if (!line.orderLineSetCode) {
31887
31901
  return null;
@@ -31931,122 +31945,130 @@ TransactionInternalComponent.decorators = [
31931
31945
  { type: Component, args: [{
31932
31946
  selector: 'co-transaction-internal',
31933
31947
  template: `
31934
- <ng-container *ngIf="loaded">
31935
- <co-transaction-header *ngIf="showHeader" [transaction]="transaction" [relation]="relation"
31936
- (relationChange)="handleRelationChange($event)"></co-transaction-header>
31948
+ <ng-container *ngIf="loaded">
31949
+ <co-transaction-header *ngIf="showHeader" [transaction]="transaction" [relation]="relation"
31950
+ (relationChange)="handleRelationChange($event)"></co-transaction-header>
31937
31951
 
31938
- <div class="transaction-lines-header">
31939
- <co-transaction-quick-access *ngIf="showQuickAccess" class="transaction-lines-header-item"
31940
- [transaction]="transaction"
31941
- [relation]="relation"
31942
- [activeCategory]="activeCategory"
31943
- ></co-transaction-quick-access>
31944
- <co-transaction-button-bar *ngIf="showButtonBar" class="transaction-lines-header-item"
31945
- [selectedCategory]="activeCategory"
31946
- (buttonClicked)="handleButtonBarButtonClicked($event)"
31947
- ></co-transaction-button-bar>
31948
- <div class="transaction-lines-header-item right">
31949
- <co-avatar class="transaction-sales-avatar" [relationId]="transaction.transactionInfo.handledBy"></co-avatar>
31950
- <co-avatar class="transaction-sales-avatar"
31951
- [relationId]="transaction.transactionInfo.branch?.relationId"></co-avatar>
31952
- <co-view-mode-buttons *ngIf="!shouldShowTiles()" [showViewModes]="[viewModes.List, viewModes.Tiles]"
31953
- (viewModeChange)="activeViewMode = $event"></co-view-mode-buttons>
31954
- </div>
31955
- </div>
31956
- <div class="transaction-lines-content-wrapper">
31957
- <!--<co-transaction-document-button-bar [transaction]="transaction"></co-transaction-document-button-bar>-->
31958
- <div class="transaction-lines-content">
31959
- <div class="transaction-tiles-wrapper" *ngIf="activeViewMode === viewModes.Tiles || shouldShowTiles()">
31960
- <co-transaction-card
31961
- *ngFor="let line of (historicTransactionLines ? historicTransactionLines : transaction.transactionLines)"
31962
- [statusBarConfigNames]="statusBarConfigNames"
31963
- [transaction]="transaction"
31964
- [transactionLine]="line"
31965
- [readonly]="historicTransactionLines !== null"
31966
- [activeCategory]="activeCategory"
31967
- ></co-transaction-card>
31968
- </div>
31969
- <div class="transaction-lines-wrapper" *ngIf="activeViewMode === viewModes.List && !shouldShowTiles()">
31970
- <co-transaction-lines
31971
- [transaction]="transaction"
31972
- [activeCategory]="activeCategory"
31973
- (saveTransactionLine)="saveTransactionLineText($event)"
31974
- ></co-transaction-lines>
31975
- </div>
31976
- <div class="transaction-footer-wrapper">
31952
+ <div class="transaction-lines-header">
31953
+ <co-transaction-quick-access *ngIf="showQuickAccess" class="transaction-lines-header-item"
31954
+ [transaction]="transaction"
31955
+ [relation]="relation"
31956
+ [activeCategory]="activeCategory"
31957
+ ></co-transaction-quick-access>
31958
+ <co-transaction-button-bar *ngIf="showButtonBar" class="transaction-lines-header-item"
31959
+ [selectedCategory]="activeCategory"
31960
+ (buttonClicked)="handleButtonBarButtonClicked($event)"
31961
+ ></co-transaction-button-bar>
31962
+ <div class="transaction-lines-header-item right">
31963
+ <co-avatar class="transaction-sales-avatar" [relationId]="transaction.transactionInfo.handledBy"
31964
+ [screenConfigurationObject]="cfgNames.HeaderHandledBy" screenConfigNativeElement></co-avatar>
31965
+ <co-avatar class="transaction-sales-avatar"
31966
+ [relationId]="transaction.transactionInfo.branch?.relationId"
31967
+ [screenConfigurationObject]="cfgNames.HeaderBranch" screenConfigNativeElement></co-avatar>
31968
+ <co-view-mode-buttons *ngIf="!shouldShowTiles()" [showViewModes]="[viewModes.List, viewModes.Tiles]"
31969
+ (viewModeChange)="activeViewMode = $event"></co-view-mode-buttons>
31970
+ </div>
31971
+ </div>
31972
+ <div class="transaction-lines-content-wrapper">
31973
+ <!--<co-transaction-document-button-bar [transaction]="transaction"></co-transaction-document-button-bar>-->
31974
+ <div class="transaction-lines-content">
31975
+ <div class="transaction-tiles-wrapper" *ngIf="activeViewMode === viewModes.Tiles || shouldShowTiles()">
31976
+ <co-transaction-card
31977
+ *ngFor="let line of (historicTransactionLines ? historicTransactionLines : transaction.transactionLines)"
31978
+ [statusBarConfigNames]="statusBarConfigNames"
31979
+ [transaction]="transaction"
31980
+ [transactionLine]="line"
31981
+ [readonly]="historicTransactionLines !== null"
31982
+ [activeCategory]="activeCategory"
31983
+ ></co-transaction-card>
31984
+ </div>
31985
+ <div class="transaction-lines-wrapper" *ngIf="activeViewMode === viewModes.List && !shouldShowTiles()">
31986
+ <co-transaction-lines
31987
+ [transaction]="transaction"
31988
+ [activeCategory]="activeCategory"
31989
+ (saveTransactionLine)="saveTransactionLineText($event)"
31990
+ ></co-transaction-lines>
31991
+ </div>
31992
+ <div class="transaction-footer-wrapper">
31977
31993
  <div class="transaction-footer-left">
31978
- <co-add-product
31979
- *ngIf="activeCategory === categories.SalesOrderCashRegister || activeCategory === categories.SalesOrderOverview || activeCategory === categories.PurchaseOrderOverview || activeCategory === categories.SalesOrderQuotation">
31980
- </co-add-product>
31981
- <co-transaction-button class="custom-width"
31982
- [iconData]="iconCacheService.getIcon(icons.TextSolid)"
31983
- (click)="handleTransactionText()"
31984
- [label]="'ORDER_TEXT_LINE' | localize">
31985
- </co-transaction-button>
31994
+ <co-add-product
31995
+ *ngIf="activeCategory === categories.SalesOrderCashRegister || activeCategory === categories.SalesOrderOverview || activeCategory === categories.PurchaseOrderOverview || activeCategory === categories.SalesOrderQuotation">
31996
+ </co-add-product>
31997
+ <co-transaction-button class="custom-width"
31998
+ [iconData]="iconCacheService.getIcon(icons.TextSolid)"
31999
+ (click)="handleTransactionText()"
32000
+ [label]="'ORDER_TEXT_LINE' | localize">
32001
+ </co-transaction-button>
31986
32002
  </div>
31987
32003
  <co-transaction-totals
31988
- [transactionInfo]="transaction.transactionInfo"
31989
- [transactionTotal]="transaction.transactionTotal"
31990
- [showDiscount]="true"
31991
- ></co-transaction-totals>
31992
- </div>
31993
- </div>
31994
- <co-transaction-lines-side-panel *ngIf="transaction && transaction.transactionInfo.transactionKind === transactionKind.CashDesk"
31995
- [posOrderData]="posOrderData"
31996
- [transaction]="transaction"
31997
- ></co-transaction-lines-side-panel>
31998
- <co-transaction-line-side-panel *ngIf="showSidePanel"
31999
- [transaction]="transaction"
32000
- [transactionInfo]="transaction.transactionInfo"
32001
- [transactionLine]="sidePanelTransactionLine"
32002
- [activeCategory]="activeCategory"
32003
- (cancelClick)="showSidePanel = false"
32004
- ></co-transaction-line-side-panel>
32004
+ [transactionInfo]="transaction.transactionInfo"
32005
+ [transactionTotal]="transaction.transactionTotal"
32006
+ [showDiscount]="true"
32007
+ ></co-transaction-totals>
32008
+ </div>
32009
+ </div>
32010
+ <co-transaction-lines-side-panel
32011
+ *ngIf="transaction && transaction.transactionInfo.transactionKind === transactionKind.CashDesk && !fullyInvoiced()"
32012
+ [posOrderData]="posOrderData"
32013
+ [transaction]="transaction"
32014
+ ></co-transaction-lines-side-panel>
32015
+ <co-transaction-line-side-panel *ngIf="showSidePanel"
32016
+ [transaction]="transaction"
32017
+ [transactionInfo]="transaction.transactionInfo"
32018
+ [transactionLine]="sidePanelTransactionLine"
32019
+ [activeCategory]="activeCategory"
32020
+ (cancelClick)="showSidePanel = false"
32021
+ ></co-transaction-line-side-panel>
32005
32022
 
32006
- <!--Popup voor wijzigen volgorde van tekstregels-->
32007
- <co-transaction-article-text-overview *ngIf="showArticleTextOverview"
32008
- [transactionInfo]="transaction.transactionInfo"
32009
- [transactionLine]="transactionLine"
32010
- (closeClick)="closeArticleTextOverview()"
32011
- (cancelClick)="closeArticleTextOverview()"
32012
- ></co-transaction-article-text-overview>
32023
+ <!--Popup voor wijzigen volgorde van tekstregels-->
32024
+ <co-transaction-article-text-overview *ngIf="showArticleTextOverview"
32025
+ [transactionInfo]="transaction.transactionInfo"
32026
+ [transactionLine]="transactionLine"
32027
+ (closeClick)="closeArticleTextOverview()"
32028
+ (cancelClick)="closeArticleTextOverview()"
32029
+ ></co-transaction-article-text-overview>
32013
32030
 
32014
- <!--Popup voor aanmaken en updaten transactietekstregels-->
32015
- <co-transaction-article-text *ngIf="showTransactionText"
32016
- [header]="'ORDER_TEXT_LINE' | localize"
32017
- [transactionUuid]="transaction.transactionInfo.uuid"
32018
- [editText]="textToEdit"
32019
- [orderLineSetDTO]="selectedOrderLineSetDTO"
32020
- [transactionLine]="transactionLine"
32021
- (saveClick)="saveTransactionLineText($event)"
32022
- (closeClick)="closeTransactionText()"
32023
- (cancelClick)="closeTransactionText()"
32024
- (saveOrderLineSetClick)="saveOrderLineSet($event)"
32031
+ <!--Popup voor aanmaken en updaten transactietekstregels-->
32032
+ <co-transaction-article-text *ngIf="showTransactionText"
32033
+ [header]="'ORDER_TEXT_LINE' | localize"
32034
+ [transactionUuid]="transaction.transactionInfo.uuid"
32035
+ [editText]="textToEdit"
32036
+ [orderLineSetDTO]="selectedOrderLineSetDTO"
32037
+ [transactionLine]="transactionLine"
32038
+ (saveClick)="saveTransactionLineText($event)"
32039
+ (closeClick)="closeTransactionText()"
32040
+ (cancelClick)="closeTransactionText()"
32041
+ (saveOrderLineSetClick)="saveOrderLineSet($event)"
32025
32042
 
32026
- ></co-transaction-article-text>
32043
+ ></co-transaction-article-text>
32027
32044
 
32028
- <!--Popup voor aanmaken en updaten artikeltekstregels-->
32029
- <co-transaction-article-text *ngIf="showArticleText"
32030
- [header]="'PRODUCT_DESCRIPTION_AND_TEXTS' | localize"
32031
- [transactionUuid]="transaction.transactionInfo.uuid"
32032
- [showArticleImageDescription]="transactionLine.articleBound"
32033
- [showImage]="false"
32034
- [articleLineNr]="transactionLine.lineNr"
32035
- [articleRef]="transactionLine.articleNumber"
32036
- [transactionLine]="transactionLine"
32037
- [editText]="textToEdit"
32038
- (saveClick)="saveArticleLineText($event)"
32039
- (closeClick)="closeArticleText()"
32040
- (cancelClick)="closeArticleText()"
32041
- ></co-transaction-article-text>
32045
+ <!--Popup voor aanmaken en updaten artikeltekstregels-->
32046
+ <co-transaction-article-text *ngIf="showArticleText"
32047
+ [header]="'PRODUCT_DESCRIPTION_AND_TEXTS' | localize"
32048
+ [transactionUuid]="transaction.transactionInfo.uuid"
32049
+ [showArticleImageDescription]="transactionLine.articleBound"
32050
+ [showImage]="false"
32051
+ [articleLineNr]="transactionLine.lineNr"
32052
+ [articleRef]="transactionLine.articleNumber"
32053
+ [transactionLine]="transactionLine"
32054
+ [editText]="textToEdit"
32055
+ (saveClick)="saveArticleLineText($event)"
32056
+ (closeClick)="closeArticleText()"
32057
+ (cancelClick)="closeArticleText()"
32058
+ ></co-transaction-article-text>
32042
32059
 
32043
- <co-transaction-copy-order *ngIf="showCopyOrderDialog"
32044
- [transaction]="transaction"
32045
- (closeDialog)="showCopyOrderDialog = false"
32046
- ></co-transaction-copy-order>
32047
- </div>
32048
- </ng-container>
32049
- `,
32060
+ <co-transaction-copy-order *ngIf="showCopyOrderDialog"
32061
+ [transaction]="transaction"
32062
+ (closeDialog)="showCopyOrderDialog = false"
32063
+ ></co-transaction-copy-order>
32064
+ </div>
32065
+ </ng-container>
32066
+ `,
32067
+ providers: [{
32068
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
32069
+ useExisting: forwardRef(() => TransactionInternalComponent)
32070
+ }
32071
+ ],
32050
32072
  encapsulation: ViewEncapsulation.None
32051
32073
  },] }
32052
32074
  ];
@@ -37497,8 +37519,6 @@ class TransactionLineSidePanelArticleDetailsComponent {
37497
37519
  showClass() {
37498
37520
  return true;
37499
37521
  }
37500
- ngAfterViewInit() {
37501
- }
37502
37522
  handleCancelClick() {
37503
37523
  this.closeSideBarClicked.next();
37504
37524
  }
@@ -37685,7 +37705,7 @@ TransactionLineSidePanelArticleDetailsComponent.decorators = [
37685
37705
  <div class="detail-column">
37686
37706
  <div class="column-input-item">
37687
37707
  <co-input-text
37688
- [placeholder]="'AMOUNT2' | localize"
37708
+ [placeholder]="'AMOUNT' | localize"
37689
37709
  [type]="'number'"
37690
37710
  [(model)]="purchaseAdviceLine.orderAmount"
37691
37711
  [min]="1"
@@ -39084,7 +39104,7 @@ TransactionCashRegisterOrderExpenseDialogComponent.decorators = [
39084
39104
  [(model)]="chosenCashType"
39085
39105
  [collection]="cashTypeCollection"></co-list-of-values>
39086
39106
  <co-input-text [(model)]="paymentAmount" [type]="'number'"
39087
- [placeholder]="'AMOUNT' | localize">
39107
+ [placeholder]="'AMOUNT2' | localize">
39088
39108
  </co-input-text>
39089
39109
  </div>
39090
39110
  <div class="expense-dialog-column divide-fields">
@@ -39213,7 +39233,8 @@ TransactionInternalModule.decorators = [
39213
39233
  TransactionLinesSidePanelModule,
39214
39234
  ButtonModule,
39215
39235
  IconModule,
39216
- TransactionButtonModule
39236
+ TransactionButtonModule,
39237
+ ScreenConfigurationModule
39217
39238
  ],
39218
39239
  declarations: [
39219
39240
  TransactionInternalComponent
@@ -43412,7 +43433,7 @@ class TransactionNumberLabelComponent {
43412
43433
  this._transactionEventService = _transactionEventService;
43413
43434
  this._subs = [];
43414
43435
  this._subs.push(this._transactionEventService.transactionSet.subscribe((transaction) => {
43415
- if (transaction && transaction.transactionInfo.id) {
43436
+ if (transaction && transaction.transactionInfo && transaction.transactionInfo.transactionNr) {
43416
43437
  this.label = transaction.transactionInfo.transactionNr.toString();
43417
43438
  }
43418
43439
  }));
@@ -43463,7 +43484,7 @@ class TransactionCreateDateLabelComponent {
43463
43484
  this._transactionEventService = _transactionEventService;
43464
43485
  this._subs = [];
43465
43486
  this._subs.push(this._transactionEventService.transactionSet.subscribe((transaction) => {
43466
- if (transaction && transaction.transactionInfo.id) {
43487
+ if (transaction && transaction.transactionInfo) {
43467
43488
  this.date = transaction.transactionInfo.transactionDate;
43468
43489
  }
43469
43490
  }));