@colijnit/transaction 300.1.31 → 300.1.32

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
@@ -301,6 +301,7 @@ import { UpsertTransactionStandardTextRequest } from '@colijnit/transactionapi/b
301
301
  import { ChangeHeaderExtraDocRequest } from '@colijnit/transactionapi/build/model/change-header-extra-doc-request';
302
302
  import { BatchDownloadInfo } from '@colijnit/transactionapi/build/model/batch-download-info.bo';
303
303
  import { FileDownloadToken } from '@colijnit/transactionapi/build/model/file-download-token.bo';
304
+ import { AvailableWarehouseStockPerBatch } from '@colijnit/transactionapi/build/model/available-warehouse-stock-per-batch.bo';
304
305
  import { BusinessObjectIDType } from '@colijnit/ioneconnector/build/type/business-object-id-type';
305
306
  import { RelationKind as RelationKind$1 } from '@colijnit/articleapi/build/enum/relation-kind.enum';
306
307
  import { Relation } from '@colijnit/relationapi/build/model/relation.bo';
@@ -1537,6 +1538,7 @@ declare class TransactionConnectorAdapterService {
1537
1538
  createQRCode(width: number, height: number, data: string): Promise<string>;
1538
1539
  roundUp(amount: number, paymentMethodCode: string, showLoader?: boolean): Promise<number>;
1539
1540
  createPublicQuote(request: CreatePublicQuoteRequest): Promise<number>;
1541
+ getAvailableWarehouseStockPerBatchNrByGoodIdAndBranch(goodId: number, branchNr: string): Promise<AvailableWarehouseStockPerBatch[]>;
1540
1542
  getCreatePublicQuoteResponse(request: CreatePublicQuoteRequest): Promise<DataServiceResponseData>;
1541
1543
  private _openPdfContent;
1542
1544
  private _handleLocalPrintFile;
@@ -2031,6 +2033,7 @@ declare class TransactionConnectorService {
2031
2033
  roundUp(amount: number, paymentMethodCode: string, showLoader?: boolean): Promise<number>;
2032
2034
  createPublicQuote(request: CreatePublicQuoteRequest): Promise<number>;
2033
2035
  getCreatePublicQuoteResponse(request: CreatePublicQuoteRequest): Promise<DataServiceResponseData>;
2036
+ getAvailableWarehouseStockPerBatchNrByGoodIdAndBranch(goodId: number, branchNr: string): Promise<AvailableWarehouseStockPerBatch[]>;
2034
2037
  static ɵfac: i0.ɵɵFactoryDeclaration<TransactionConnectorService, never>;
2035
2038
  static ɵprov: i0.ɵɵInjectableDeclaration<TransactionConnectorService>;
2036
2039
  }
@@ -2917,6 +2920,7 @@ declare class TransactionService extends PendingReasonService {
2917
2920
  createQRCode(width: number, height: number, data: string): Promise<string>;
2918
2921
  roundUp(amount: number, paymentMethodCode: string, showLoader?: boolean): Promise<number>;
2919
2922
  getTitles(): Promise<Title[]>;
2923
+ getAvailableWarehouseStockPerBatchNrByGoodIdAndBranch(goodId: number, branchNr: string): Promise<AvailableWarehouseStockPerBatch[]>;
2920
2924
  /**
2921
2925
  * Is getting called from rememberCurrentTransaction which is called twice, once from getTransactionHeaderByNrAndKind and once from getTransactionInfoByNrAndKind
2922
2926
  * Use fromHeader parameter to distinguish between the two calls
@@ -10799,6 +10803,7 @@ declare class TransactionLineSalesAllocationComponent extends TransactionLineBas
10799
10803
  constructor(transactionHeaderService: TransactionHeaderService, transactionLineService: TransactionLineService, transactionEventService: TransactionEventService, service: TransactionService, iconCacheService: IconCacheService, transactionScreenConfigurationService: TransactionScreenConfigurationService, dictionaryService: DictionaryService, imageService: TransactionImageService, changeDetector: ChangeDetectorRef, _formMaster: FormMasterService, _dialogService: TransactionDialogService);
10800
10804
  ngOnInit(): void;
10801
10805
  ngOnDestroy(): void;
10806
+ handleLineClicked(line: AvailableWarehouseStockPerBatch): void;
10802
10807
  submit(): boolean;
10803
10808
  getGoodsAllocationHistory(): Promise<void>;
10804
10809
  handleSaveDetailsEdit(): void;
@@ -10809,9 +10814,31 @@ declare class TransactionLineSalesAllocationComponent extends TransactionLineBas
10809
10814
  static ɵcmp: i0.ɵɵComponentDeclaration<TransactionLineSalesAllocationComponent, "co-transaction-line-sales-allocation", never, {}, {}, never, never, false, never>;
10810
10815
  }
10811
10816
 
10817
+ declare class TransactionWarehouseStockBatchAmountComponent extends TransactionLineBaseComponent {
10818
+ readonly SimpleGridColumnTemplateType: typeof SimpleGridColumnTemplateType;
10819
+ set stockComparisonAmount(amount: number);
10820
+ get stockComparisonAmount(): number;
10821
+ lineClicked: EventEmitter<AvailableWarehouseStockPerBatch>;
10822
+ showClass(): boolean;
10823
+ availableWarehouseStockPerBatchCollection: AvailableWarehouseStockPerBatch[];
10824
+ private _stockComparisonAmount;
10825
+ handleLineClicked(line: any): void;
10826
+ checkWarehouseAndAmount: (row: AvailableWarehouseStockPerBatch) => string[];
10827
+ protected transactionLineSet(): void;
10828
+ private _forceGridRedraw;
10829
+ static ɵfac: i0.ɵɵFactoryDeclaration<TransactionWarehouseStockBatchAmountComponent, never>;
10830
+ static ɵcmp: i0.ɵɵComponentDeclaration<TransactionWarehouseStockBatchAmountComponent, "co-transaction-warehouse-batch-amount", never, { "stockComparisonAmount": { "alias": "stockComparisonAmount"; "required": false; }; }, { "lineClicked": "lineClicked"; }, never, never, false, never>;
10831
+ }
10832
+
10833
+ declare class TransactionWarehouseStockBatchAmountModule {
10834
+ static ɵfac: i0.ɵɵFactoryDeclaration<TransactionWarehouseStockBatchAmountModule, never>;
10835
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TransactionWarehouseStockBatchAmountModule, [typeof TransactionWarehouseStockBatchAmountComponent], [typeof i3.SimpleGridModule, typeof i2.DatePipe, typeof PipeModule], [typeof TransactionWarehouseStockBatchAmountComponent]>;
10836
+ static ɵinj: i0.ɵɵInjectorDeclaration<TransactionWarehouseStockBatchAmountModule>;
10837
+ }
10838
+
10812
10839
  declare class TransactionLineSalesAllocationModule {
10813
10840
  static ɵfac: i0.ɵɵFactoryDeclaration<TransactionLineSalesAllocationModule, never>;
10814
- static ɵmod: i0.ɵɵNgModuleDeclaration<TransactionLineSalesAllocationModule, [typeof TransactionLineSalesAllocationComponent], [typeof i2.CommonModule, typeof i3.FormModule, typeof PipeModule, typeof i3.InputTextModule, typeof i3.IconModule, typeof TransactionAllocateGoodsHistoryModule, typeof i3.InputNumberPickerModule, typeof TransactionButtonModule, typeof i3.TooltipDirectiveModule, typeof i3.ButtonModule, typeof TransactionLineWarehouseLocationButtonModule, typeof TransactionLineLabelModule], [typeof TransactionLineSalesAllocationComponent]>;
10841
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TransactionLineSalesAllocationModule, [typeof TransactionLineSalesAllocationComponent], [typeof i2.CommonModule, typeof i3.FormModule, typeof PipeModule, typeof i3.InputTextModule, typeof i3.IconModule, typeof TransactionAllocateGoodsHistoryModule, typeof i3.InputNumberPickerModule, typeof TransactionButtonModule, typeof i3.TooltipDirectiveModule, typeof i3.ButtonModule, typeof TransactionLineWarehouseLocationButtonModule, typeof TransactionLineLabelModule, typeof TransactionWarehouseStockBatchAmountModule], [typeof TransactionLineSalesAllocationComponent]>;
10815
10842
  static ɵinj: i0.ɵɵInjectorDeclaration<TransactionLineSalesAllocationModule>;
10816
10843
  }
10817
10844
 
@@ -13802,9 +13829,23 @@ declare class TransactionLineSidePanelInternalDeliveryModule {
13802
13829
  static ɵinj: i0.ɵɵInjectorDeclaration<TransactionLineSidePanelInternalDeliveryModule>;
13803
13830
  }
13804
13831
 
13832
+ declare class TransactionLineSidePanelServiceComponent extends TransactionLineBaseComponent {
13833
+ readonly categories: typeof TransactionTypeCategory;
13834
+ categoryType: TransactionTypeCategory;
13835
+ showClass(): boolean;
13836
+ static ɵfac: i0.ɵɵFactoryDeclaration<TransactionLineSidePanelServiceComponent, never>;
13837
+ static ɵcmp: i0.ɵɵComponentDeclaration<TransactionLineSidePanelServiceComponent, "co-transaction-line-side-panel-service", never, { "categoryType": { "alias": "categoryType"; "required": false; }; }, {}, never, never, false, never>;
13838
+ }
13839
+
13840
+ declare class TransactionLineSidePanelServiceModule {
13841
+ static ɵfac: i0.ɵɵFactoryDeclaration<TransactionLineSidePanelServiceModule, never>;
13842
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TransactionLineSidePanelServiceModule, [typeof TransactionLineSidePanelServiceComponent], [typeof i2.CommonModule, typeof i3.ButtonModule, typeof PipeModule, typeof i3.IconModule, typeof TransactionLineSidePanelSalesPurchaseModule, typeof TransactionLineSalesAllocationModule, typeof TransactionLineSalesInvoiceModule, typeof TransactionLineSalesDeliveryModule, typeof TransactionLineSidePanelToBePickedModule, typeof TransactionLineSidePanelPickedModule, typeof TransactionLineSidePanelDefaultModule], [typeof TransactionLineSidePanelServiceComponent]>;
13843
+ static ɵinj: i0.ɵɵInjectorDeclaration<TransactionLineSidePanelServiceModule>;
13844
+ }
13845
+
13805
13846
  declare class TransactionLineSidePanelModule {
13806
13847
  static ɵfac: i0.ɵɵFactoryDeclaration<TransactionLineSidePanelModule, never>;
13807
- static ɵmod: i0.ɵɵNgModuleDeclaration<TransactionLineSidePanelModule, [typeof TransactionLineSidePanelComponent], [typeof i2.CommonModule, typeof CoreModule, typeof TransactionLineSidePanelDefaultModule, typeof TransactionReceivingGoodsHistoryModule, typeof PipeModule, typeof i3.ButtonModule, typeof TransactionButtonBarModule, typeof i3.PriceDisplayPipeModule, typeof TransactionConfirmationHistoryModule, typeof TransactionLineSidePanelPurchaseModule, typeof TransactionConfirmationHistoryModule, typeof TransactionLineSidePanelSalesModule, typeof TransactionLineSidePanelArticleDetailsModule, typeof TransactionLineSidePanelInternalDeliveryModule], [typeof TransactionLineSidePanelComponent]>;
13848
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TransactionLineSidePanelModule, [typeof TransactionLineSidePanelComponent], [typeof i2.CommonModule, typeof CoreModule, typeof TransactionLineSidePanelDefaultModule, typeof TransactionReceivingGoodsHistoryModule, typeof PipeModule, typeof i3.ButtonModule, typeof TransactionButtonBarModule, typeof i3.PriceDisplayPipeModule, typeof TransactionConfirmationHistoryModule, typeof TransactionLineSidePanelPurchaseModule, typeof TransactionConfirmationHistoryModule, typeof TransactionLineSidePanelSalesModule, typeof TransactionLineSidePanelArticleDetailsModule, typeof TransactionLineSidePanelInternalDeliveryModule, typeof TransactionLineSidePanelServiceModule], [typeof TransactionLineSidePanelComponent]>;
13808
13849
  static ɵinj: i0.ɵɵInjectorDeclaration<TransactionLineSidePanelModule>;
13809
13850
  }
13810
13851
 
@@ -153,7 +153,7 @@
153
153
  .co-collapsible {
154
154
  padding: $tp-transaction-line-side-forms-collapsible-padding;
155
155
  }
156
- .co-form {
156
+ .form-and-buttons-form {
157
157
  display: flex;
158
158
  flex-direction: column;
159
159
  gap: $tp-transaction-line-side-forms-co-form-gap;
@@ -0,0 +1,4 @@
1
+ @include export-module('cc-transaction-line-side-panel-service-layout') {
2
+ .co-transaction-line-side-panel-service {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @include export-module('cc-transaction-line-side-panel-service-theme') {
2
+ .co-transaction-line-side-panel-service {
3
+ }
4
+ }
@@ -0,0 +1,5 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
5
+ @import "../../transaction-line-sales-allocation/style/material";
@@ -0,0 +1,27 @@
1
+ @include export-module('co-transaction-warehouse-batch-amount-layout') {
2
+ .co-transaction-warehouse-batch-amount {
3
+ width: 100%;
4
+ padding: 15px;
5
+
6
+ .simple-grid-row.correct-warehouse-amount {
7
+ background-color: $co-transaction-warehouse-batch-amount-color-warehouse-amount;
8
+ .simple-grid-column-cell-field {
9
+ background-color: $co-transaction-warehouse-batch-amount-color-warehouse-amount;
10
+ }
11
+ }
12
+
13
+ .simple-grid-row.correct-amount {
14
+ background-color: $co-transaction-warehouse-batch-amount-color-amount;
15
+ .simple-grid-column-cell-field {
16
+ background-color: $co-transaction-warehouse-batch-amount-color-amount;
17
+ }
18
+ }
19
+
20
+ .simple-grid-row.incorrect-amount {
21
+ background-color: $co-transaction-warehouse-batch-amount-color-incorrect-amount;
22
+ .simple-grid-column-cell-field {
23
+ background-color: $co-transaction-warehouse-batch-amount-color-incorrect-amount;
24
+ }
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,4 @@
1
+ $co-transaction-warehouse-batch-amount-color-warehouse-amount: #37c949 !default;
2
+ $co-transaction-warehouse-batch-amount-color-amount: #DF7C2A !default;
3
+ $co-transaction-warehouse-batch-amount-color-incorrect-amount: #FF4141 !default;
4
+ $co-transaction-warehouse-batch-amount-grid-cell-border-width: 2px;
@@ -0,0 +1,4 @@
1
+ @include export-module('co-transaction-warehouse-batch-amount-theme') {
2
+ .co-transaction-warehouse-batch-amount {
3
+ }
4
+ }
@@ -0,0 +1,4 @@
1
+ @import "../../../style/mixin";
2
+ @import "./_material-definition";
3
+ @import "./_layout";
4
+ @import "./_theme";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/transaction",
3
- "version": "300.1.31",
3
+ "version": "300.1.32",
4
4
  "description": "Colijn IT transaction module for Angular 20",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",
@@ -19,7 +19,7 @@
19
19
  "@colijnit/relationapi": ">=300.1.1",
20
20
  "@colijnit/sharedapi": ">=1.0.20",
21
21
  "@colijnit/sharedcomponents": ">=300.1.13",
22
- "@colijnit/transactionapi": ">=300.1.14"
22
+ "@colijnit/transactionapi": ">=300.1.15"
23
23
  },
24
24
  "dependencies": {
25
25
  "tslib": "^2.8.1"