@colijnit/transaction 256.1.71 → 256.1.73

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 (28) hide show
  1. package/bundles/colijnit-transaction.umd.js +224 -112
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.metadata.json +1 -1
  4. package/esm2015/lib/component/add-product/add-product.component.js +83 -42
  5. package/esm2015/lib/component/quick-send-button/quick-send-button.component.js +3 -3
  6. package/esm2015/lib/component/transaction-internal/transaction-internal.component.js +2 -2
  7. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-invoice/transaction-quick-access-invoice.component.js +12 -4
  8. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/transaction-quick-access-order-delivery.component.js +12 -4
  9. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-purchase/transaction-quick-access-order-purchase.component.js +117 -73
  10. package/esm2015/lib/component/transaction-reservation/service/transaction-sales-reservation.service.js +3 -3
  11. package/esm2015/lib/component/transaction-reservation/transaction-sales-reservation-popup/transaction-sales-reservation-popup.component.js +3 -2
  12. package/esm2015/lib/enum/icon.enum.js +3 -1
  13. package/esm2015/lib/model/icon-svg.js +3 -1
  14. package/esm2015/lib/transaction-version.js +3 -3
  15. package/fesm2015/colijnit-transaction.js +229 -128
  16. package/fesm2015/colijnit-transaction.js.map +1 -1
  17. package/lib/component/add-product/add-product.component.d.ts +4 -2
  18. package/lib/component/quick-send-button/style/_layout.scss +8 -1
  19. package/lib/component/quick-send-button/style/_material-definition.scss +6 -6
  20. package/lib/component/transaction-quick-access/transaction-quick-access-invoice/transaction-quick-access-invoice.component.d.ts +1 -1
  21. package/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/transaction-quick-access-order-delivery.component.d.ts +1 -1
  22. package/lib/component/transaction-quick-access/transaction-quick-access-order-purchase/transaction-quick-access-order-purchase.component.d.ts +24 -2
  23. package/lib/component/transaction-quick-access/transaction-quick-access-send-method-base.component.d.ts +1 -1
  24. package/lib/component/transaction-reservation/service/transaction-sales-reservation.service.d.ts +1 -1
  25. package/lib/component/transaction-reservation/transaction-sales-reservation-popup/transaction-sales-reservation-popup.component.d.ts +1 -0
  26. package/lib/enum/icon.enum.d.ts +2 -0
  27. package/lib/style/transaction-globals.scss +27 -0
  28. package/package.json +4 -4
@@ -202,6 +202,7 @@ import { PdfHistoricDeliveryNoteRequest } from '@colijnit/transactionapi/build/m
202
202
  import { OrderReservationSalesOrderLinesRequest } from '@colijnit/transactionapi/build/model/order-reservation-sales-order-lines-request.bo';
203
203
  import { ProcessOrderReservationRequest } from '@colijnit/transactionapi/build/model/process-order-reservation-request.bo';
204
204
  import { PrintPurchaseOrderForSalesOrderRequest } from '@colijnit/transactionapi/build/model/print-purchase-order-for-sales-order-request';
205
+ import { BatchTransactionSendingRequest } from '@colijnit/transactionapi/build/model/batch-transaction-sending-request';
205
206
  import { PdfPurchaseOrderRequest } from '@colijnit/transactionapi/build/model/pdf-purchase-order-request';
206
207
  import { GetPurchasePortalLine } from '@colijnit/transactionapi/build/model/get-purchase-portal-line';
207
208
  import { PurchasePortalFilters } from '@colijnit/transactionapi/build/model/purchase-portal-filters.bo';
@@ -234,7 +235,6 @@ import { DeleteGoodsToBePickedForOrderRequest } from '@colijnit/transactionapi/b
234
235
  import { DeleteGoodsPickedForOrderRequest } from '@colijnit/transactionapi/build/model/delete-goods-picked-for-order-request';
235
236
  import { RouterModule } from '@angular/router';
236
237
  import { QuantityInHistoricState } from '@colijnit/transactionapi/build/enum/quantity-in-historic-state.enum';
237
- import { BatchTransactionSendingRequest } from '@colijnit/transactionapi/build/model/batch-transaction-sending-request';
238
238
  import { DoPaymentRequest } from '@colijnit/transactionapi/build/model/do-payment-request';
239
239
  import { IonePaymentStatusCode } from '@colijnit/transactionapi/build/enum/ione-payment-status-code.enum';
240
240
  import { CashDrawersRequest } from '@colijnit/transactionapi/build/model/cash-drawers-request';
@@ -283,8 +283,8 @@ class Version {
283
283
  constructor() {
284
284
  this.name = "@colijnit/transaction";
285
285
  this.description = "Colijn IT transaction package";
286
- this.symVer = "256.1.71";
287
- this.publishDate = "27/03/2025, 16:33:39";
286
+ this.symVer = "256.1.73";
287
+ this.publishDate = "28-3-2025 16:49:34";
288
288
  }
289
289
  }
290
290
 
@@ -514,6 +514,7 @@ var Icon;
514
514
  Icon["DetailView"] = "detail_view";
515
515
  Icon["EditPencil"] = "edit_pencil";
516
516
  Icon["EllipsisLight"] = "ellipsis_light";
517
+ Icon["EllipsisVerticalOpen"] = "ellipsis_vertical_open";
517
518
  Icon["EllipsisVerticalSolid"] = "ellipsis_vertical_solid";
518
519
  Icon["EqualsSolid"] = "equals_solid";
519
520
  Icon["ExpandSolid"] = "expand_solid";
@@ -583,6 +584,7 @@ var Icon;
583
584
  Icon["ScrewdriverWrenchLight"] = "screwdriver_wrench_light";
584
585
  Icon["ScrewdriverWrenchRegular"] = "screwdriver_wrench_regular";
585
586
  Icon["ServiceCartRegular"] = "service_cart_regular";
587
+ Icon["ShareSharpRegular"] = "share_sharp_regular";
586
588
  Icon["ShareSolid"] = "share_solid";
587
589
  Icon["SharpLightTruckMovingClock"] = "sharp_light_truck_moving_clock";
588
590
  Icon["SharpRegularBarcodeReadTag"] = "sharp_regular_barcode_read_tag";
