@colijnit/transaction 258.1.33 → 258.1.35
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/bundles/colijnit-transaction.umd.js +79 -79
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/core/base/components/transaction-header-block/transaction-header-block.component.js +2 -2
- package/esm2015/lib/component/transaction-header/transaction-header/transaction-header.component.js +5 -4
- package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +3 -4
- package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.js +7 -8
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +15 -9
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.js +26 -18
- package/esm2015/lib/component/transaction-header/transaction-header-relation/transaction-header-relation.component.js +9 -5
- package/esm2015/lib/component/transaction-line/transaction-line-toolbar/transaction-line-toolbar.component.js +32 -31
- package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line.component.js +3 -4
- package/esm2015/lib/component/transaction-navigation-button-list/transaction-navigation-button-list.component.js +4 -1
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.js +2 -2
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.js +25 -23
- package/esm2015/lib/enum/icon.enum.js +2 -1
- package/esm2015/lib/model/icon-svg.js +2 -1
- package/esm2015/lib/service/transaction-payment.service.js +3 -14
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +128 -114
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/animated-checkbox/style/_layout.scss +2 -2
- package/lib/component/animated-checkbox/style/_material-definition.scss +2 -2
- package/lib/component/core/base/components/transaction-header-block/style/_material-definition.scss +2 -2
- package/lib/component/quick-send-button/style/_material-definition.scss +3 -3
- package/lib/component/transaction-button-bar/style/_layout.scss +1 -1
- package/lib/component/transaction-button-bar/style/_material-definition.scss +1 -1
- package/lib/component/transaction-header/style/_material-definition.scss +1 -1
- package/lib/component/transaction-header/transaction-header/style/_layout.scss +34 -9
- package/lib/component/transaction-header/transaction-header/style/_material-definition.scss +1 -1
- package/lib/component/transaction-header/transaction-header/transaction-header.component.d.ts +1 -0
- package/lib/component/transaction-header/transaction-header-delivery/style/_layout.scss +3 -1
- package/lib/component/transaction-header/transaction-header-order/style/_layout.scss +5 -0
- package/lib/component/transaction-header/transaction-header-payment/style/_layout.scss +6 -2
- package/lib/component/transaction-header/transaction-header-popup/style/_material-definition.scss +4 -4
- package/lib/component/transaction-header/transaction-header-relation/style/_layout.scss +6 -0
- package/lib/component/transaction-header/transaction-header-relation/transaction-header-relation.component.d.ts +1 -0
- package/lib/component/transaction-internal/style/_layout.scss +2 -1
- package/lib/component/transaction-line/transaction-line/style/_layout.scss +0 -3
- package/lib/component/transaction-line/transaction-line/style/_material-definition.scss +3 -3
- package/lib/component/transaction-line/transaction-line-toolbar/style/_layout.scss +8 -1
- package/lib/component/transaction-line/transaction-line-toolbar/style/_material-definition.scss +1 -1
- package/lib/component/transaction-line/transaction-purchase-line/style/_layout.scss +11 -0
- package/lib/component/transaction-line-image-and-description/style/_material-definition.scss +1 -1
- package/lib/component/transaction-quick-access/transaction-quick-access-order-purchase/style/_layout.scss +1 -1
- package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/style/_layout.scss +5 -0
- package/lib/enum/icon.enum.d.ts +1 -0
- package/lib/service/transaction-payment.service.d.ts +0 -1
- package/package.json +1 -1
|
@@ -247,7 +247,6 @@ import { QuantityInHistoricState } from '@colijnit/transactionapi/build/enum/qua
|
|
|
247
247
|
import { DoPaymentRequest } from '@colijnit/transactionapi/build/model/do-payment-request';
|
|
248
248
|
import { IonePaymentStatusCode } from '@colijnit/transactionapi/build/enum/ione-payment-status-code.enum';
|
|
249
249
|
import { CashDrawersRequest } from '@colijnit/transactionapi/build/model/cash-drawers-request';
|
|
250
|
-
import { CalculateAmountToPayRequest } from '@colijnit/transactionapi/build/model/calculate-amount-to-pay-request';
|
|
251
250
|
import { GenderType } from '@colijnit/relationapi/build/enum/gender-type.enum';
|
|
252
251
|
import { ContactOption } from '@colijnit/relationapi/build/model/contact-option.bo';
|
|
253
252
|
import { BusinessObjectUtils } from '@colijnit/ioneconnector/build/utils/business-object-utils';
|
|
@@ -270,6 +269,7 @@ import { TrueFalseDbType } from '@colijnit/mainapi/build/enum/true-false-db-type
|
|
|
270
269
|
import { OrderLineSetDTO } from '@colijnit/transactionapi/build/model/order-line-set-dto';
|
|
271
270
|
import { TransactionAddOrderLineSetTextLineRequest } from '@colijnit/transactionapi/build/model/transaction-add-order-line-set-text-line-request';
|
|
272
271
|
import { TransactionLineCopyRequest } from '@colijnit/transactionapi/build/model/transaction-line-copy-request.bo';
|
|
272
|
+
import { CalculateAmountToPayRequest } from '@colijnit/transactionapi/build/model/calculate-amount-to-pay-request';
|
|
273
273
|
import { TransactionLspInformationRequest } from '@colijnit/transactionapi/build/model/transaction-lsp-information-request';
|
|
274
274
|
import { TransactionLspRequestLine } from '@colijnit/transactionapi/build/model/transaction-lsp-request-line.bo';
|
|
275
275
|
import { ExternalCatalogAddArticleRequest } from '@colijnit/transactionapi/build/model/external-catalog-add-article-request';
|
|
@@ -294,8 +294,8 @@ class Version {
|
|
|
294
294
|
constructor() {
|
|
295
295
|
this.name = "@colijnit/transaction";
|
|
296
296
|
this.description = "Colijn IT transaction package";
|
|
297
|
-
this.symVer = "258.1.
|
|
298
|
-
this.publishDate = "
|
|
297
|
+
this.symVer = "258.1.35";
|
|
298
|
+
this.publishDate = "19-6-2025 10:49:58";
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
|
|
@@ -605,6 +605,7 @@ var Icon;
|
|
|
605
605
|
Icon["ShelvesOpen"] = "shelves_open";
|
|
606
606
|
Icon["ShelvesRegular"] = "shelves_regular";
|
|
607
607
|
Icon["ShelvesSolid"] = "shelves_solid";
|
|
608
|
+
Icon["SidebarFlipRegular"] = "sidebar_flip_regular";
|
|
608
609
|
Icon["SidePanel"] = "side_panel";
|
|
609
610
|
Icon["SlidersUpRegular"] = "sliders_up_regular";
|
|
610
611
|
Icon["SlideIn"] = "slide_in";
|
|
@@ -770,6 +771,7 @@ const IconSvg = {
|
|
|
770
771
|
"shelves_open": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M32 0V16 160H608V16 0h32V16 160v16 16V416v16 16 48 16H608V496 448H32v48 16H0V496 448 432 416 192 176 160 16 0H32zm0 416H608V192H32V416zM448 32H384V96h64V32zM384 0h64 32V32 96v32H448 384 352V96 32 0h32zM128 288v64h64V288H128zM96 256h32 64 32v32 64 32H192 128 96V352 288 256zm192 32v64h64V288H288zm-32-32h32 64 32v32 64 32H352 288 256V352 288 256z\"/></svg>",
|
|
771
772
|
"shelves_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M24 0C37.3 0 48 10.7 48 24V160H592V24c0-13.3 10.7-24 24-24s24 10.7 24 24V184 440v48c0 13.3-10.7 24-24 24s-24-10.7-24-24V464H48v24c0 13.3-10.7 24-24 24s-24-10.7-24-24V440 184 24C0 10.7 10.7 0 24 0zM48 416H592V208H48V416zM352 32c0-17.7 14.3-32 32-32h64c17.7 0 32 14.3 32 32V96c0 17.7-14.3 32-32 32H384c-17.7 0-32-14.3-32-32V32zM128 256h64c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32V288c0-17.7 14.3-32 32-32zm160 0h64c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32H288c-17.7 0-32-14.3-32-32V288c0-17.7 14.3-32 32-32z\"/></svg>",
|
|
772
773
|
"shelves_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 512\"><path d=\"M608 0c-17.6 0-32 14.4-32 31.1V160H64V31.1C64 14.4 49.6 0 32 0S0 14.4 0 31.1v480h64v-32h512v32h64v-480C640 14.4 625.6 0 608 0zM576 416H64V224h512V416zM368 128h96C472.8 128 480 120.8 480 112v-96C480 7.25 472.8 0 464 0h-96C359.2 0 352 7.25 352 16v96C352 120.8 359.2 128 368 128zM112 384h96C216.8 384 224 376.8 224 368v-96C224 263.2 216.8 256 208 256h-96C103.2 256 96 263.2 96 272v96C96 376.8 103.2 384 112 384zM272 384h96c8.75 0 16-7.25 16-16v-96C384 263.2 376.8 256 368 256h-96C263.2 256 256 263.2 256 272v96C256 376.8 263.2 384 272 384z\"/></svg>",
|
|
774
|
+
"sidebar_flip_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M288 80l0 352L64 432c-8.8 0-16-7.2-16-16L48 96c0-8.8 7.2-16 16-16l224 0zM512 96c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320zm-64 24c0 13.3-10.7 24-24 24l-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24zm-24 72c13.3 0 24 10.7 24 24s-10.7 24-24 24l-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0zm24 120c0 13.3-10.7 24-24 24l-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24z\"/></svg>",
|
|
773
775
|
"side_panel": "<svg width=\"47px\" height=\"43px\" viewBox=\"0 0 47 43\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><defs><image width=\"47\" height=\"43\" xlink:href=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC8AAAArCAYAAADottG6AAAABHNCSVQICAgIfAhkiAAAAHtJREFUWIXt18EJwCAQAEENKSNv60gVgVQYSBWpw3f6OHvQx3Kw8xcX0QNrRERJaqMDVhhPMZ5iPMV4ivEU4ynGU/bZhb3/5Xm/pc3v6yytHdPrq58RiPEUHywl9bUxnuKDpaS+NsZTUsennjapT95RSTGeYjzFeErq+AEBrixGEVJ5mAAAAABJRU5ErkJggg==\" /></defs><use xlink:href=\"#img_1\" fill=\"#FFFFFF\" stroke=\"none\" /></svg>",
|
|
774
776
|
"sliders_up_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M96 0c13.3 0 24 10.7 24 24l0 59.7c32.5 10.2 56 40.5 56 76.3s-23.5 66.1-56 76.3L120 488c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-251.7C39.5 226.1 16 195.8 16 160s23.5-66.1 56-76.3L72 24C72 10.7 82.7 0 96 0zm0 192a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM256 384a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm80-32c0 35.8-23.5 66.1-56 76.3l0 59.7c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-59.7c-32.5-10.2-56-40.5-56-76.3s23.5-66.1 56-76.3L232 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 251.7c32.5 10.2 56 40.5 56 76.3zM448 192a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm-8 76.3L440 488c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-219.7c-32.5-10.2-56-40.5-56-76.3s23.5-66.1 56-76.3L392 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 91.7c32.5 10.2 56 40.5 56 76.3s-23.5 66.1-56 76.3z\"/></svg>",
|
|
775
777
|
"slide_in": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><path d=\"M2,2.17H28V28.17H2V2.17Zm24.76,1.24H3.24V26.93H26.76V3.4Z\" fill=\"#484f60\"/><polygon points=\"23.71 13.42 18.41 13.42 18.41 10.43 14.12 14.72 18.41 19.01 18.41 16.02 23.71 16.02 23.71 13.42\" fill=\"#484f60\"/><rect x=\"2\" y=\"2.17\" width=\"9\" height=\"26\" fill=\"#484f60\"/></g></g></svg>",
|
|
@@ -20199,7 +20201,7 @@ class TransactionQuickAccessOrderConfirmationComponent extends TransactionHeader
|
|
|
20199
20201
|
details.lineNumber = line.lineNr;
|
|
20200
20202
|
details.amountConfirmed = line.quantityPurchaseToConfirm ? +line.quantityPurchaseToConfirm : line.amount;
|
|
20201
20203
|
details.confirmedDate = line.purchasePortalLine.deliveryDateConfirmed ? new Date(line.purchasePortalLine.deliveryDateConfirmed) : this.purchaseOrderConfirmation.confirmationDate;
|
|
20202
|
-
details.confirmedPrice =
|
|
20204
|
+
details.confirmedPrice = line.purchasePortalLine.confirmedPrice ? +line.purchasePortalLine.confirmedPrice : calculatedConfirmedPrice;
|
|
20203
20205
|
details.articleNoSupplier = line.purchasePortalLine.articleNoSupplier;
|
|
20204
20206
|
return details;
|
|
20205
20207
|
});
|
|
@@ -20625,14 +20627,30 @@ TransactionQuickAccessReceivedGoodsComponent.decorators = [
|
|
|
20625
20627
|
template: `
|
|
20626
20628
|
<div class="quick-access-wrapper" *ngIf="!hideQuickAccessContent">
|
|
20627
20629
|
<div class="sub-section">
|
|
20628
|
-
<
|
|
20629
|
-
|
|
20630
|
-
|
|
20631
|
-
|
|
20632
|
-
|
|
20633
|
-
|
|
20634
|
-
|
|
20635
|
-
|
|
20630
|
+
<div class="sub-section-input">
|
|
20631
|
+
<co-input-date
|
|
20632
|
+
[placeholder]="'RECEIVED_DATE' | localize"
|
|
20633
|
+
[(model)]="commitDate"
|
|
20634
|
+
></co-input-date>
|
|
20635
|
+
<co-input-checkbox
|
|
20636
|
+
class="checkbox-wrapper"
|
|
20637
|
+
[label]="'SELECT_ALL' | localize"
|
|
20638
|
+
[(model)]="localCheckboxState"
|
|
20639
|
+
(modelChange)="handleSelectAllLines($event)"
|
|
20640
|
+
></co-input-checkbox>
|
|
20641
|
+
</div>
|
|
20642
|
+
<div class="sub-section-input">
|
|
20643
|
+
<co-input-text
|
|
20644
|
+
[placeholder]="'PACKING_SLIP' | localize"
|
|
20645
|
+
[(model)]="packingSlipNr"
|
|
20646
|
+
></co-input-text>
|
|
20647
|
+
<co-input-checkbox
|
|
20648
|
+
class="checkbox-wrapper"
|
|
20649
|
+
[label]="'NO_PACKAGE_STICKERS' | localize"
|
|
20650
|
+
[(model)]="colliCheckboxState"
|
|
20651
|
+
(modelChange)="handleSelectAllLines($event)"
|
|
20652
|
+
></co-input-checkbox>
|
|
20653
|
+
</div>
|
|
20636
20654
|
<!--
|
|
20637
20655
|
<co-transaction-labeled-warehouse-location-button *ngIf="internalParamMLocat && showWarehouseLocationButton"
|
|
20638
20656
|
[locationNr]="globalWarehouseLocation"
|
|
@@ -20649,20 +20667,6 @@ TransactionQuickAccessReceivedGoodsComponent.decorators = [
|
|
|
20649
20667
|
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
20650
20668
|
></co-quick-send-button>
|
|
20651
20669
|
</div>
|
|
20652
|
-
<div class="sub-section"w>
|
|
20653
|
-
<co-input-checkbox
|
|
20654
|
-
class="checkbox-wrapper"
|
|
20655
|
-
[label]="'SELECT_ALL' | localize"
|
|
20656
|
-
[(model)]="localCheckboxState"
|
|
20657
|
-
(modelChange)="handleSelectAllLines($event)"
|
|
20658
|
-
></co-input-checkbox>
|
|
20659
|
-
<co-input-checkbox
|
|
20660
|
-
class="checkbox-wrapper"
|
|
20661
|
-
[label]="'NO_PACKAGE_STICKERS' | localize"
|
|
20662
|
-
[(model)]="colliCheckboxState"
|
|
20663
|
-
(modelChange)="handleSelectAllLines($event)"
|
|
20664
|
-
></co-input-checkbox>
|
|
20665
|
-
</div>
|
|
20666
20670
|
</div>
|
|
20667
20671
|
<co-send-method-dialog *ngIf="showSendMethodDialog"
|
|
20668
20672
|
[printerList]="printerList"
|
|
@@ -23789,7 +23793,6 @@ TransactionPurchaseOrderLineComponent.decorators = [
|
|
|
23789
23793
|
<co-input-text
|
|
23790
23794
|
[class.warning]="showColorIndicator && transactionLine.amount !== transactionLine.quantityPurchaseToConfirm"
|
|
23791
23795
|
[model]="transactionLine.amount"
|
|
23792
|
-
[leftIconData]="iconCacheService.getIcon(icons.CartShoppingRegular)"
|
|
23793
23796
|
[readonly]="true"
|
|
23794
23797
|
[customHeight]="true"
|
|
23795
23798
|
></co-input-text>
|
|
@@ -23840,7 +23843,7 @@ TransactionPurchaseOrderLineComponent.decorators = [
|
|
|
23840
23843
|
<co-input-text
|
|
23841
23844
|
[screenConfigurationObject]="cfgNames.LineConfirmedAmount"
|
|
23842
23845
|
[(model)]="+transactionLine.quantityPurchaseToConfirm"
|
|
23843
|
-
|
|
23846
|
+
|
|
23844
23847
|
[forceReadonly]="true"
|
|
23845
23848
|
[digitsOnly]="true"
|
|
23846
23849
|
></co-input-text>
|
|
@@ -23851,7 +23854,7 @@ TransactionPurchaseOrderLineComponent.decorators = [
|
|
|
23851
23854
|
<co-transaction-line-label [insideLabel]="'ARTICLE_NR_SUPPLIER'"></co-transaction-line-label>
|
|
23852
23855
|
<co-input-text
|
|
23853
23856
|
[model]="transactionLine.purchasePortalLine.articleNoSupplier ? transactionLine.purchasePortalLine.articleNoSupplier : '-'"
|
|
23854
|
-
|
|
23857
|
+
|
|
23855
23858
|
[customHeight]="true"
|
|
23856
23859
|
[readonly]="true"
|
|
23857
23860
|
></co-input-text>
|
|
@@ -33489,6 +33492,9 @@ class TransactionNavigationButtonListComponent {
|
|
|
33489
33492
|
case TransactionKind.SalesInvoice:
|
|
33490
33493
|
return 'INVOICE';
|
|
33491
33494
|
break;
|
|
33495
|
+
case TransactionKind.InternalDelivery:
|
|
33496
|
+
return 'INTERNAL_DELIVERY';
|
|
33497
|
+
break;
|
|
33492
33498
|
default:
|
|
33493
33499
|
return this.insideLabel;
|
|
33494
33500
|
break;
|
|
@@ -48621,39 +48627,40 @@ TransactionLineToolbarComponent.decorators = [
|
|
|
48621
48627
|
{ type: Component, args: [{
|
|
48622
48628
|
selector: 'co-transaction-line-toolbar',
|
|
48623
48629
|
template: `
|
|
48624
|
-
|
|
48625
|
-
|
|
48626
|
-
|
|
48627
|
-
|
|
48628
|
-
|
|
48629
|
-
|
|
48630
|
-
|
|
48631
|
-
|
|
48632
|
-
|
|
48633
|
-
|
|
48634
|
-
|
|
48635
|
-
|
|
48636
|
-
|
|
48637
|
-
|
|
48638
|
-
|
|
48639
|
-
|
|
48640
|
-
|
|
48641
|
-
|
|
48642
|
-
|
|
48643
|
-
|
|
48644
|
-
|
|
48645
|
-
|
|
48630
|
+
<div class="toolbar">
|
|
48631
|
+
<div class="toolbar-inner">
|
|
48632
|
+
<div class="toolbar-item" [title]="'COPY' | localize" (click)="handleCopyLineButtonClick()"
|
|
48633
|
+
[screenConfigurationObject]="configNames?.sidePanelBtn" screenConfigNativeElement>
|
|
48634
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.PlusSimple)"></co-icon>
|
|
48635
|
+
</div>
|
|
48636
|
+
<div class="toolbar-item" *ngIf="canReopenExternalOrder"
|
|
48637
|
+
(click)="handleReopenExternalOrderClick()">
|
|
48638
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.DetailView)"></co-icon>
|
|
48639
|
+
</div>
|
|
48640
|
+
<div class="toolbar-item" [title]="'DOCUMENT' | localize" (click)="handleAddDocumentButtonClick()"
|
|
48641
|
+
[screenConfigurationObject]="configNames?.addDocumentBtn" screenConfigNativeElement>
|
|
48642
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.Attachments)"></co-icon>
|
|
48643
|
+
</div>
|
|
48644
|
+
<div class="toolbar-item" [title]="'TEXTS' | localize" (click)="handleArticleTextButtonClick()"
|
|
48645
|
+
[screenConfigurationObject]="configNames?.addProductTextBtn" screenConfigNativeElement>
|
|
48646
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.TextSizeSolid)"></co-icon>
|
|
48647
|
+
</div>
|
|
48648
|
+
<div class="toolbar-item" [title]="'SERVICE' | localize" *ngIf="canCreateService" (click)="handleCreateServiceButtonClick()"
|
|
48649
|
+
[screenConfigurationObject]="configNames?.sidePanelBtn" screenConfigNativeElement>
|
|
48650
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.DetailView)"></co-icon>
|
|
48651
|
+
</div>
|
|
48646
48652
|
|
|
48647
|
-
|
|
48648
|
-
|
|
48649
|
-
|
|
48650
|
-
|
|
48653
|
+
<div class="toolbar-item" [title]="'STOCK' | localize" (click)="handleViewStockButtonClick()"
|
|
48654
|
+
[screenConfigurationObject]="configNames?.sidePanelBtn" screenConfigNativeElement>
|
|
48655
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.PalletBoxesRotate)"></co-icon>
|
|
48656
|
+
</div>
|
|
48651
48657
|
|
|
48652
|
-
|
|
48653
|
-
|
|
48654
|
-
|
|
48655
|
-
|
|
48658
|
+
<div class="toolbar-item" [title]="'SIDE_PANEL' | localize" (click)="handleSidePanelButtonClick()"
|
|
48659
|
+
[screenConfigurationObject]="configNames?.sidePanelBtn" screenConfigNativeElement>
|
|
48660
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.SidebarFlipRegular)"></co-icon>
|
|
48661
|
+
</div>
|
|
48656
48662
|
</div>
|
|
48663
|
+
</div>
|
|
48657
48664
|
`,
|
|
48658
48665
|
providers: [{
|
|
48659
48666
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
@@ -49287,7 +49294,7 @@ class TransactionPaymentService {
|
|
|
49287
49294
|
}
|
|
49288
49295
|
if (this.currentPaymentMethod.pinTerminal) {
|
|
49289
49296
|
pspTransactionUuid = yield this._paymentConnectorService.doPayment(request);
|
|
49290
|
-
|
|
49297
|
+
// await this._triggerCalculateAmountToPay();
|
|
49291
49298
|
}
|
|
49292
49299
|
else {
|
|
49293
49300
|
this._paymentResult = yield this._paymentConnectorService.createIonePaymentLinkAndQRCode(this.transactionUuid, this.amountToPay, this.currentPaymentMethod.code);
|
|
@@ -49316,7 +49323,7 @@ class TransactionPaymentService {
|
|
|
49316
49323
|
this._paymentConnectorService.doPayment(request).then(() => __awaiter(this, void 0, void 0, function* () {
|
|
49317
49324
|
yield this.preparePaymentInfo();
|
|
49318
49325
|
if (!this.currentPaymentMethod.voucher) {
|
|
49319
|
-
|
|
49326
|
+
// await this._triggerCalculateAmountToPay();
|
|
49320
49327
|
}
|
|
49321
49328
|
else {
|
|
49322
49329
|
this.amountToPay = 0;
|
|
@@ -49459,16 +49466,6 @@ class TransactionPaymentService {
|
|
|
49459
49466
|
});
|
|
49460
49467
|
});
|
|
49461
49468
|
}
|
|
49462
|
-
_triggerCalculateAmountToPay() {
|
|
49463
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49464
|
-
const amountToPayRequest = new CalculateAmountToPayRequest();
|
|
49465
|
-
amountToPayRequest.transactionUuid = this.transactionUuid;
|
|
49466
|
-
amountToPayRequest.paymentMethodCode = this.currentPaymentMethod.code;
|
|
49467
|
-
this._paymentConnectorService.calculateAmountToPay(amountToPayRequest).then((result) => {
|
|
49468
|
-
this.amountToPay = result.amountToPay;
|
|
49469
|
-
});
|
|
49470
|
-
});
|
|
49471
|
-
}
|
|
49472
49469
|
}
|
|
49473
49470
|
TransactionPaymentService.decorators = [
|
|
49474
49471
|
{ type: Injectable }
|
|
@@ -50970,7 +50967,6 @@ TransactionHeaderDeliveryComponent.decorators = [
|
|
|
50970
50967
|
[firstBlockTemplate]="firstBlock"
|
|
50971
50968
|
[secondBlockTemplate]="secondBlock"
|
|
50972
50969
|
[thirdBlockTemplate]="thirdBlock"
|
|
50973
|
-
[hiddenBlockTemplate]="hiddenBlock"
|
|
50974
50970
|
(headerClick)="showDialog = true"
|
|
50975
50971
|
>
|
|
50976
50972
|
</co-transaction-header-block>
|
|
@@ -51016,7 +51012,7 @@ TransactionHeaderDeliveryComponent.decorators = [
|
|
|
51016
51012
|
[screenConfigurationObject]="cfgNames.HeaderDeliveryMethod"
|
|
51017
51013
|
></co-transaction-header-delivery-method-button>
|
|
51018
51014
|
</ng-template>
|
|
51019
|
-
|
|
51015
|
+
<!--ng-template #hiddenBlock>
|
|
51020
51016
|
<co-transaction-header-partial-delivery class="transaction-header-partial-delivery co-transaction-label"
|
|
51021
51017
|
[screenConfigurationObject]="cfgNames.HeaderDeliveryPartialHeader"
|
|
51022
51018
|
></co-transaction-header-partial-delivery>
|
|
@@ -51024,7 +51020,7 @@ TransactionHeaderDeliveryComponent.decorators = [
|
|
|
51024
51020
|
[defaultEditMode]="false"
|
|
51025
51021
|
[showLabel]="false"
|
|
51026
51022
|
></co-transaction-header-preferred-delivery-date>
|
|
51027
|
-
</ng-template
|
|
51023
|
+
</ng-template-->
|
|
51028
51024
|
<co-transaction-header-popup *ngIf="showDialog"
|
|
51029
51025
|
[activeCategoryDescription]="'DELIVERY_INFORMATION'"
|
|
51030
51026
|
(closeClick)="showDialog = false"></co-transaction-header-popup>
|
|
@@ -51084,7 +51080,7 @@ TransactionHeaderBlockComponent.decorators = [
|
|
|
51084
51080
|
<div class="transaction-header-block-content-first" *ngIf="firstBlockTemplate">
|
|
51085
51081
|
<ng-container [ngTemplateOutlet]="firstBlockTemplate"></ng-container>
|
|
51086
51082
|
</div>
|
|
51087
|
-
<div class="transaction-header-block-content-second" *ngIf="secondBlockTemplate
|
|
51083
|
+
<div class="transaction-header-block-content-second" *ngIf="secondBlockTemplate">
|
|
51088
51084
|
<ng-container [ngTemplateOutlet]="secondBlockTemplate"></ng-container>
|
|
51089
51085
|
</div>
|
|
51090
51086
|
<div class="transaction-header-block-content-third" *ngIf="thirdBlockTemplate">
|
|
@@ -53001,22 +52997,24 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
|
|
|
53001
52997
|
});
|
|
53002
52998
|
}
|
|
53003
52999
|
_getOutstandingAmounts() {
|
|
53004
|
-
|
|
53005
|
-
|
|
53006
|
-
|
|
53007
|
-
|
|
53008
|
-
|
|
53009
|
-
|
|
53010
|
-
|
|
53011
|
-
|
|
53012
|
-
|
|
53013
|
-
this.
|
|
53014
|
-
|
|
53015
|
-
|
|
53016
|
-
|
|
53017
|
-
this.
|
|
53018
|
-
|
|
53019
|
-
|
|
53000
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53001
|
+
// keeping this for now, could be that we need to use this call after all
|
|
53002
|
+
// const outstandingAmountsRequest: OutstandingAmountFilterCustomer = new OutstandingAmountFilterCustomer();
|
|
53003
|
+
// outstandingAmountsRequest.transactionId = this.transactionInfo.id;
|
|
53004
|
+
// this._paymentConnectorService.getOutstandingCustomerAmounts(outstandingAmountsRequest).then((response: OutstandingAmountCustomer[]) => {
|
|
53005
|
+
// this.outstandingCustomerAmount = response;
|
|
53006
|
+
// });
|
|
53007
|
+
const paymentAnalysisRequest = new OrderPaymentAnalysisFilter();
|
|
53008
|
+
paymentAnalysisRequest.transactionId = this.transactionInfo.id;
|
|
53009
|
+
yield this._paymentConnectorService.getSalesOrderPaymentAnalysis(paymentAnalysisRequest).then((response) => {
|
|
53010
|
+
this.orderPaymentAnalysis = response;
|
|
53011
|
+
this.orderPaymentAnalysis = this.orderPaymentAnalysis.map(transaction => (Object.assign(Object.assign({}, transaction), { isSelected: false })));
|
|
53012
|
+
});
|
|
53013
|
+
yield this._paymentConnectorService.getPaymentAnalysis(this.transactionInfo.uuid).then((response) => {
|
|
53014
|
+
this.paymentAnalysis = response;
|
|
53015
|
+
this.chosenAmountToPay = this.paymentAnalysis.totalToPay;
|
|
53016
|
+
this._updateChosenAmountToPay();
|
|
53017
|
+
});
|
|
53020
53018
|
});
|
|
53021
53019
|
}
|
|
53022
53020
|
_getRegisteredPaymentInfo() {
|
|
@@ -53038,7 +53036,13 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
|
|
|
53038
53036
|
this.orderPaymentAnalysis.filter(payment => payment.transactionKind === this.transKind.SalesInvoice).length === 0) {
|
|
53039
53037
|
this.chosenAmountToPay = this.paymentAnalysis.totalDeposit;
|
|
53040
53038
|
}
|
|
53041
|
-
|
|
53039
|
+
// Deposit only
|
|
53040
|
+
if (this.orderPaymentAnalysis.filter(payment => payment.transactionKind === this.transKind.SalesOrder &&
|
|
53041
|
+
payment.outstandingAmount > 0).length === 1) {
|
|
53042
|
+
this.chosenAmountToPay = this.orderPaymentAnalysis[0].outstandingAmount;
|
|
53043
|
+
}
|
|
53044
|
+
if (this.orderPaymentAnalysis.filter(payment => (payment.transactionKind === this.transKind.SalesInvoice) &&
|
|
53045
|
+
(payment.outstandingAmount > 0)).length === 1) {
|
|
53042
53046
|
const remainingInvoice = this.orderPaymentAnalysis.filter(payment => (payment.transactionKind === this.transKind.SalesInvoice) && (payment.outstandingAmount > 0))[0];
|
|
53043
53047
|
this.chosenAmountToPay = remainingInvoice.outstandingAmount;
|
|
53044
53048
|
}
|
|
@@ -57678,6 +57682,7 @@ class TransactionHeaderComponent {
|
|
|
57678
57682
|
this.cfgNames = TransactionCfgName;
|
|
57679
57683
|
this.icons = Icon;
|
|
57680
57684
|
this.toggleHeader = false;
|
|
57685
|
+
this.showDialog = false;
|
|
57681
57686
|
this.isPurchaseOrder = true;
|
|
57682
57687
|
this._transaction = new TransactionInfoResponse();
|
|
57683
57688
|
}
|
|
@@ -57705,7 +57710,7 @@ TransactionHeaderComponent.decorators = [
|
|
|
57705
57710
|
{ type: Component, args: [{
|
|
57706
57711
|
selector: 'co-transaction-header',
|
|
57707
57712
|
template: `
|
|
57708
|
-
<div class="transaction-header-wrapper"
|
|
57713
|
+
<div class="transaction-header-wrapper" [class.expanded]="!toggleHeader">
|
|
57709
57714
|
<co-carousel>
|
|
57710
57715
|
<co-transaction-header-relation #carouselItem
|
|
57711
57716
|
[screenConfigurationObject]="cfgNames.RelationInfoHeader"
|
|
@@ -57723,12 +57728,12 @@ TransactionHeaderComponent.decorators = [
|
|
|
57723
57728
|
[screenConfigurationObject]="cfgNames.DeliveryInfoHeader"
|
|
57724
57729
|
></co-transaction-header-delivery>
|
|
57725
57730
|
</co-carousel>
|
|
57726
|
-
|
|
57731
|
+
<!--div class="expand-transaction-header">
|
|
57727
57732
|
<co-icon class="expand-header-icon"
|
|
57728
57733
|
[iconData]="iconCacheService.getIcon(icons.ArrowPointDown)"
|
|
57729
57734
|
(click)="expandHeader()">
|
|
57730
57735
|
</co-icon>
|
|
57731
|
-
</div
|
|
57736
|
+
</div-->
|
|
57732
57737
|
</div>
|
|
57733
57738
|
`,
|
|
57734
57739
|
encapsulation: ViewEncapsulation.None
|
|
@@ -57787,10 +57792,12 @@ class TransactionHeaderRelationComponent extends TransactionHeaderBaseComponent
|
|
|
57787
57792
|
if (address) {
|
|
57788
57793
|
this.firstAddress = address.displayAddress;
|
|
57789
57794
|
this.firstPostal = address.displayPostal;
|
|
57795
|
+
this.firstStreet = address.city;
|
|
57790
57796
|
}
|
|
57791
57797
|
else {
|
|
57792
57798
|
this.firstAddress = "";
|
|
57793
57799
|
this.firstPostal = "";
|
|
57800
|
+
this.firstStreet = "";
|
|
57794
57801
|
}
|
|
57795
57802
|
}
|
|
57796
57803
|
}
|
|
@@ -57819,10 +57826,12 @@ TransactionHeaderRelationComponent.decorators = [
|
|
|
57819
57826
|
></label>
|
|
57820
57827
|
<div class="header-relation-name text-overflow" [textContent]="relation.displayName"
|
|
57821
57828
|
[screenConfigurationObject]="cfgNames.HeaderRelationRelationHeader" screenConfigNativeElement></div>
|
|
57822
|
-
<div class="header-relation-
|
|
57823
|
-
|
|
57824
|
-
|
|
57825
|
-
|
|
57829
|
+
<div class="header-relation-double text-overflow">
|
|
57830
|
+
<div class="header-relation-address" [textContent]="firstAddress"
|
|
57831
|
+
[screenConfigurationObject]="cfgNames.HeaderRelationAddressHeader" screenConfigNativeElement></div>
|
|
57832
|
+
<div class="header-relation-postal" [textContent]="firstStreet"
|
|
57833
|
+
[screenConfigurationObject]="cfgNames.HeaderRelationPostalHeader" screenConfigNativeElement></div>
|
|
57834
|
+
</div>
|
|
57826
57835
|
</div>
|
|
57827
57836
|
</ng-container>
|
|
57828
57837
|
</ng-template>
|
|
@@ -57914,12 +57923,11 @@ TransactionHeaderOrderComponent.decorators = [
|
|
|
57914
57923
|
<co-transaction-header-block
|
|
57915
57924
|
[firstBlockTemplate]="firstBlock"
|
|
57916
57925
|
[secondBlockTemplate]="secondBlock"
|
|
57917
|
-
[hiddenBlockTemplate]="hiddenBlock"
|
|
57918
57926
|
(headerClick)="showDialog = true"
|
|
57919
57927
|
>
|
|
57920
57928
|
</co-transaction-header-block>
|
|
57921
57929
|
<ng-template #firstBlock>
|
|
57922
|
-
<div class="transaction-header-block-row"
|
|
57930
|
+
<div class="transaction-header-block-row">
|
|
57923
57931
|
<div class="header-order-total-wrapper" [screenConfigurationObject]="cfgNames.HeaderOrderOrderTotalHeader" screenConfigNativeElement>
|
|
57924
57932
|
<span class="header-order-total-label co-transaction-label" [textContent]="'ORDER_TOTAL' | localize"></span>
|
|
57925
57933
|
<div class="header-order-total" [textContent]="transactionTotal.netAmount | coCurrency"></div>
|
|
@@ -57927,7 +57935,7 @@ TransactionHeaderOrderComponent.decorators = [
|
|
|
57927
57935
|
</div>
|
|
57928
57936
|
</ng-template>
|
|
57929
57937
|
<ng-template #secondBlock>
|
|
57930
|
-
<div class="transaction-header-block-row"
|
|
57938
|
+
<div class="transaction-header-block-row" [screenConfigurationObject]="cfgNames.HeaderOrderDiscountHeader" screenConfigNativeElement>
|
|
57931
57939
|
<div class="transaction-header-discount-button">
|
|
57932
57940
|
<div class="header-discount" (click)="openDiscount($event)">
|
|
57933
57941
|
<co-icon class="header-discount-icon" [iconData]="iconCacheService.getIcon(icons.LightEuroSignMinus)"></co-icon>
|
|
@@ -57935,17 +57943,17 @@ TransactionHeaderOrderComponent.decorators = [
|
|
|
57935
57943
|
</div>
|
|
57936
57944
|
</div>
|
|
57937
57945
|
</ng-template>
|
|
57938
|
-
|
|
57946
|
+
<!--ng-template #hiddenBlock>
|
|
57939
57947
|
<div class="transaction-header-block-row" [screenConfigurationObject]="cfgNames.HeaderOrderDefinitiveHeader" screenConfigNativeElement>
|
|
57940
57948
|
<div class="header-order-definitive">
|
|
57941
57949
|
<co-transaction-header-definitive class="transaction-header-order-definitive"
|
|
57942
57950
|
[screenConfigurationObject]="cfgNames.HeaderOrderDefinitiveHeader"
|
|
57943
57951
|
></co-transaction-header-definitive>
|
|
57944
57952
|
</div>
|
|
57945
|
-
|
|
57946
|
-
<div class="header-order-line-amount" [textContent]="transactionLines.length"></div
|
|
57953
|
+
<span class="header-order-line-amount-label co-transaction-label" [textContent]="'ORDER_LINES' | localize"></span>
|
|
57954
|
+
<div class="header-order-line-amount" [textContent]="transactionLines.length"></div>
|
|
57947
57955
|
</div>
|
|
57948
|
-
</ng-template
|
|
57956
|
+
</ng-template-->
|
|
57949
57957
|
<co-transaction-header-popup *ngIf="showDialog"
|
|
57950
57958
|
[activeCategoryDescription]="'ORDER_INFORMATION1'"
|
|
57951
57959
|
(closeClick)="showDialog = false"></co-transaction-header-popup>
|
|
@@ -58103,7 +58111,7 @@ class TransactionHeaderPaymentComponent extends TransactionHeaderBaseComponent {
|
|
|
58103
58111
|
if (this.transactionInfo && this.transactionInfo.id && this.transactionInfo.uuid) {
|
|
58104
58112
|
this._paymentConnectorService.getDepositPaymentInfo(this.transactionInfo.uuid).then((info) => {
|
|
58105
58113
|
if (info) {
|
|
58106
|
-
this.toPay = info.
|
|
58114
|
+
this.toPay = info.depositRemainderAmount;
|
|
58107
58115
|
this.paid = info.depositPaymentAmountTotal;
|
|
58108
58116
|
}
|
|
58109
58117
|
});
|
|
@@ -58116,7 +58124,7 @@ TransactionHeaderPaymentComponent.decorators = [
|
|
|
58116
58124
|
template: `
|
|
58117
58125
|
<div class="transaction-header-payment-wrapper">
|
|
58118
58126
|
<div class="transaction-header-payment-wrapper-content" [class.show-remaining]="showRemainingPayment">
|
|
58119
|
-
|
|
58127
|
+
<!--co-transaction-header-block
|
|
58120
58128
|
[firstBlockTemplate]="firstBlock"
|
|
58121
58129
|
[secondBlockTemplate]="secondBlock"
|
|
58122
58130
|
[thirdBlockTemplate]="thirdBlock"
|
|
@@ -58128,10 +58136,16 @@ TransactionHeaderPaymentComponent.decorators = [
|
|
|
58128
58136
|
[firstBlockTemplate]="firstBlockRest"
|
|
58129
58137
|
(headerClick)="showDialog = true"
|
|
58130
58138
|
>
|
|
58139
|
+
</co-transaction-header-block-->
|
|
58140
|
+
<co-transaction-header-block
|
|
58141
|
+
[thirdBlockTemplate]="thirdBlock"
|
|
58142
|
+
[hiddenBlockTemplate]="hiddenBlock"
|
|
58143
|
+
(headerClick)="showDialog = true"
|
|
58144
|
+
>
|
|
58131
58145
|
</co-transaction-header-block>
|
|
58132
58146
|
</div>
|
|
58133
58147
|
</div>
|
|
58134
|
-
|
|
58148
|
+
<!--ng-template #firstBlock>
|
|
58135
58149
|
<div class="transaction-header-block-row" (click)="showDialog = true">
|
|
58136
58150
|
<div class="header-downpayment-amount-wrapper" [screenConfigurationObject]="cfgNames.HeaderPaymentAmountHeader" screenConfigNativeElement>
|
|
58137
58151
|
<div class="header-deposit-label co-transaction-label" [textContent]="'DOWNPAYMENT_AMOUNT' | localize"></div>
|
|
@@ -58142,8 +58156,8 @@ TransactionHeaderPaymentComponent.decorators = [
|
|
|
58142
58156
|
></co-transaction-header-deposit-amount>
|
|
58143
58157
|
</div>
|
|
58144
58158
|
</div>
|
|
58145
|
-
</ng-template
|
|
58146
|
-
|
|
58159
|
+
</ng-template-->
|
|
58160
|
+
<!--ng-template #firstBlockRest>
|
|
58147
58161
|
<div class="transaction-header-block-row">
|
|
58148
58162
|
<div class="transaction-header-icon" [screenConfigurationObject]="cfgNames.HeaderPaymentAvatarHeader" screenConfigNativeElement>
|
|
58149
58163
|
<co-icon class="header-order-icon"
|
|
@@ -58167,8 +58181,8 @@ TransactionHeaderPaymentComponent.decorators = [
|
|
|
58167
58181
|
</co-transaction-header-remaining-amount>
|
|
58168
58182
|
</div>
|
|
58169
58183
|
</div>
|
|
58170
|
-
</ng-template
|
|
58171
|
-
|
|
58184
|
+
</ng-template-->
|
|
58185
|
+
<!--ng-template #secondBlock>
|
|
58172
58186
|
<div class="transaction-header-block-row">
|
|
58173
58187
|
<div class="header-downpayment-percentage-wrapper" [screenConfigurationObject]="cfgNames.HeaderPaymentPercentageHeader" screenConfigNativeElement>
|
|
58174
58188
|
<div class="header-deposit-label co-transaction-label" [textContent]="'%' | localize"></div>
|
|
@@ -58179,7 +58193,7 @@ TransactionHeaderPaymentComponent.decorators = [
|
|
|
58179
58193
|
></co-transaction-header-deposit-percentage>
|
|
58180
58194
|
</div>
|
|
58181
58195
|
</div>
|
|
58182
|
-
</ng-template
|
|
58196
|
+
</ng-template-->
|
|
58183
58197
|
<ng-template #thirdBlock>
|
|
58184
58198
|
<div class="transaction-header-block-row">
|
|
58185
58199
|
<div class="payment-payed-wrapper">
|