@colijnit/transaction 262.1.29 → 262.1.31

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.
package/index.d.ts CHANGED
@@ -2327,6 +2327,7 @@ declare class TransactionBaseService extends BaseModuleService implements OnDest
2327
2327
  internalParameterSellDirectlyFromSupp: boolean;
2328
2328
  internalParameterStockMutBeforeDelivery: boolean;
2329
2329
  printColliStickerDefault: boolean;
2330
+ internalPlanDaysParam: number;
2330
2331
  contactPersonId: number;
2331
2332
  firstDayOfWeek: string;
2332
2333
  articleAmountChange: BehaviorSubject<number>;
@@ -2368,6 +2369,7 @@ declare class TransactionBaseService extends BaseModuleService implements OnDest
2368
2369
  logisticsButtonVisible: () => Promise<boolean>;
2369
2370
  prepareDropShipmentInternalParam(): void;
2370
2371
  prepareReceiveGoodsWithDataTerminalInternalParam(): void;
2372
+ prepareInternalPlanDaysParam(): Promise<void>;
2371
2373
  preparePrintColliStickerDefault(): void;
2372
2374
  getInternalParameter(param: InternalParam): Promise<boolean>;
2373
2375
  getCashLimitValue(param: InternalParam): Promise<number>;
@@ -2378,6 +2380,7 @@ declare class TransactionBaseService extends BaseModuleService implements OnDest
2378
2380
  resetCurrentTransaction(): void;
2379
2381
  saveTransaction(rememberTransaction?: boolean): Promise<TransactionInfoResponse>;
2380
2382
  commit(): Promise<boolean>;
2383
+ commitGeneral(): Promise<boolean>;
2381
2384
  rollback(refresh?: boolean, force?: boolean): Promise<boolean>;
2382
2385
  rollbackBeacon(): Promise<void>;
2383
2386
  searchTransactions(request: TransactionSearchViewRequest): Promise<TransactionSearchResult>;
