@colijnit/transaction 262.1.54 → 262.1.55

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.
@@ -360,8 +360,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
360
360
  class Version {
361
361
  name = "@colijnit/transaction";
362
362
  description = "Colijn IT transaction package";
363
- symVer = "262.1.54";
364
- publishDate = "6-10-2026, 17:10:20";
363
+ symVer = "262.1.55";
364
+ publishDate = "7-10-2026, 17:49:52";
365
365
  }
366
366
 
367
367
  class CheckoutModuleService extends BaseModuleService {
@@ -466,6 +466,7 @@ var TransactionTypeCategory;
466
466
  TransactionTypeCategory["SalesOrderReserve"] = "salesOrderQuotation";
467
467
  TransactionTypeCategory["SalesOrderActivities"] = "salesOrderActivities";
468
468
  TransactionTypeCategory["SalesOrderQuotation"] = "salesOrderQuotation";
469
+ TransactionTypeCategory["SalesOrderQuotationPurchase"] = "salesOrderQuotationPurchase";
469
470
  TransactionTypeCategory["SalesOrderQuotationActivities"] = "salesOrderQuotationActivities";
470
471
  TransactionTypeCategory["ServiceOrderService"] = "serviceOrderService";
471
472
  TransactionTypeCategory["ServiceOrderOverview"] = "serviceOrderOverview";
@@ -10046,6 +10047,7 @@ class TransactionBaseService extends BaseModuleService {
10046
10047
  internalParameterSellDirectlyFromSupp = false;
10047
10048
  internalParameterStockMutBeforeDelivery = false;
10048
10049
  printColliStickerDefault = false;
10050
+ canGenerateMultipleOrdersFromSingleQuotation = false;
10049
10051
  internalPlanDaysParam = 0;
10050
10052
  contactPersonId = 0;
10051
10053
  firstDayOfWeek = '1';
@@ -10159,6 +10161,9 @@ class TransactionBaseService extends BaseModuleService {
10159
10161
  this.printColliStickerDefault = (value === "J");
10160
10162
  });
10161
10163
  }
10164
+ async prepareCanGenerateMultipleOrdersFromSingleQuotationParam() {
10165
+ this.canGenerateMultipleOrdersFromSingleQuotation = await this.getInternalParameter(InternalParam.QuotationToOrderMulti);
10166
+ }
10162
10167
  async getInternalParameter(param) {
10163
10168
  const response = await this.connector.getInternalParameterValue(param);
10164
10169
  return response && response === 'J';
@@ -13420,6 +13425,7 @@ class TransactionService extends PendingReasonService {
13420
13425
  this.prepareCanChangeSalesOrderWhenFullyInvoicedParam();
13421
13426
  this.prepareCanChangeRelationParam();
13422
13427
  this.prepareInternalPlanDaysParam();
13428
+ this.prepareCanGenerateMultipleOrdersFromSingleQuotationParam();
13423
13429
  }
13424
13430
  async _handleAfterRememberCurrentTransaction() {
13425
13431
  this.remainingAmount = 0;
@@ -56431,7 +56437,7 @@ class TransactionLineSupplierComponent extends TransactionFilterPopupLineBaseCom
56431
56437
  this._getCollection();
56432
56438
  }
56433
56439
  async commit(id) {
56434
- if (this.transactionLine.supplierId !== id) {
56440
+ if (this.transactionLine.supplierId !== id && (await this.lockTransaction())) {
56435
56441
  const oldId = this.transactionLine.supplierId;
56436
56442
  const success = await this.transactionService.updateSupplierTransactionLine(this.transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, id);
56437
56443
  if (!success) {
@@ -57748,6 +57754,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
57748
57754
  }] } });
57749
57755
 