@@ -675,6 +677,7 @@ const IconSvg = {
675
677
  "detail_view": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><polygon points=\"24.55 16.18 24.55 27.49 2.44 27.49 2.44 5.38 14.69 5.38 15.59 4.48 14.04 2.94 0 2.94 0 29.93 26.99 29.93 26.99 15.88 25.92 14.81 24.55 16.18\" fill=\"#484f60\"/><polygon points=\"30 .4 17.92 .4 22 4.48 12.24 16.23 14.16 18.15 25.92 8.4 30 12.48 30 .4\" fill=\"#484f60\"/></g></g></svg>",
676
678
  "edit_pencil": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"12.54 38.16 12 37.62 14.85 29.64 20.52 35.31 12.54 38.16\" fill=\"#484f60\"/><rect x=\"16.33\" y=\"20.52\" width=\"17.99\" height=\"8.64\" transform=\"translate(-10.15 25.18) rotate(-45)\" fill=\"#484f60\"/><path d=\"M37.54,18.73,36,20.32l-6.11-6.1,1.59-1.59a1.55,1.55,0,0,1,2.2,0l3.91,3.9A1.55,1.55,0,0,1,37.54,18.73Z\" fill=\"#484f60\"/></svg>",
677
679
  "ellipsis_light": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M352 256C352 238.3 366.3 224 384 224C401.7 224 416 238.3 416 256C416 273.7 401.7 288 384 288C366.3 288 352 273.7 352 256zM192 256C192 238.3 206.3 224 224 224C241.7 224 256 238.3 256 256C256 273.7 241.7 288 224 288C206.3 288 192 273.7 192 256zM96 256C96 273.7 81.67 288 64 288C46.33 288 32 273.7 32 256C32 238.3 46.33 224 64 224C81.67 224 96 238.3 96 256z\"/></svg>",
680
+ "ellipsis_vertical_open": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 192 512\"><path d=\"M96 72a24 24 0 1 0 0 48 24 24 0 1 0 0-48zm0 88A64 64 0 1 1 96 32a64 64 0 1 1 0 128zm24 96a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zm-88 0a64 64 0 1 1 128 0A64 64 0 1 1 32 256zm88 160a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zm-88 0a64 64 0 1 1 128 0A64 64 0 1 1 32 416z\"/></svg>",
678
681
  "ellipsis_vertical_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128 512\"><path d=\"M64 360c30.9 0 56 25.1 56 56s-25.1 56-56 56s-56-25.1-56-56s25.1-56 56-56zm0-160c30.9 0 56 25.1 56 56s-25.1 56-56 56s-56-25.1-56-56s25.1-56 56-56zM120 96c0 30.9-25.1 56-56 56S8 126.9 8 96S33.1 40 64 40s56 25.1 56 56z\"/></svg>",
679
682
  "equals_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M48 128c-17.7 0-32 14.3-32 32s14.3 32 32 32H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H48zm0 192c-17.7 0-32 14.3-32 32s14.3 32 32 32H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H48z\"/></svg>",
680
683
  "expand_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M32 32C14.3 32 0 46.3 0 64v96c0 17.7 14.3 32 32 32s32-14.3 32-32V96h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H64V352zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h64v64c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32H320zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H320c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32V352z\"/></svg>",
@@ -744,6 +747,7 @@ const IconSvg = {
744
747
  "screwdriver_wrench_light": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M64.7 34.6L160 107.9l0 52.1-52.1 0L34.6 64.7 64.7 34.6zM192 169.3c0-.4 0-.9 0-1.3l0-64c0-7.5-3.5-14.5-9.4-19L78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4l64 0c.4 0 .9 0 1.3 0L271.2 293.9c-19.5 30-16.2 70.5 10.1 96.8l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-26.3-26.3-66.8-29.7-96.8-10.1L192 169.3zM304 304c17.7-17.7 46.3-17.7 64 0L480 416l-64 64L304 368c-17.7-17.7-17.7-46.3 0-64zM104 424a16 16 0 1 0 -32 0 16 16 0 1 0 32 0zM23.2 376.8C8.3 391.7 0 411.8 0 432.8C0 476.5 35.5 512 79.2 512c21 0 41.1-8.3 56-23.2L238.5 385.5c-5.7-11.2-9.3-23.1-10.9-35.3L112.1 465.7c-8.7 8.7-20.6 13.6-32.9 13.6c-25.7 0-46.6-20.8-46.6-46.6c0-12.3 4.9-24.2 13.6-32.9L189.1 257l-23.1-23.1L23.2 376.8zM479.4 160c0 44.8-23.1 84.1-58 106.8l23.5 23.5c40.7-29 67.2-76.6 67.2-130.3c0-24.8-5.7-48.3-15.7-69.3c-4.4-9.2-16.5-10.5-23.7-3.3l-67.9 67.9c-3 3-7.1 4.7-11.3 4.7L368 160c-8.8 0-16-7.2-16-16l0-25.4c0-4.2 1.7-8.3 4.7-11.3l67.9-67.9c7.2-7.2 5.9-19.3-3.3-23.7C400.3 5.7 376.8 0 352 0C296.1 0 246.9 28.6 218.3 72.1l26 20C266.8 56.3 306.7 32.6 352 32.6c10.3 0 20.2 1.2 29.7 3.5L333.6 84.2c-9.1 9.1-14.2 21.5-14.2 34.4l0 25.4c0 26.9 21.8 48.6 48.6 48.6l25.4 0c12.9 0 25.3-5.1 34.4-14.2l48.1-48.1c2.3 9.5 3.5 19.5 3.5 29.7z\"/></svg>",
745
748
  "screwdriver_wrench_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4l54.1 0 109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109 0-54.1c0-7.5-3.5-14.5-9.4-19L78.6 5zM23.2 376.8C8.3 391.7 0 411.8 0 432.8C0 476.5 35.5 512 79.2 512c21 0 41.1-8.3 56-23.2L238.5 385.5c-8.9-17.6-12.8-37.1-11.6-56.3L101.3 454.9c-5.9 5.8-13.8 9.1-22.1 9.1C62 464 48 450 48 432.8c0-8.3 3.3-16.2 9.1-22.1L194.3 273.5l-33.9-33.9L23.2 376.8zM463.9 164c-1.4 38.9-22.6 72.8-53.8 91.8c1.1 1 2.1 2 3.1 3l31.6 31.6c40.7-29 67.2-76.6 67.2-130.3c0-24.8-5.7-48.3-15.7-69.3c-4.4-9.2-16.5-10.5-23.7-3.3l-67.9 67.9c-3 3-7.1 4.7-11.3 4.7L368 160c-8.8 0-16-7.2-16-16l0-25.4c0-4.2 1.7-8.3 4.7-11.3l67.9-67.9c7.2-7.2 5.9-19.3-3.3-23.7C400.3 5.7 376.8 0 352 0C294.7 0 244.4 30.1 216.2 75.4C221.2 84 224 93.8 224 104l0 40.8 16 16 0-.8c0-60.5 48-109.9 108-111.9L322.7 73.4s0 0 0 0c-12 12-18.7 28.3-18.7 45.3l0 25.4c0 35.3 28.7 64 64 64l25.4 0c17 0 33.3-6.7 45.3-18.7L463.9 164z\"/></svg>",
746
749
  "service_cart_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M64 24C64 10.7 74.7 0 88 0h45.5c22 0 41.5 12.8 50.6 32h411c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3H234.7l5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5H552c13.3 0 24 10.7 24 24s-10.7 24-24 24H263.7c-34.6 0-64.3-24.6-70.7-58.5l-51.6-271c-.7-3.8-4-6.5-7.9-6.5H88C74.7 48 64 37.3 64 24zM225.6 240H523.2c10.9 0 20.4-7.3 23.2-17.8L584.7 80H195.1l30.5 160zM192 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96zM24 96h80c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24s10.7-24 24-24zm0 80h96c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24s10.7-24 24-24zm0 80H136c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24s10.7-24 24-24z\"/></svg>",
750
+ "share_sharp_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M50.3 427c35.8 37.4 77.7 53 77.7 53s-30.1-30.1-31.9-75.7c-.1-1.4-.1-2.8-.1-4.3c0-61.9 50.1-112 112-112l32 0 48 0 0 48 0 12.2 0 .9 0 34.9 32 0 16-14.7L476.5 240.6 512 208l-35.5-32.6L336 46.7 320 32l-32 0 0 34.9 0 .9L288 80l0 48-48 0-64 0C78.8 128 0 206.8 0 304c0 54.8 23.5 95 50.3 123zm5.8-77.6C51.1 336 48 321 48 304c0-70.7 57.3-128 128-128l112 0 48 0 0-48 0-16.2L441 208 336 304.2l0-16.2 0-48-48 0-80 0c-70.7 0-130.6 45.8-151.8 109.4z\"/></svg>",
747
751
  "share_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M503.7 226.2l-176 151.1c-15.38 13.3-39.69 2.545-39.69-18.16V272.1C132.9 274.3 66.06 312.8 111.4 457.8c5.031 16.09-14.41 28.56-28.06 18.62C39.59 444.6 0 383.8 0 322.3c0-152.2 127.4-184.4 288-186.3V56.02c0-20.67 24.28-31.46 39.69-18.16l176 151.1C514.8 199.4 514.8 216.6 503.7 226.2z\"/></svg>",
748
752
  "sharp_light_truck_moving_clock": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M32 64l0 240 0 32c13.4-10 30-16 48-16c26.2 0 49.4 12.6 64 32c14.6-19.4 37.8-32 64-32c32.8 0 61 19.7 73.3 48c12.9 0 25.8 0 38.7 0c0 10.9 1 21.6 2.9 32c-11.6 0-23.3 0-34.9 0c0 44.2-35.8 80-80 80c-26.2 0-49.4-12.6-64-32c-14.6 19.4-37.8 32-64 32c-44.2 0-80-35.8-80-80c0-10.7 0-21.3 0-32c0-21.3 0-42.7 0-64C0 224 0 144 0 64C0 53.3 0 42.7 0 32c10.7 0 21.3 0 32 0c138.7 0 277.3 0 416 0c10.7 0 21.3 0 32 0c0 10.7 0 21.3 0 32c0 21.3 0 42.7 0 64c24 0 48 0 72 0c2.4 0 4.7 0 7.1 0c1.6 1.8 3.2 3.5 4.8 5.3c24 26.7 48 53.3 72 80c1.4 1.5 2.7 3.1 4.1 4.6c0 2 0 4.1 0 6.1c0 10.7 0 21.3 0 32c0 3.6 0 7.2 0 10.8c-11.7-16.6-26.2-31.1-42.8-42.8c1.8 0 3.6 0 5.3 0c-19.2-21.3-38.4-42.7-57.6-64c-21.6 0-43.3 0-64.9 0c0 10.9 0 21.8 0 32.7c-11 1-21.7 3-32 5.9c0-44.9 0-89.8 0-134.6c-138.7 0-277.3 0-416 0zM256 400c0-17.1-9.1-33-24-41.6s-33.1-8.6-48 0s-24 24.4-24 41.6s9.1 33 24 41.6s33.1 8.6 48 0s24-24.4 24-41.6zM80 448c17.1 0 33-9.1 41.6-24s8.6-33.1 0-48S97.1 352 80 352s-33 9.1-41.6 24s-8.6 33.1 0 48S62.9 448 80 448zm528-80c0-40-21.3-77-56-97s-77.3-20-112 0s-56 57-56 97s21.3 77 56 97s77.3 20 112 0s56-57 56-97zm-256 0c0-51.4 27.4-99 72-124.7s99.4-25.7 144 0s72 73.3 72 124.7s-27.4 99-72 124.7s-99.4 25.7-144 0S352 419.4 352 368zm160-64l0 48c10.7 0 21.3 0 32 0c5.3 0 10.7 0 16 0c0 10.7 0 21.3 0 32c-5.3 0-10.7 0-16 0c-16 0-32 0-48 0c-5.3 0-10.7 0-16 0c0-5.3 0-10.7 0-16c0-21.3 0-42.7 0-64c0-5.3 0-10.7 0-16c10.7 0 21.3 0 32 0c0 5.3 0 10.7 0 16z\"/></svg>",
749
753
  "sharp_regular_barcode_read_tag": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M0 0L24 0 136 0l24 0c0 16 0 32 0 48c-8 0-16 0-24 0c-29.3 0-58.7 0-88 0c0 29.3 0 58.7 0 88c0 8 0 16 0 24c-16 0-32 0-48 0l0-24L0 24C0 16 0 8 0 0zM144 128l0 256c-16 0-32 0-48 0c0-85.4 0-170.7 0-256c16 0 32 0 48 0zm32 0l32 0c0 85.4 0 170.7 0 256c-10.7 0-21.3 0-32 0c0-85.4 0-170.7 0-256zm272 0l32 0c0 21.3 0 42.7 0 64c-10.7 0-21.3 0-32 0c0-21.3 0-42.7 0-64zm-208 0l48 0c0 85.4 0 170.7 0 256c-16 0-32 0-48 0c0-85.4 0-170.7 0-256zm176 0l0 64c-15.1 0-30.2 0-45.3 0c-.9 .9-1.8 1.8-2.7 2.7c0-22.2 0-44.5 0-66.7c16 0 32 0 48 0zM552 0l24 0c0 8 0 16 0 24c0 37.3 0 74.7 0 112c0 8 0 16 0 24c-16 0-32 0-48 0c0-8 0-16 0-24c0-29.3 0-58.7 0-88c-29.3 0-58.7 0-88 0c-8 0-16 0-24 0c0-16 0-32 0-48l24 0c37.3 0 74.7 0 112 0zM0 512l0-24L0 376l0-24c16 0 32 0 48 0c0 8 0 16 0 24c0 29.3 0 58.7 0 88c29.3 0 58.7 0 88 0c8 0 16 0 24 0c0 16 0 32 0 48l-24 0L24 512c-8 0-16 0-24 0zm440 0l-24 0c0-16 0-32 0-48c.9 0 1.8 0 2.7 0c16 16 32 32 48 48c-8.9 0-17.8 0-26.7 0zM640 384L512 512c-53.3-53.3-106.7-106.7-160-160c0-32 0-64 0-96c10.7-10.7 21.3-21.3 32-32c32 0 64 0 96 0c53.3 53.3 106.7 106.7 160 160zM432 328c13.3 0 24-10.7 24-24s-10.7-24-24-24s-24 10.7-24 24s10.7 24 24 24z\"/></svg>",
@@ -20378,6 +20382,7 @@ class TransactionQuickAccessOrderDeliveryComponent extends TransactionQuickAcces
20378
20382
  this._subs.push(this.transactionEventService.allLinesSelectedForDelivery.subscribe(() => __awaiter(this, void 0, void 0, function* () {
20379
20383
  yield this.transactionService.updateQuantitySelectedForAllLines(this.transactionInfo, this.transactionLines, this.deliveryCostLines, this.allSelected || !this.transactionInfo.allowPartialDelivery);
20380
20384
  })));
20385
+ this.getHistoricDocuments();
20381
20386
  super.ngOnInit();
20382
20387
  }
20383
20388
  ngAfterViewInit() {
@@ -20477,8 +20482,14 @@ class TransactionQuickAccessOrderDeliveryComponent extends TransactionQuickAcces
20477
20482
  _prepareHistoricRequest(request) {
20478
20483
  request.reportDataId = this.sendDocumentsComponent.activeReport.reportId;
20479
20484
  }
20480
- historicDocuments() {
20481
- return this.sendDocumentsComponent && this.sendDocumentsComponent.historicReports.length > 0 && !!this.sendDocumentsComponent.activeReport;
20485
+ getHistoricDocuments() {
20486
+ this.transactionService.getHistoricDocuments(this.transactionInfo.id, LayoutCode.DeliveryNote)
20487
+ .then((result) => {
20488
+ if (result) {
20489
+ this.historicReports = result;
20490
+ this.detectChanges();
20491
+ }
20492
+ });
20482
20493
  }
20483
20494
  handleSendDocument(defaultSendMethod) {
20484
20495
  this.handleSend(defaultSendMethod).then(() => this.sendDocumentsComponent.getHistoricDocuments());
@@ -20519,7 +20530,7 @@ TransactionQuickAccessOrderDeliveryComponent.decorators = [
20519
20530
  (modelChange)="handleSelectAllLines($event)"
20520
20531
  ></co-input-checkbox>
20521
20532
  </div>
20522
- <co-quick-send-button *ngIf="canDeliver || historicDocuments()"
20533
+ <co-quick-send-button *ngIf="canDeliver"
20523
20534
  [defaultMethodIcon]="defaultSendMethodIcon"
20524
20535
  [showLoader]="showLoader"
20525
20536
  (sendIconClicked)="handleSendDocument(defaultSendMethod)"
@@ -20787,11 +20798,11 @@ class TransactionSalesReservationService {
20787
20798
  return false;
20788
20799
  }
20789
20800
  }
20790
- processReservation(reservationLines) {
20801
+ processReservation(reservationLines, transId) {
20791
20802
  var _a;
20792
20803
  return __awaiter(this, void 0, void 0, function* () {
20793
20804
  let request = new ProcessOrderReservationRequest();
20794
- request.transId = this._transaction.currentTransaction.transactionInfo.id;
20805
+ request.transId = transId;
20795
20806
  request.lineId = this.lineNr;
20796
20807
  request.reservationLines = reservationLines;
20797
20808
  let response = yield this._transaction.processReservation(request);
@@ -21092,6 +21103,13 @@ class TransactionQuickAccessOrderPurchaseComponent extends TransactionQuickAcces
21092
21103
  this.reportDocumentEmailRequest = new ReportingDocumentEmailSignDocBaseRequest();
21093
21104
  this.reportDocumentPrintRequest = new ReportingDocumentPrintSignDocBaseRequest();
21094
21105
  this.reportDocumentPdfRequest = new ReportingDocumentPdfBaseRequest();
21106
+ this.batchTransactionSendingRequest = new BatchTransactionSendingRequest();
21107
+ this.printPurchaseOrderForSalesOrderRequest = new PrintPurchaseOrderForSalesOrderRequest();
21108
+ this.useDefaultLayout = false;
21109
+ this.useDefaultShippingMethods = false;
21110
+ this.saveDefaultPrinterForUser = false;
21111
+ this.saveDefaultPrinterForAllUsers = false;
21112
+ this.printerList = [];
21095
21113
  this.defaultSendMethodInitialized = false;
21096
21114
  this._subs = [];
21097
21115
  }
@@ -21113,39 +21131,58 @@ class TransactionQuickAccessOrderPurchaseComponent extends TransactionQuickAcces
21113
21131
  }
21114
21132
  handleSend(method) {
21115
21133
  return __awaiter(this, void 0, void 0, function* () {
21116
- const isPrintDefaultMethod = yield this.transactionService.isPrintIsDefaultSendMethodForPurchaseOrder(this.transactionInfo.id);
21117
- if (isPrintDefaultMethod) {
21118
- this.showShippingMethodDialog = true;
21119
- this.changeDetector.detectChanges();
21120
- }
21121
- else {
21122
- yield this.printDocument(this.reportDocumentPrintRequest);
21123
- this._setDefaultMethod(method);
21124
- }
21134
+ // const isPrintDefaultMethod: boolean = await this.transactionService.isPrintIsDefaultSendMethodForPurchaseOrder(this.transactionInfo.id);
21135
+ // if (isPrintDefaultMethod) {
21136
+ this.showSendMethodDialog = true;
21137
+ this.changeDetector.detectChanges();
21138
+ /* } else {
21139
+ await this.printDocument(this.reportDocumentPrintRequest);
21140
+ this._setDefaultMethod(method);
21141
+ } */
21125
21142
  });
21126
21143
  }
21127
- handleSendMethodOkClick(method) {
21144
+ handleSendMethodOkClick(methodData) {
21145
+ var _a, _b, _c, _d, _e, _f;
21128
21146
  return __awaiter(this, void 0, void 0, function* () {
21129
21147
  this.showSendMethodDialog = false;
21130
- yield this.printDocument(this.reportDocumentPrintRequest);
21131
- this._setDefaultMethod(method);
21132
- });
21133
- }
21134
- handleShippingMethodOkClick(request) {
21135
- return __awaiter(this, void 0, void 0, function* () {
21136
- this.showShippingMethodDialog = false;
21137
- if (request.printerName) {
21138
- this.reportDocumentPrintRequest.printerName = request.printerName;
21148
+ this.useDefaultLayout = methodData.useDefaultLayout;
21149
+ this.useDefaultShippingMethods = methodData.useDefaultShippingMethods;
21150
+ this.saveDefaultPrinterForUser = methodData.saveDefaultPrinterForUser;
21151
+ this.saveDefaultPrinterForAllUsers = methodData.saveDefaultPrinterForAllUsers;
21152
+ this.reportIdForPrinting = (_a = methodData.reportIdForPrinting) === null || _a === void 0 ? void 0 : _a.reportId;
21153
+ this.reportIdForEmail = (_b = methodData.reportIdForEmail) === null || _b === void 0 ? void 0 : _b.reportId;
21154
+ if (!this.useDefaultShippingMethods) {
21155
+ this.overruledEmail = methodData.overruledEmail;
21156
+ this.overruledEdi = methodData.overruledEdi;
21157
+ this.overruledPrint = methodData.overruledPrint;
21158
+ }
21159
+ if (!this.useDefaultLayout) {
21160
+ if (this.reportIdForPrinting) {
21161
+ this.printPurchaseOrderForSalesOrderRequest.reportIdForPrinting = this.reportIdForPrinting;
21162
+ }
21163
+ if (this.reportIdForEmail) {
21164
+ this.printPurchaseOrderForSalesOrderRequest.reportIdForEmail = this.reportIdForEmail;
21165
+ }
21166
+ }
21167
+ if (methodData.printerName) {
21168
+ this.selectedPrinter = this.printerList.find(p => p.name === methodData.printerName) || null;
21169
+ }
21170
+ this.printPurchaseOrderForSalesOrderRequest.useRelationSpecificReports = this.useDefaultLayout;
21171
+ this.printPurchaseOrderForSalesOrderRequest.useRelationSpecificSendMethods = this.useDefaultShippingMethods;
21172
+ this.printPurchaseOrderForSalesOrderRequest.saveDefaultPrinterForUser = this.saveDefaultPrinterForUser;
21173
+ this.printPurchaseOrderForSalesOrderRequest.saveDefaultPrinterForAllUsers = this.saveDefaultPrinterForAllUsers;
21174
+ this.printPurchaseOrderForSalesOrderRequest.printerName = ((_c = this.selectedPrinter) === null || _c === void 0 ? void 0 : _c.name) || null;
21175
+ if (!this.useDefaultShippingMethods) {
21176
+ this.printPurchaseOrderForSalesOrderRequest.overruleSendMethodForEmail = (_d = this.overruledEmail) === null || _d === void 0 ? void 0 : _d.code;
21177
+ this.printPurchaseOrderForSalesOrderRequest.overruleSendMethodForPrinting = (_e = this.overruledPrint) === null || _e === void 0 ? void 0 : _e.code;
21178
+ this.printPurchaseOrderForSalesOrderRequest.overruleSendMethodForEDI = (_f = this.overruledEdi) === null || _f === void 0 ? void 0 : _f.code;
21179
+ }
21180
+ if (!this.useDefaultLayout) {
21181
+ this.printPurchaseOrderForSalesOrderRequest.reportIdForPrinting = this.reportIdForPrinting;
21182
+ this.printPurchaseOrderForSalesOrderRequest.reportIdForEmail = this.reportIdForEmail;
21139
21183
  }
21140
- const defaultMethodNumber = typeof this.defaultSendMethod === 'number' ? this.defaultSendMethod : 1;
21141
- // Determine the overridden send method, prioritizing print, email, and then EDI
21142
- const selectedMethodNumber = request.overruleSendMethodForPrinting
21143
- || request.overruleSendMethodForEmail
21144
- || request.overruleSendMethodForEDI
21145
- || defaultMethodNumber; // Ensure fallback is always a number
21146
- const methodString = selectedMethodNumber.toString();
21147
21184
  yield this.printDocument(this.reportDocumentPrintRequest);
21148
- this._setDefaultMethod(methodString);
21185
+ this._setDefaultMethod(this.defaultSendMethod);
21149
21186
  });
21150
21187
  }
21151
21188
  handleReservationModeClick() {
@@ -21169,7 +21206,15 @@ class TransactionQuickAccessOrderPurchaseComponent extends TransactionQuickAcces
21169
21206
  this._checkPurchaseOrders();
21170
21207
  }
21171
21208
  openSendDialog() {
21172
- this.showShippingMethodDialog = true;
21209
+ this.showSendMethodDialog = true;
21210
+ }
21211
+ loadDefaultPrinterName(reportId) {
21212
+ this.transactionService.getDefaultPrinter(reportId, LayoutCode.OrderConfirmation).then((printerName) => {
21213
+ if (printerName && this.printerList.find((printer) => printer.name === printerName)) {
21214
+ this.defaultPrinterName = printerName;
21215
+ this.changeDetector.detectChanges();
21216
+ }
21217
+ });
21173
21218
  }
21174
21219
  _checkPurchaseOrders() {
21175
21220
  this.canGenerate = this.transactionLines &&
@@ -21190,18 +21235,28 @@ class TransactionQuickAccessOrderPurchaseComponent extends TransactionQuickAcces
21190
21235
  });
21191
21236
  }
21192
21237
  getEmailLayouts() {
21193
- return Promise.resolve([]);
21238
+ return this.transactionService.getPurchaseOrderEmailLayouts(this.transactionInfo.uuid);
21194
21239
  }
21195
21240
  getPrintLayouts() {
21196
- return Promise.resolve([]);
21241
+ return this.transactionService.getPurchaseOrderPrintLayouts(this.transactionInfo.uuid);
21197
21242
  }
21198
21243
  pdfDocument(request) {
21199
21244
  }
21200
21245
  emailDocument(request) {
21201
21246
  }
21202
21247
  printDocument(request) {
21248
+ var _a, _b;
21203
21249
  return __awaiter(this, void 0, void 0, function* () {
21204
21250
  const printPurchaseOrderForSalesOrderRequest = Object.assign(new PrintPurchaseOrderForSalesOrderRequest(), request);
21251
+ printPurchaseOrderForSalesOrderRequest.useRelationSpecificReports = (_a = this.printPurchaseOrderForSalesOrderRequest.useRelationSpecificReports) !== null && _a !== void 0 ? _a : true;
21252
+ printPurchaseOrderForSalesOrderRequest.useRelationSpecificSendMethods = (_b = this.printPurchaseOrderForSalesOrderRequest.useRelationSpecificSendMethods) !== null && _b !== void 0 ? _b : true;
21253
+ printPurchaseOrderForSalesOrderRequest.reportIdForPrinting = this.printPurchaseOrderForSalesOrderRequest.reportIdForPrinting;
21254
+ printPurchaseOrderForSalesOrderRequest.reportIdForEmail = this.printPurchaseOrderForSalesOrderRequest.reportIdForEmail;
21255
+ printPurchaseOrderForSalesOrderRequest.overruleSendMethodForEmail = this.printPurchaseOrderForSalesOrderRequest.overruleSendMethodForEmail;
21256
+ printPurchaseOrderForSalesOrderRequest.overruleSendMethodForPrinting = this.printPurchaseOrderForSalesOrderRequest.overruleSendMethodForPrinting;
21257
+ printPurchaseOrderForSalesOrderRequest.overruleSendMethodForEDI = this.printPurchaseOrderForSalesOrderRequest.overruleSendMethodForEDI;
21258
+ printPurchaseOrderForSalesOrderRequest.saveDefaultPrinterForUser = this.printPurchaseOrderForSalesOrderRequest.saveDefaultPrinterForUser;
21259
+ printPurchaseOrderForSalesOrderRequest.saveDefaultPrinterForAllUsers = this.printPurchaseOrderForSalesOrderRequest.saveDefaultPrinterForAllUsers;
21205
21260
  yield this.transactionService.generateAndSendPurchaseOrdersForSalesOrder(printPurchaseOrderForSalesOrderRequest, this.transactionInfo.version);
21206
21261
  });
21207
21262
  }
@@ -21210,48 +21265,44 @@ TransactionQuickAccessOrderPurchaseComponent.decorators = [
21210
21265
  { type: Component, args: [{
21211
21266
  selector: 'co-transaction-quick-access-order-purchase',
21212
21267
  template: `
21213
- <div class="quick-access-content-wrapper" *ngIf="canGenerate && transactionInfo.transactionDefinitive">
21214
- <div class="select-all-wrapper">
21215
- <co-input-checkbox
21216
- [label]="'SELECT_ALL_LINES' | localize"
21217
- (modelChange)="handleSelectAllLines($event)">
21218
- </co-input-checkbox>
21219
- </div>
21220
- <co-quick-send-button
21221
- [defaultMethodIcon]="defaultSendMethodIcon"
21222
- [showLoader]="showLoader"
21223
- (sendIconClicked)="handleSend(defaultSendMethod)"
21224
- (openSendMethodDialog)="openSendDialog()">
21225
- </co-quick-send-button>
21226
-
21227
- <span class="button" [class.selected]="transactionHeaderService.reservationMode">
21228
- <co-icon (click)="handleReservationModeClick()" [iconData]="iconCacheService.getIcon(icons.PalletBoxesRotate)"></co-icon>
21229
- </span>
21230
- </div>
21231
- <co-send-method-dialog
21232
- *ngIf="showSendMethodDialog"
21233
- [printerList]="printerList"
21234
- [headerTitle]="'CREATE_PURCHASE_ORDER' | localize"
21235
- [defaultSendMethod]="defaultSendMethod"
21236
- [visibleMethods]="[sendMethodType.Print]"
21237
- [emailAddresses]="emailAddresses"
21238
- [emailLayouts]="emailLayouts"
21239
- [isPrinterLayoutsEnabled]="false"
21240
- [isDocSignEnabled]="false"
21241
- [(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
21242
- [(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
21243
- [(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
21244
- (closeClick)="showSendMethodDialog = false"
21245
- (okClick)="handleSendMethodOkClick($event)">
21246
- </co-send-method-dialog>
21268
+ <div class="quick-access-content-wrapper" *ngIf="canGenerate && transactionInfo.transactionDefinitive">
21269
+ <div class="select-all-wrapper">
21270
+ <co-input-checkbox
21271
+ [label]="'SELECT_ALL_LINES' | localize"
21272
+ (modelChange)="handleSelectAllLines($event)">
21273
+ </co-input-checkbox>
21274
+ </div>
21275
+ <co-quick-send-button
21276
+ [defaultMethodIcon]="defaultSendMethodIcon"
21277
+ [showLoader]="showLoader"
21278
+ (sendIconClicked)="handleSend(defaultSendMethod)"
21279
+ (openSendMethodDialog)="openSendDialog()">
21280
+ </co-quick-send-button>
21247
21281
 
21248
- <co-shipping-method-dialog
21249
- *ngIf="showShippingMethodDialog"
21250
- [category]="'purchase'"
21251
- [selectedTransactions]="selectedTransactions"
21252
- (cancelClicked)="showShippingMethodDialog = false"
21253
- (saveClicked)="handleShippingMethodOkClick($event)">
21254
- </co-shipping-method-dialog>
21282
+ <span class="button" [class.selected]="transactionHeaderService.reservationMode">
21283
+ <co-icon (click)="handleReservationModeClick()" [iconData]="iconCacheService.getIcon(icons.PalletBoxesRotate)"></co-icon>
21284
+ </span>
21285
+ </div>
21286
+
21287
+ <co-send-method-dialog *ngIf="showSendMethodDialog"
21288
+ [headerTitle]="'CREATE_PURCHASE_ORDER' | localize"
21289
+ [printerList]="printerList"
21290
+ [defaultSendMethod]="defaultSendMethod"
21291
+ [visibleMethods]="[sendMethodType.Print, sendMethodType.Email]"
21292
+ [emailAddresses]="emailAddresses"
21293
+ [emailLayouts]="emailLayouts"
21294
+ [printLayouts]="printLayouts"
21295
+ [defaultPrinterName]="defaultPrinterName"
21296
+ [disablePdfPreview]="true"
21297
+ [isDocSignEnabled]="true"
21298
+
21299
+ [(reportingDocumentEmailRequest)]="reportDocumentEmailRequest"
21300
+ [(reportingDocumentPrintRequest)]="reportDocumentPrintRequest"
21301
+ [(reportingDocumentPdfRequest)]="reportDocumentPdfRequest"
21302
+ (closeClick)="showSendMethodDialog = false"
21303
+ (okClick)="handleSendMethodOkClick($event)"
21304
+ [usePurchaseSendMethod]="true"
21305
+ ></co-send-method-dialog>
21255
21306
  `,
21256
21307
  encapsulation: ViewEncapsulation.None
21257
21308
  },] }
@@ -21270,7 +21321,8 @@ TransactionQuickAccessOrderPurchaseComponent.ctorParameters = () => [
21270
21321
  { type: TransactionSalesReservationService }
21271
21322
  ];
21272
21323
  TransactionQuickAccessOrderPurchaseComponent.propDecorators = {
21273
- showClass: [{ type: HostBinding, args: ['class.co-transaction-quick-access-order-purchase',] }]
21324
+ showClass: [{ type: HostBinding, args: ['class.co-transaction-quick-access-order-purchase',] }],
21325
+ sendDocumentsComponent: [{ type: ViewChild, args: [TransactionSendDocumentsComponent,] }]
21274
21326
  };
21275
21327
 
21276
21328
  class TransactionButtonBarButtonBaseComponent {
@@ -22784,6 +22836,7 @@ class TransactionQuickAccessInvoiceComponent extends TransactionQuickAccessSendM
22784
22836
  yield this.transactionService.updateQuantitySelectedForAllLines(this.transactionInfo, this.transactionLines, this.deliveryCostLines, this.allSelected || !this.transactionInfo.allowPartialDelivery);
22785
22837
  })));
22786
22838
  super.ngOnInit();
22839
+ this.getHistoricDocuments();
22787
22840
  this._getInternalParameterAllowPartialInvoicing();
22788
22841
  }
22789
22842
  ngOnDestroy() {
@@ -22878,8 +22931,14 @@ class TransactionQuickAccessInvoiceComponent extends TransactionQuickAccessSendM
22878
22931
  return false;
22879
22932
  }
22880
22933
  }
22881
- historicDocuments() {
22882
- return this.sendDocumentsComponent && this.sendDocumentsComponent.historicReports.length > 0 && !!this.sendDocumentsComponent.activeReport;
22934
+ getHistoricDocuments() {
22935
+ this.transactionService.getHistoricDocuments(this.transactionInfo.id, LayoutCode.Invoice)
22936
+ .then((result) => {
22937
+ if (result) {
22938
+ this.historicReports = result;
22939
+ this.detectChanges();
22940
+ }
22941
+ });
22883
22942
  }
22884
22943
  handleSendDocument(defaultSendMethod) {
22885
22944
  this.handleSend(defaultSendMethod).then(() => this.sendDocumentsComponent.getHistoricDocuments());
@@ -22927,7 +22986,7 @@ TransactionQuickAccessInvoiceComponent.decorators = [
22927
22986
  (modelChange)="handleSelectAllLines($event)"
22928
22987
  ></co-input-checkbox>
22929
22988
  </div>
22930
- <co-quick-send-button *ngIf="canInvoice || historicDocuments()"
22989
+ <co-quick-send-button *ngIf="canInvoice"
22931
22990
  [defaultMethodIcon]="defaultSendMethodIcon"
22932
22991
  [showLoader]="showLoader"
22933
22992
  (sendIconClicked)="handleSendDocument(defaultSendMethod)"
@@ -42867,7 +42926,7 @@ class QuickSendButtonComponent {
42867
42926
  this.iconCacheService = iconCacheService;
42868
42927
  this.icons = Icon;
42869
42928
  this.title = 'SEND';
42870
- this.icon = Icon.ShareSolid;
42929
+ this.icon = Icon.ShareSharpRegular;
42871
42930
  this.showSendMethodIcon = true;
42872
42931
  this.showSendMethodDialogIcon = true;
42873
42932
  this.showLoader = false;
@@ -42897,7 +42956,7 @@ QuickSendButtonComponent.decorators = [
42897
42956
  </div>
42898
42957
  <div class="icons-spacer" *ngIf="showSendMethodDialogIcon"></div>
42899
42958
  <div class="icon-wrapper-flat-right" *ngIf="showSendMethodDialogIcon" (click)="openSendMethodDialog.emit($event)">
42900
- <co-icon [iconData]="iconCacheService.getIcon(icons.EllipsisVerticalSolid)"></co-icon>
42959
+ <co-icon [iconData]="iconCacheService.getIcon(icons.EllipsisVerticalOpen)"></co-icon>
42901
42960
  </div>
42902
42961
  </div>
42903
42962
  `,
@@ -54877,7 +54936,7 @@ TransactionInternalComponent.decorators = [
54877
54936
  <!-- </co-transaction-line-side-panel>-->
54878
54937
 
54879
54938
 
54880
- <co-transaction-sales-reservation-popup *ngIf="showReservationPopup"></co-transaction-sales-reservation-popup>
54939
+ <co-transaction-sales-reservation-popup *ngIf="showReservationPopup" [transactionId]="transaction.transactionInfo.id"></co-transaction-sales-reservation-popup>
54881
54940
  <!--Popup voor wijzigen volgorde van tekstregels-->
54882
54941
  <co-transaction-article-text-overview *ngIf="showArticleTextOverview"
54883
54942
  [transactionInfo]="transaction.transactionInfo"
@@ -57491,10 +57550,10 @@ class AddProductComponent {
57491
57550
  onlyThreeD: false
57492
57551
  };
57493
57552
  this.catalogParameters = {};
57494
- this.isSearchInputFocused = false;
57495
57553
  this.showRelatedProductsPopup = false;
57496
57554
  this.cartPlusIcon = this.iconService.getIcon(this.icons.CartPlusRegular);
57497
57555
  this.cartMinIcon = this.iconService.getIcon(this.icons.CartMinusRegular);
57556
+ this.pendingAddArticleAction = false;
57498
57557
  this._showCatalog = false;
57499
57558
  this._subs = [];
57500
57559
  }
@@ -57520,54 +57579,63 @@ class AddProductComponent {
57520
57579
  }
57521
57580
  handleSearch(text) {
57522
57581
  return __awaiter(this, void 0, void 0, function* () {
57523
- if (!this.isSearchInputFocused) {
57524
- return;
57525
- }
57582
+ console.log('searching: ' + text);
57526
57583
  this.searchText = text;
57527
57584
  this._prepareCatalogRequest();
57528
- this.searchText = undefined;
57585
+ this.searchText = "";
57586
+ this._changeDetector.detectChanges();
57529
57587
  // first check if there's a single article found
57530
57588
  // This is a two check step:
57531
57589
  // Check if there is an exact match on barcode, ean or articlenumber
57532
57590
  // if not: check with search like
57533
57591
  // else open catalogus
57534
- const fullMatchSearch = yield this.transactionService.getArticleListWithBarcodeArticleNrEanCode(text);
57535
- if (fullMatchSearch && fullMatchSearch.length === 1) {
57536
- const article = yield this.transactionService.getArticleExtended(fullMatchSearch[0].articleNr);
57537
- if (article.goodType === "B") {
57538
- this.showCatalogDialog();
57539
- }
57540
- else {
57541
- yield this.handleAddArticle(article);
57542
- }
57543
- }
57544
- else {
57545
- const foundArticles = yield this.transactionService.getArticles(this.catalogParameters);
57546
- if (foundArticles && foundArticles.length === 1) {
57547
- const article = yield this.transactionService.getArticleExtended(foundArticles[0].articleNumber);
57592
+ if (!this.pendingAddArticleAction) {
57593
+ console.log('no Pending Action ' + text);
57594
+ const fullMatchSearch = yield this.transactionService.getArticleListWithBarcodeArticleNrEanCode(text);
57595
+ if (fullMatchSearch && fullMatchSearch.length === 1) {
57596
+ console.log('Match' + text);
57597
+ const article = yield this.transactionService.getArticleExtended(fullMatchSearch[0].articleNr);
57548
57598
  if (article.goodType === "B") {
57549
57599
  this.showCatalogDialog();
57550
57600
  }
57551
57601
  else {
57602
+ this.pendingAddArticleAction = true;
57552
57603
  yield this.handleAddArticle(article);
57553
57604
  }
57554
57605
  }
57555
57606
  else {
57556
- this.showCatalogDialog();
57607
+ console.log('No Match' + text);
57608
+ const foundArticles = yield this.transactionService.getArticles(this.catalogParameters);
57609
+ if (foundArticles && foundArticles.length === 1) {
57610
+ console.log('Found Article ' + text);
57611
+ const article = yield this.transactionService.getArticleExtended(foundArticles[0].articleNumber);
57612
+ if (article.goodType === "B") {
57613
+ this.showCatalogDialog();
57614
+ }
57615
+ else {
57616
+ this.pendingAddArticleAction = true;
57617
+ yield this.handleAddArticle(article);
57618
+ }
57619
+ }
57620
+ else {
57621
+ console.log('No Found Article ' + text);
57622
+ this.showCatalogDialog();
57623
+ }
57557
57624
  }
57558
57625
  }
57559
57626
  });
57560
57627
  }
57561
- handleInputFocus(isFocused) {
57562
- this.isSearchInputFocused = isFocused;
57563
- }
57564
57628
  handleAddArticle(article) {
57565
57629
  return __awaiter(this, void 0, void 0, function* () {
57566
57630
  if (this.handleAddArticleInternally) {
57567
57631
  const success = yield this.transactionService.addArticle(article.articleNumber, this.return ? -1 : 1);
57568
- if (!success) {
57632
+ if (success) {
57633
+ this.searchText = "";
57634
+ }
57635
+ else {
57569
57636
  this.transactionService.rollback();
57570
57637
  }
57638
+ this.pendingAddArticleAction = false;
57571
57639
  }
57572
57640
  else {
57573
57641
  this.addArticle.next({
@@ -57577,6 +57645,7 @@ class AddProductComponent {
57577
57645
  belowLineNr: 0,
57578
57646
  lastArticle: true
57579
57647
  });
57648
+ this.pendingAddArticleAction = false;
57580
57649
  }
57581
57650
  });
57582
57651
  }
@@ -57587,20 +57656,7 @@ class AddProductComponent {
57587
57656
  // }
57588
57657
  this.showCatalog = false;
57589
57658
  if (this.handleAddArticleInternally) {
57590
- if (data && data.article) {
57591
- if (typeof data.article === 'string') {
57592
- const article = JSON.parse(data.article);
57593
- if (article.selectorData && article.selectorData.compositions) { // configured (frozen) article
57594
- yield this.transactionService.addArticle(article.selectorData.compositions[0].compositionArticleNo, data.quantity, 0, 0, true, true);
57595
- }
57596
- }
57597
- else { // flat (simple) article
57598
- const articleNr = data.article['articleNr'] || data.article['articleNumber'] || data.article['articleNo'];
57599
- if (articleNr) {
57600
- yield this.transactionService.addArticle(articleNr, data.quantity, 0, 0, true, true);
57601
- }
57602
- }
57603
- }
57659
+ yield this._handleArticleTypeOnAdd(data);
57604
57660
  }
57605
57661
  else {
57606
57662
  if (data && data.article instanceof ArticleExtended) {
@@ -57615,6 +57671,46 @@ class AddProductComponent {
57615
57671
  }
57616
57672
  });
57617
57673
  }
57674
+ _tryAddArticle(articleNr, quantity) {
57675
+ return __awaiter(this, void 0, void 0, function* () {
57676
+ const success = yield this.transactionService.addArticle(articleNr, quantity, 0, 0, true, true);
57677
+ console.log(success);
57678
+ if (success) {
57679
+ this.searchText = "";
57680
+ }
57681
+ else {
57682
+ // keep the search text
57683
+ this.searchText = this.inputSearchText.model;
57684
+ }
57685
+ });
57686
+ }
57687
+ _handleArticleTypeOnAdd(data) {
57688
+ return __awaiter(this, void 0, void 0, function* () {
57689
+ if (data && data.article) {
57690
+ if (typeof data.article === 'string') {
57691
+ const article = JSON.parse(data.article);
57692
+ if (article.selectorData.compositions) { // configured (frozen) article
57693
+ yield this._tryAddArticle(article.selectorData.compositions[0].compositionArticleNo, data.quantity);
57694
+ }
57695
+ else if (article.selectorData.articleNr) { // flat article
57696
+ yield this._tryAddArticle(article.selectorData.articleNr, data.quantity);
57697
+ }
57698
+ }
57699
+ else { // flat (simple) article
57700
+ let articleNr;
57701
+ if (data.article instanceof ArticleExtended) {
57702
+ articleNr = data.article.articleNumber;
57703
+ }
57704
+ else {
57705
+ articleNr = data.article.hasOwnProperty('articleNr') ? data.article['articleNr'] : data.article['articleNo'];
57706
+ }
57707
+ if (articleNr) {
57708
+ yield this._tryAddArticle(articleNr, data.quantity);
57709
+ }
57710
+ }
57711
+ }
57712
+ });
57713
+ }
57618
57714
  getActualQuantity(quantityInput) {
57619
57715
  let quantity = 0;
57620
57716
  if (this.return && quantityInput > 0) {
@@ -57633,6 +57729,11 @@ class AddProductComponent {
57633
57729
  }
57634
57730
  showCatalogDialog() {
57635
57731
  this.showCatalog = true;
57732
+ this.pendingAddArticleAction = false;
57733
+ }
57734
+ handleCloseCatalogueClick() {
57735
+ this.showCatalog = false;
57736
+ this.searchText = "";
57636
57737
  }
57637
57738
  handleCartIconClick(event) {
57638
57739
  this.return = !this.return;
@@ -57642,7 +57743,7 @@ class AddProductComponent {
57642
57743
  this.searchText = this.inputSearchText.model;
57643
57744
  }
57644
57745
  this._prepareCatalogRequest();
57645
- this.searchText = undefined;
57746
+ // this.searchText = undefined;
57646
57747
  this.showCatalogDialog();
57647
57748
  }
57648
57749
  handleIFrameFeedback(iFrameFeedbackObject) {
@@ -57694,7 +57795,6 @@ AddProductComponent.decorators = [
57694
57795
  (rightIconClick)="handleSearchIconClick()"
57695
57796
  (barCodeScanned)="handleSearch($event)"
57696
57797
  (search)="handleSearch($event)"
57697
- (isFocused)="handleInputFocus($event)"
57698
57798
  ></co-input-scanner>
57699
57799
  <co-dialog-catalog *ngIf="showCatalog"
57700
57800
  [options]="catalogOptions"
@@ -57704,7 +57804,7 @@ AddProductComponent.decorators = [
57704
57804
  [isReturn]="return"
57705
57805
  [showRelatedProductsPopup]="showRelatedProductsPopup"
57706
57806
  [transaction]="transactionService.currentTransaction"
57707
- (closeClick)="showCatalog = false"
57807
+ (closeClick)="handleCloseCatalogueClick()"
57708
57808
  (articleClicked)="handleCatalogArticleClick($event)"
57709
57809
  (addArticleClicked)="handleAddArticleClick($event)"
57710
57810
  (addCatFarmArticleClicked)="handleAddCatFarmArticleClick($event)"
@@ -60010,7 +60110,7 @@ class TransactionSalesReservationPopupComponent {
60010
60110
  }
60011
60111
  processReservation() {
60012
60112
  return __awaiter(this, void 0, void 0, function* () {
60013
- let response = yield this.salesReservationService.processReservation([...this.reservationOrderLines.filter(line => line.selected)]);
60113
+ let response = yield this.salesReservationService.processReservation([...this.reservationOrderLines.filter(line => line.selected)], this.transactionId);
60014
60114
  if (response) {
60015
60115
  this.handleClosePopup();
60016
60116
  }
@@ -60064,6 +60164,7 @@ TransactionSalesReservationPopupComponent.ctorParameters = () => [
60064
60164
  ];
60065
60165
  TransactionSalesReservationPopupComponent.propDecorators = {
60066
60166
  reservationOrderLines: [{ type: Input }],
60167
+ transactionId: [{ type: Input }],
60067
60168
  showClass: [{ type: HostBinding, args: ["class.co-transaction-sales-reservation-popup",] }]
60068
60169
  };
60069
60170