@@ -3037,6 +3040,7 @@ declare class TransactionHeaderService {
3037
3040
  fullyInvoiced: boolean;
3038
3041
  partiallyOrFullyInvoiced: boolean;
3039
3042
  fullyDelivered: boolean;
3043
+ partiallyOrFullyDelivered: boolean;
3040
3044
  partiallyOrFullyOrdered: boolean;
3041
3045
  partiallyOrFullyInvoiceControl: boolean;
3042
3046
  partiallyOrFullyReceived: boolean;
@@ -3068,7 +3072,8 @@ declare class TransactionHeaderService {
3068
3072
  private _relation;
3069
3073
  private _readOnly;
3070
3074
  constructor(_transactionService: TransactionService, _relationService: TransactionRelationService, _transactionPaymentConnectorService: TransactionPaymentConnectorService, _dictionaryService: DictionaryService, _transactionEventService: TransactionEventService);
3071
- canAlterRelationForTransaction(): boolean;
3075
+ canChangeRelationOnTransaction(): boolean;
3076
+ canAlterRelationDataOnTransaction(): boolean;
3072
3077
  getTransactionMargeInfoList(): Promise<void>;
3073
3078
  createCloneRelation(): void;
3074
3079
  getPlanOrder(): Promise<PlanOrder>;
@@ -4131,6 +4136,7 @@ declare enum TransactionCfgName {
4131
4136
  LineNetLineTotal = "lineNetLineTotal",
4132
4137
  LinePurchasePrice = "linePurchasePrice",
4133
4138
  LinePurchaseDescription = "linePurchaseDescription",
4139
+ LineExpectedDeliveryDateCP = "lineExpectedDeliveryDateCP",
4134
4140
  LineSupplier = "lineSupplier",
4135
4141
  LineRefTransactions = "lineRefTransactions",
4136
4142
  LineConfirmedDeliveryDate = "lineConfirmedDeliveryDate",
@@ -4985,6 +4991,7 @@ declare class TransactionOverviewLineComponent extends TransactionLineBaseCompon
4985
4991
  showClass(): boolean;
4986
4992
  stock: StockStatus;
4987
4993
  noLabel: boolean;
4994
+ showEstimatedDeliveryDate: boolean;
4988
4995
  statusBarConfigNames: StatusBarCfgNames;
4989
4996
  discountConfigNames: LineDiscountCfgNames;
4990
4997
  private _subs;
@@ -6051,6 +6058,7 @@ declare class TransactionHeaderPopupRelationComponent extends TransactionHeaderP
6051
6058
  showMessageForChangeCustomer: boolean;
6052
6059
  showInvoiceAddress: boolean;
6053
6060
  noLockOnCustomerSet: boolean;
6061
+ showChangeOptionWhenCustomerReadonly: boolean;
6054
6062
  inputChangeForSuggestions: EventEmitter<RelationSuggestionsRequest>;
6055
6063
  changeCustomerRequested: EventEmitter<void>;
6056
6064
  deliveryAddressLocalHashChange: EventEmitter<string>;
@@ -6092,11 +6100,10 @@ declare class TransactionHeaderPopupRelationComponent extends TransactionHeaderP
6092
6100
  handleNavigationClick(nav: string): void;
6093
6101
  handleChangeCustomGroup(group: string): void;
6094
6102
  navigateToRelation(): void;
6095
- private _isAllowedToChangeRelation;
6096
6103
  private _setFirstAddress;
6097
6104
  private _lockRelation;
6098
6105
  static ɵfac: i0.ɵɵFactoryDeclaration<TransactionHeaderPopupRelationComponent, never>;
6099
- static ɵcmp: i0.ɵɵComponentDeclaration<TransactionHeaderPopupRelationComponent, "co-transaction-header-popup-relation", never, { "configNames": { "alias": "configNames"; "required": false; }; "showPrivacy": { "alias": "showPrivacy"; "required": false; }; "showMessageForChangeCustomer": { "alias": "showMessageForChangeCustomer"; "required": false; }; "showInvoiceAddress": { "alias": "showInvoiceAddress"; "required": false; }; "noLockOnCustomerSet": { "alias": "noLockOnCustomerSet"; "required": false; }; }, { "inputChangeForSuggestions": "inputChangeForSuggestions"; "changeCustomerRequested": "changeCustomerRequested"; "deliveryAddressLocalHashChange": "deliveryAddressLocalHashChange"; "invoiceAddressLocalHashChange": "invoiceAddressLocalHashChange"; }, never, never, false, never>;
6106
+ static ɵcmp: i0.ɵɵComponentDeclaration<TransactionHeaderPopupRelationComponent, "co-transaction-header-popup-relation", never, { "configNames": { "alias": "configNames"; "required": false; }; "showPrivacy": { "alias": "showPrivacy"; "required": false; }; "showMessageForChangeCustomer": { "alias": "showMessageForChangeCustomer"; "required": false; }; "showInvoiceAddress": { "alias": "showInvoiceAddress"; "required": false; }; "noLockOnCustomerSet": { "alias": "noLockOnCustomerSet"; "required": false; }; "showChangeOptionWhenCustomerReadonly": { "alias": "showChangeOptionWhenCustomerReadonly"; "required": false; }; }, { "inputChangeForSuggestions": "inputChangeForSuggestions"; "changeCustomerRequested": "changeCustomerRequested"; "deliveryAddressLocalHashChange": "deliveryAddressLocalHashChange"; "invoiceAddressLocalHashChange": "invoiceAddressLocalHashChange"; }, never, never, false, never>;
6100
6107
  }
6101
6108
 
6102
6109
  declare abstract class TransactionFilterPopupHeaderBaseComponent<T extends BusinessObject | number | string | Object> extends TransactionHeaderBaseComponent {
@@ -8165,9 +8172,42 @@ declare class TransactionNavigationButtonListModule {
8165
8172
  static ɵinj: i0.ɵɵInjectorDeclaration<TransactionNavigationButtonListModule>;
8166
8173
  }
8167
8174
 
8175
+ declare class TransactionLineExpectedDeliveryDateButtonComponent extends TransactionLineBaseComponent implements OnInit, OnDestroy {
8176
+ transactionHeaderService: TransactionHeaderService;
8177
+ transactionLineService: TransactionLineService;
8178
+ transactionEventService: TransactionEventService;
8179
+ service: TransactionService;
8180
+ iconCacheService: IconCacheService;
8181
+ transactionScreenConfigurationService: TransactionScreenConfigurationService;
8182
+ protected dictionaryService: DictionaryService;
8183
+ protected imageService: TransactionImageService;
8184
+ protected changeDetector: ChangeDetectorRef;
8185
+ readonly icons: typeof Icon;
8186
+ parentComponent: ElementRef;
8187
+ showClass(): boolean;
8188
+ inputLabel: boolean;
8189
+ showConfirmedDeliveryDateChange: EventEmitter<boolean>;
8190
+ expectedDeliveryDate: Date;
8191
+ private _handled;
8192
+ constructor(transactionHeaderService: TransactionHeaderService, transactionLineService: TransactionLineService, transactionEventService: TransactionEventService, service: TransactionService, iconCacheService: IconCacheService, transactionScreenConfigurationService: TransactionScreenConfigurationService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef);
8193
+ ngOnInit(): void;
8194
+ ngOnDestroy(): void;
8195
+ protected transactionInfoSet(): void;
8196
+ protected transactionLineSet(): void;
8197
+ private _checkConfirmedDeliveryDate;
8198
+ static ɵfac: i0.ɵɵFactoryDeclaration<TransactionLineExpectedDeliveryDateButtonComponent, never>;
8199
+ static ɵcmp: i0.ɵɵComponentDeclaration<TransactionLineExpectedDeliveryDateButtonComponent, "co-transaction-line-expected-delivery-date-button", never, { "inputLabel": { "alias": "inputLabel"; "required": false; }; }, { "showConfirmedDeliveryDateChange": "showConfirmedDeliveryDateChange"; }, never, never, false, never>;
8200
+ }
8201
+
8202
+ declare class TransactionLineExpectedDeliveryDateButtonModule {
8203
+ static ɵfac: i0.ɵɵFactoryDeclaration<TransactionLineExpectedDeliveryDateButtonModule, never>;
8204
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TransactionLineExpectedDeliveryDateButtonModule, [typeof TransactionLineExpectedDeliveryDateButtonComponent], [typeof i2.CommonModule, typeof TransactionButtonModule, typeof TransactionLineLabelModule, typeof PipeModule], [typeof TransactionLineExpectedDeliveryDateButtonComponent]>;
8205
+ static ɵinj: i0.ɵɵInjectorDeclaration<TransactionLineExpectedDeliveryDateButtonModule>;
8206
+ }
8207
+
8168
8208
  declare class TransactionOverviewLineModule {
8169
8209
  static ɵfac: i0.ɵɵFactoryDeclaration<TransactionOverviewLineModule, never>;
8170
- static ɵmod: i0.ɵɵNgModuleDeclaration<TransactionOverviewLineModule, [typeof TransactionOverviewLineComponent], [typeof i2.CommonModule, typeof CoreModule, typeof i3.ButtonModule, typeof i3.InputNumberPickerModule, typeof TransactionArticleTextModule, typeof TransactionArticleTextOverviewModule, typeof PipeModule, typeof TransactionLineActionButtonsModule, typeof i3.IconModule, typeof EditableLabelModule, typeof TransactionLinePriceModule, typeof TransactionLineDescriptionModule, typeof TransactionBaseLineModule, typeof i13.DragDropModule, typeof TransactionLineCommissionButtonModule, typeof TransactionLineWarehouseButtonModule, typeof TransactionLineDeliveryButtonModule, typeof TransactionLineDeliveryDateButtonModule, typeof DialogTransactionLineVatModule, typeof DialogTransactionLineDiscountModule, typeof TransactionLineStatusbarModule, typeof TransactionLineAmountModule, typeof TransactionLineVatButtonModule, typeof TransactionLineDiscountButtonModule, typeof TransactionLineDeliveryDateModule, typeof TransactionMarginInfoLineModule, typeof i3.ObserveVisibilityModule, typeof i3.ScreenConfigurationModule, typeof TransactionLineLabelModule, typeof TransactionLineDirectSellButtonModule, typeof TransactionNavigationButtonListModule], [typeof TransactionOverviewLineComponent]>;
8210
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TransactionOverviewLineModule, [typeof TransactionOverviewLineComponent], [typeof i2.CommonModule, typeof CoreModule, typeof i3.ButtonModule, typeof i3.InputNumberPickerModule, typeof TransactionArticleTextModule, typeof TransactionArticleTextOverviewModule, typeof PipeModule, typeof TransactionLineActionButtonsModule, typeof i3.IconModule, typeof EditableLabelModule, typeof TransactionLinePriceModule, typeof TransactionLineDescriptionModule, typeof TransactionBaseLineModule, typeof i13.DragDropModule, typeof TransactionLineCommissionButtonModule, typeof TransactionLineWarehouseButtonModule, typeof TransactionLineDeliveryButtonModule, typeof TransactionLineDeliveryDateButtonModule, typeof DialogTransactionLineVatModule, typeof DialogTransactionLineDiscountModule, typeof TransactionLineStatusbarModule, typeof TransactionLineAmountModule, typeof TransactionLineVatButtonModule, typeof TransactionLineDiscountButtonModule, typeof TransactionLineDeliveryDateModule, typeof TransactionMarginInfoLineModule, typeof i3.ObserveVisibilityModule, typeof i3.ScreenConfigurationModule, typeof TransactionLineLabelModule, typeof TransactionLineDirectSellButtonModule, typeof TransactionNavigationButtonListModule, typeof TransactionLineExpectedDeliveryDateButtonModule], [typeof TransactionOverviewLineComponent]>;
8171
8211
  static ɵinj: i0.ɵɵInjectorDeclaration<TransactionOverviewLineModule>;
8172
8212
  }
8173
8213
 
@@ -10634,6 +10674,7 @@ declare class DeliveryPlanningMainComponent implements OnInit, OnDestroy {
10634
10674
  private _viewModeService;
10635
10675
  private _transactionConn;
10636
10676
  private _transaction;
10677
+ private _transactionBaseService;
10637
10678
  private _transactionEventService;
10638
10679
  private _changeDetector;
10639
10680
  private _promptService;
@@ -10646,7 +10687,7 @@ declare class DeliveryPlanningMainComponent implements OnInit, OnDestroy {
10646
10687
  set currentStartDate(date: Date);
10647
10688
  fullscreenEvent: EventEmitter<void>;
10648
10689
  showClass(): boolean;
10649
- constructor(_deliveryPlanningService: DeliveryPlanningService, _viewModeService: SearchViewModeService, _transactionConn: TransactionConnectorService, _transaction: TransactionService, _transactionEventService: TransactionEventService, _changeDetector: ChangeDetectorRef, _promptService: PromptService);
10690
+ constructor(_deliveryPlanningService: DeliveryPlanningService, _viewModeService: SearchViewModeService, _transactionConn: TransactionConnectorService, _transaction: TransactionService, _transactionBaseService: TransactionBaseService, _transactionEventService: TransactionEventService, _changeDetector: ChangeDetectorRef, _promptService: PromptService);
10650
10691
  ngOnInit(): Promise<void>;
10651
10692
  ngOnDestroy(): void;
10652
10693
  planningChanged(planning: Planning): Promise<void>;
@@ -14094,7 +14135,7 @@ declare class TransactionHeaderRelationComponent extends TransactionHeaderBaseCo
14094
14135
  typeOfCustomerFullObject(relation: Relation): boolean;
14095
14136
  get relationAsCustomer(): CustomerFullObject;
14096
14137
  contactPersonForId(relationId: number): RelationContactLink;
14097
- determineDontAllowPopup(): boolean;
14138
+ isPopupBlocked(): boolean;
14098
14139
  handleHeaderClick(): void;
14099
14140
  protected relationSet(): void;
14100
14141
  protected transactionInfoSet(): void;
@@ -1,3 +1,3 @@
1
- $cc-voucher-code-pending-dialog-width: 600px !default;
1
+ $cc-voucher-code-pending-dialog-width: 460px !default;
2
2
  $cc-voucher-code-pending-dialog-title-gap: 10px !default;
3
3
  $cc-voucher-code-pending-dialog-co-input-margin: 5px 0 15px 0 !default;
@@ -85,12 +85,31 @@
85
85
  }
86
86
 
87
87
  .co-transaction-cash-register-payment-voucher-popup {
88
- .co-dialog:not(.is-mobile) {
88
+ .co-dialog {
89
89
  .co-dialog-wrapper {
90
- width: 256px;
91
- height: 232px;
92
- min-width: 256px;
93
- min-height: 232px;
90
+ width: $tp-transaction-cash-register-payment-voucher-dialog-width;
91
+ max-width: 100%;
92
+ height: auto;
93
+ min-width: $tp-transaction-cash-register-payment-voucher-dialog-min-width;
94
+ min-height: $tp-transaction-cash-register-payment-voucher-dialog-min-height;
95
+ }
96
+ .co-dialog-header-title-icon {
97
+ display: flex;
98
+ align-items: center;
99
+ gap: $tp-transaction-cash-register-payment-voucher-dialog-title-gap;
100
+ }
101
+ .dialog-content {
102
+ .row {
103
+ display: flex;
104
+ align-items: center;
105
+ gap: $tp-transaction-cash-register-payment-voucher-dialog-row-gap;
106
+ .bold {
107
+ min-width: $tp-transaction-cash-register-payment-voucher-dialog-row-bold-width;
108
+ }
109
+ }
110
+ .voucher-popup-body-wrapper {
111
+ margin: $tp-transaction-cash-register-payment-voucher-dialog-row-body-margin;
112
+ }
94
113
  }
95
114
  }
96
115
  }
@@ -38,9 +38,15 @@ $tp-transaction-cash-register-payment-dialog-button-border-color: #0084de !defau
38
38
  $tp-transaction-cash-register-payment-dialog-button-icon-color: #0084de !default;
39
39
  $tp-transaction-cash-register-payment-dialog-receipt-button-min-width: 135px !default;
40
40
  $tp-transaction-cash-register-color-action: #1A73E8;
41
-
42
41
  $tp-transaction-cash-register-payment-dialog-button-border: 2px solid #0084de !default;
43
42
  $tp-transaction-cash-register-payment-dialog-button-border-disabled: 2px solid rgba(#0084de, 0.5) !default;
43
+ $tp-transaction-cash-register-payment-dialog-payment-wrapper-width: 600px !default;
44
44
 
45
+ $tp-transaction-cash-register-payment-voucher-dialog-width: 460px !default;
46
+ $tp-transaction-cash-register-payment-voucher-dialog-min-width: 256px !default;
47
+ $tp-transaction-cash-register-payment-voucher-dialog-min-height: 232px !default;
48
+ $tp-transaction-cash-register-payment-voucher-dialog-title-gap: 10px !default;
49
+ $tp-transaction-cash-register-payment-voucher-dialog-row-gap: 5px !default;
50
+ $tp-transaction-cash-register-payment-voucher-dialog-row-bold-width: 120px !default;
51
+ $tp-transaction-cash-register-payment-voucher-dialog-row-body-margin: 2px 0 0 0 !default;
45
52
 
46
- $tp-transaction-cash-register-payment-dialog-payment-wrapper-width: 600px !default;
@@ -133,6 +133,7 @@
133
133
  .title {
134
134
  font-size: $tp-transaction-header-popup-category-title-font-size;
135
135
  text-align: center;
136
+ white-space: nowrap;
136
137
  }
137
138
  }
138
139
 
@@ -578,6 +579,12 @@
578
579
  flex: 1;
579
580
  }
580
581
  }
582
+
583
+ .co-input-text.disabled {
584
+ opacity: 0.5;
585
+ pointer-events: none;
586
+ cursor: default;
587
+ }
581
588
  }
582
589
 
583
590
  .drop-shipment-dialog {
@@ -24,12 +24,15 @@
24
24
  overflow: auto;
25
25
  }
26
26
  .transaction-tile-wrapper {
27
- width: 40%;
28
- height: 160px;
29
- padding: 7.5px 10px;
30
- box-shadow: 0 2px 4px 0 #0000005c;
31
- border-left: 4px solid #45b8bf;
32
- border-radius: 5px;
27
+ width: $tp-co-transaction-invoice-check-tile-width;
28
+ max-width: $tp-co-transaction-invoice-check-tile-max-width;
29
+ height: $tp-co-transaction-invoice-check-tile-height;
30
+ padding: $tp-co-transaction-invoice-check-tile-padding;
31
+ box-shadow: $tp-co-transaction-invoice-check-tile-box-shadow;
32
+ border-width: $tp-co-transaction-invoice-check-tile-border-width;
33
+ border-style: solid;
34
+ border-color: $tp-co-transaction-invoice-check-tile-border-color;
35
+ border-radius: $tp-co-transaction-invoice-check-tile-border-radius;
33
36
  display: flex;
34
37
  flex-direction: column;
35
38
  .tile {
@@ -48,6 +51,10 @@
48
51
  display: flex;
49
52
  flex-direction: column;
50
53
  gap: 5px;
54
+ .co-icon {
55
+ width: $tp-co-transaction-invoice-check-tile-icon-width;
56
+ height: $tp-co-transaction-invoice-check-tile-icon-height;
57
+ }
51
58
  }
52
59
  .tile-footer {
53
60
  align-items: center;
@@ -60,8 +67,13 @@
60
67
  align-items: center;
61
68
  gap: 10px;
62
69
  .co-icon {
63
- width: 22px;
64
- height: 22px;
70
+ width: $tp-co-transaction-invoice-check-tile-icon-width;
71
+ height: $tp-co-transaction-invoice-check-tile-icon-height;
72
+ }
73
+ }
74
+ .value {
75
+ span {
76
+ font-size: $tp-co-transaction-invoice-check-tile-footer-font-size;
65
77
  }
66
78
  }
67
79
  }
@@ -0,0 +1,11 @@
1
+ $tp-co-transaction-invoice-check-tile-width: 40% !default;
2
+ $tp-co-transaction-invoice-check-tile-max-width: 300px !default;
3
+ $tp-co-transaction-invoice-check-tile-height: 110px !default;
4
+ $tp-co-transaction-invoice-check-tile-padding: 7.5px 10px !default;
5
+ $tp-co-transaction-invoice-check-tile-box-shadow: 0 2px 4px 0 #0000005c !default;
6
+ $tp-co-transaction-invoice-check-tile-border-width: 0 0 0 4px !default;
7
+ $tp-co-transaction-invoice-check-tile-border-color: #45b8bf !default;
8
+ $tp-co-transaction-invoice-check-tile-border-radius: 5px !default;
9
+ $tp-co-transaction-invoice-check-tile-icon-width: 16px !default;
10
+ $tp-co-transaction-invoice-check-tile-icon-height: 16px !default;
11
+ $tp-co-transaction-invoice-check-tile-footer-font-size: 10px !default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/transaction",
3
- "version": "262.1.29",
3
+ "version": "262.1.31",
4
4
  "description": "Colijn IT transaction module for Angular 20",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",
@@ -13,7 +13,7 @@
13
13
  "@colijnit/catalog": ">=262.1.0",
14
14
  "@colijnit/corecomponents_v12": ">=262.1.10",
15
15
  "@colijnit/ioneconnector": ">=262.1.0",
16
- "@colijnit/mainapi": ">=262.1.8",
16
+ "@colijnit/mainapi": ">=262.1.11",
17
17
  "@colijnit/product": ">=262.1.0",
18
18
  "@colijnit/relation": ">=262.1.0",
19
19
  "@colijnit/relationapi": ">=262.1.0",