57750
57756
  class TransactionPurchaseLineComponent extends TransactionPurchaseLineBaseComponent {
57757
+ TransactionKind = TransactionKind;
57751
57758
  showConfirmedDeliveryDate = true;
57752
57759
  lineIndex;
57753
57760
  showClass() {
@@ -57810,6 +57817,14 @@ class TransactionPurchaseLineComponent extends TransactionPurchaseLineBaseCompon
57810
57817
  this.salesReservationService.salesReservationLines = reservation.salesOrderLines.filter((line) => line.lineNr === lineNr);
57811
57818
  this.transactionHeaderService.reservationPopupToggle.next(true);
57812
57819
  }
57820
+ readOnlyClassNeeded() {
57821
+ if (this.transactionKind !== TransactionKind.SalesQuotation) {
57822
+ return !this.transactionInfo.transactionDefinitive;
57823
+ }
57824
+ else {
57825
+ return ((!this.transactionService.canGenerateMultipleOrdersFromSingleQuotation) && (this.transactionLine.refTransactions.length > 0));
57826
+ }
57827
+ }
57813
57828
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionPurchaseLineComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
57814
57829
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TransactionPurchaseLineComponent, isStandalone: false, selector: "co-transaction-purchase-line", inputs: { lineIndex: "lineIndex" }, host: { properties: { "class.co-transaction-purchase-line": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
57815
57830
  <co-transaction-base-line
@@ -57817,7 +57832,7 @@ class TransactionPurchaseLineComponent extends TransactionPurchaseLineBaseCompon
57817
57832
  [transactionInfo]="transactionInfo"
57818
57833
  [transactionLine]="transactionLine"
57819
57834
  [preview]="preview"
57820
- [checkbox]="showCheckboxForLine && transactionInfo.transactionDefinitive"
57835
+ [checkbox]="showCheckboxForLine && transactionInfo.transactionDefinitive && transactionKind !== TransactionKind.SalesQuotation"
57821
57836
  [checkboxValue]="transactionLine.selected"
57822
57837
  (checkboxValueChanged)="transactionLineSelectedChanged($event)"
57823
57838
  [isFirst]="isFirst"
@@ -57828,7 +57843,7 @@ class TransactionPurchaseLineComponent extends TransactionPurchaseLineBaseCompon
57828
57843
  [iconData]="iconCacheService.getIcon(icons.PalletBoxesRotate)">
57829
57844
  </co-icon>
57830
57845
  </span>
57831
- <div class="transaction-line-wrapper" [class.transaction-not-definitive]="!transactionInfo.transactionDefinitive">
57846
+ <div class="transaction-line-wrapper" [class.transaction-not-definitive]="readOnlyClassNeeded()">
57832
57847
  <div *ngIf=!preview class="transaction-line-extended-wrapper">
57833
57848
  <div class="column-full align-right">
57834
57849
  <co-transaction-line-statusbar
@@ -57908,7 +57923,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
57908
57923
  [transactionInfo]="transactionInfo"
57909
57924
  [transactionLine]="transactionLine"
57910
57925
  [preview]="preview"
57911
- [checkbox]="showCheckboxForLine && transactionInfo.transactionDefinitive"
57926
+ [checkbox]="showCheckboxForLine && transactionInfo.transactionDefinitive && transactionKind !== TransactionKind.SalesQuotation"
57912
57927
  [checkboxValue]="transactionLine.selected"
57913
57928
  (checkboxValueChanged)="transactionLineSelectedChanged($event)"
57914
57929
  [isFirst]="isFirst"
@@ -57919,7 +57934,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
57919
57934
  [iconData]="iconCacheService.getIcon(icons.PalletBoxesRotate)">
57920
57935
  </co-icon>
57921
57936
  </span>
57922
- <div class="transaction-line-wrapper" [class.transaction-not-definitive]="!transactionInfo.transactionDefinitive">
57937
+ <div class="transaction-line-wrapper" [class.transaction-not-definitive]="readOnlyClassNeeded()">
57923
57938
  <div *ngIf=!preview class="transaction-line-extended-wrapper">
57924
57939
  <div class="column-full align-right">
57925
57940
  <co-transaction-line-statusbar
@@ -65000,6 +65015,7 @@ class TransactionButtonBarModule {
65000
65015
  ]],
65001
65016
  [TransactionKind.SalesQuotation, [
65002
65017
  { title: 'OVERVIEW', icon: Icon.CartShoppingRegular, category: TransactionTypeCategory.SalesOrderQuotation, component: TransactionSalesQuotationButtonBarButtonComponent, cfgName: TransactionCfgName.RubricOverview },
65018
+ { title: 'PURCHASE', icon: Icon.PalletBoxesSharpRegular, category: TransactionTypeCategory.SalesOrderQuotationPurchase, component: TransactionSalesPurchaseButtonBarButtonComponent, cfgName: TransactionCfgName.RubricPurchase },
65003
65019
  { title: 'ACTIVITIES', icon: Icon.RegularGearCircleUser, category: TransactionTypeCategory.SalesOrderQuotationActivities, component: TransactionActivitiesButtonBarButtonComponent, cfgName: TransactionCfgName.RubricActivities },
65004
65020
  //{title: 'DELIVERY_NOTE', icon: Icon.MemoCircleCheckRegular, category: TransactionTypeCategory.SalesOrderDeliveryNote, component: TransactionSalesDeliveryButtonBarButtonComponent, cfgName: TransactionCfgName.RubricDelivery},
65005
65021
  ]],
@@ -65095,6 +65111,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
65095
65111
  ]],
65096
65112
  [TransactionKind.SalesQuotation, [
65097
65113
  { title: 'OVERVIEW', icon: Icon.CartShoppingRegular, category: TransactionTypeCategory.SalesOrderQuotation, component: TransactionSalesQuotationButtonBarButtonComponent, cfgName: TransactionCfgName.RubricOverview },
65114
+ { title: 'PURCHASE', icon: Icon.PalletBoxesSharpRegular, category: TransactionTypeCategory.SalesOrderQuotationPurchase, component: TransactionSalesPurchaseButtonBarButtonComponent, cfgName: TransactionCfgName.RubricPurchase },
65098
65115
  { title: 'ACTIVITIES', icon: Icon.RegularGearCircleUser, category: TransactionTypeCategory.SalesOrderQuotationActivities, component: TransactionActivitiesButtonBarButtonComponent, cfgName: TransactionCfgName.RubricActivities },
65099
65116
  //{title: 'DELIVERY_NOTE', icon: Icon.MemoCircleCheckRegular, category: TransactionTypeCategory.SalesOrderDeliveryNote, component: TransactionSalesDeliveryButtonBarButtonComponent, cfgName: TransactionCfgName.RubricDelivery},
65100
65117
  ]],
@@ -83269,6 +83286,7 @@ class TransactionLineModule {
83269
83286
  [{ type: TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation }, TransactionPurchaseOrderLineComponent],
83270
83287
  [{ type: TransactionKind.CashDesk, category: TransactionTypeCategory.SalesOrderCashRegister }, TransactionCashRegisterOrderLineComponent],
83271
83288
  [{ type: TransactionKind.SalesQuotation, category: TransactionTypeCategory.SalesOrderQuotation }, TransactionSalesOrderQuotationLineComponent],
83289
+ [{ type: TransactionKind.SalesQuotation, category: TransactionTypeCategory.SalesOrderQuotationPurchase }, TransactionPurchaseLineComponent],
83272
83290
  [{ type: TransactionKind.SalesQuotation, category: TransactionTypeCategory.SalesOrderMarginInfo }, TransactionMarginInfoLineComponent],
83273
83291
  [{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderOverview }, TransactionOverviewLineComponent],
83274
83292
  [{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderPurchase }, TransactionPurchaseLineComponent],
@@ -83373,6 +83391,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
83373
83391
  [{ type: TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation }, TransactionPurchaseOrderLineComponent],
83374
83392
  [{ type: TransactionKind.CashDesk, category: TransactionTypeCategory.SalesOrderCashRegister }, TransactionCashRegisterOrderLineComponent],
83375
83393
  [{ type: TransactionKind.SalesQuotation, category: TransactionTypeCategory.SalesOrderQuotation }, TransactionSalesOrderQuotationLineComponent],
83394
+ [{ type: TransactionKind.SalesQuotation, category: TransactionTypeCategory.SalesOrderQuotationPurchase }, TransactionPurchaseLineComponent],
83376
83395
  [{ type: TransactionKind.SalesQuotation, category: TransactionTypeCategory.SalesOrderMarginInfo }, TransactionMarginInfoLineComponent],
83377
83396
  [{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderOverview }, TransactionOverviewLineComponent],
83378
83397
  [{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderPurchase }, TransactionPurchaseLineComponent],
@@ -94602,12 +94621,13 @@ class TransactionQuickAccessSalesQuotationComponent extends TransactionQuickAcce
94602
94621
  [transactionTypeCategory]="transactionTypeCategory.SalesOrderQuotation"
94603
94622
  (openSendMethodDialog)="showSendMethodDialog = true"
94604
94623
  ></co-transaction-send-documents>
94605
- <co-transaction-button class="sales-quote-btn custom-width"
94606
- [title]="'SALES_ORDER' | localize"
94607
- [iconData]="iconCacheService.getIcon(icons.CartShoppingGear)"
94608
- [hidden]="refTransactions.length > 0"
94609
- (click)="createSalesOrder()"
94610
- ></co-transaction-button>
94624
+ @if (refTransactions.length <= 0 || transactionService.canGenerateMultipleOrdersFromSingleQuotation) {
94625
+ <co-transaction-button class="sales-quote-btn custom-width"
94626
+ [title]="'SALES_ORDER' | localize"
94627
+ [iconData]="iconCacheService.getIcon(icons.CartShoppingGear)"
94628
+ (click)="createSalesOrder()"
94629
+ ></co-transaction-button>
94630
+ }
94611
94631
  <co-transaction-navigation-button-list
94612
94632
  [refTransactions]="refTransactions"
94613
94633
  [showRelationButton]="false"
@@ -94662,12 +94682,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
94662
94682
  [transactionTypeCategory]="transactionTypeCategory.SalesOrderQuotation"
94663
94683
  (openSendMethodDialog)="showSendMethodDialog = true"
94664
94684
  ></co-transaction-send-documents>
94665
- <co-transaction-button class="sales-quote-btn custom-width"
94666
- [title]="'SALES_ORDER' | localize"
94667
- [iconData]="iconCacheService.getIcon(icons.CartShoppingGear)"
94668
- [hidden]="refTransactions.length > 0"
94669
- (click)="createSalesOrder()"
94670
- ></co-transaction-button>
94685
+ @if (refTransactions.length <= 0 || transactionService.canGenerateMultipleOrdersFromSingleQuotation) {
94686
+ <co-transaction-button class="sales-quote-btn custom-width"
94687
+ [title]="'SALES_ORDER' | localize"
94688
+ [iconData]="iconCacheService.getIcon(icons.CartShoppingGear)"
94689
+ (click)="createSalesOrder()"
94690
+ ></co-transaction-button>
94691
+ }
94671
94692
  <co-transaction-navigation-button-list
94672
94693
  [refTransactions]="refTransactions"
94673
94694
  [showRelationButton]="false"