mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
#4101 Kulturpass
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { ActionHandler } from '@core/command';
|
||||
import { Dictionary } from '@ngrx/entity';
|
||||
import { OrderService } from '@swagger/oms';
|
||||
import { OrderItemsContext } from './order-items.context';
|
||||
|
||||
@Injectable()
|
||||
export class CollectWithSmallAmountinvoiceActionHandler extends ActionHandler<OrderItemsContext> {
|
||||
constructor(private orderService: OrderService) {
|
||||
super('COLLECT_WITH_SMALLAMOUNTINVOICE');
|
||||
}
|
||||
|
||||
async handler(context: OrderItemsContext): Promise<OrderItemsContext> {
|
||||
const data: Record<number, number> = {};
|
||||
|
||||
context.items.forEach((orderItemSubsetId) => {
|
||||
data[orderItemSubsetId.orderItemSubsetId] =
|
||||
context.itemQuantity?.get(orderItemSubsetId.orderItemSubsetId) ?? orderItemSubsetId.quantity;
|
||||
});
|
||||
|
||||
const response = await this.orderService
|
||||
.OrderCollectWithSmallAmountInvoice({
|
||||
data,
|
||||
})
|
||||
.toPromise();
|
||||
|
||||
// Für korrekte Navigation nach Aufruf, da ProcessingStatus Serverseitig auf abgeholt gesetzt wird
|
||||
context.items?.forEach((i) => (i.processingStatus = 256));
|
||||
|
||||
return {
|
||||
...context,
|
||||
receipts: response.result,
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
// start:ng42.barrel
|
||||
export * from './accepted.action-handler';
|
||||
export * from './arrived.action-handler';
|
||||
export * from './assembled.action-handler';
|
||||
@@ -7,6 +6,10 @@ export * from './back-to-stock.action-handler';
|
||||
export * from './canceled-by-buyer.action-handler';
|
||||
export * from './canceled-by-retailer.action-handler';
|
||||
export * from './canceled-by-supplier.action-handler';
|
||||
export * from './change-order-item-status-base.action-handler';
|
||||
export * from './collect-on-deliverynote.action-handler';
|
||||
export * from './collect-with-smallamountinvoice.action-handler';
|
||||
export * from './create-returnitem.action-handler';
|
||||
export * from './create-shipping-note.action-handler';
|
||||
export * from './delivered.action-handler';
|
||||
export * from './determine-supplier.action-handler';
|
||||
@@ -25,16 +28,14 @@ export * from './parked.action-handler';
|
||||
export * from './placed.action-handler';
|
||||
export * from './preperation-for-shipping.action-handler';
|
||||
export * from './print-compartment-label.action-handler';
|
||||
export * from './print-pricediffqrcodelabel.action-handler';
|
||||
export * from './print-shipping-note.action-handler';
|
||||
export * from './re-ordered.action-handler';
|
||||
export * from './print-smallamountinvoice.action-handler';
|
||||
export * from './re-order.action-handler';
|
||||
export * from './re-ordered.action-handler';
|
||||
export * from './redirected-internally.action-handler';
|
||||
export * from './requested.action-handler';
|
||||
export * from './reserved.action-handler';
|
||||
export * from './returned-by-buyer.action-handler';
|
||||
export * from './shipping-note.action-handler';
|
||||
export * from './supplier-temporarily-out-of-stock.action-handler copy';
|
||||
export * from './collect-on-deliverynote.action-handler';
|
||||
export * from './create-returnitem.action-handler';
|
||||
export * from './print-pricediffqrcodelabel.action-handler';
|
||||
// end:ng42.barrel
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { ActionHandler } from '@core/command';
|
||||
import { OrderItemsContext } from './order-items.context';
|
||||
import { OMSPrintService } from '@swagger/print';
|
||||
import { UiModalService } from '@ui/modal';
|
||||
import { PrintModalComponent, PrintModalData } from '@modal/printer';
|
||||
import { NativeContainerService } from 'native-container';
|
||||
import { groupBy } from '@ui/common';
|
||||
|
||||
@Injectable()
|
||||
export class PrintSmallamountinvoiceActionHandler extends ActionHandler<OrderItemsContext> {
|
||||
constructor(
|
||||
private uiModal: UiModalService,
|
||||
private omsPrintService: OMSPrintService,
|
||||
private nativeContainerService: NativeContainerService
|
||||
) {
|
||||
super('PRINT_SMALLAMOUNTINVOICE');
|
||||
}
|
||||
|
||||
async handler(data: OrderItemsContext): Promise<OrderItemsContext> {
|
||||
await this.uiModal
|
||||
.open({
|
||||
content: PrintModalComponent,
|
||||
config: { showScrollbarY: false },
|
||||
data: {
|
||||
printImmediately: !this.nativeContainerService.isNative,
|
||||
printerType: 'Label',
|
||||
print: async (printer) => {
|
||||
try {
|
||||
for (const group of groupBy(data?.receipts, (receipt) => receipt?.buyer?.buyerNumber)) {
|
||||
await this.omsPrintService
|
||||
.OMSPrintKleinbetragsrechnung({
|
||||
data: group?.items?.map((r) => r?.id),
|
||||
printer,
|
||||
})
|
||||
.toPromise();
|
||||
}
|
||||
return {
|
||||
error: false,
|
||||
};
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
return {
|
||||
error: true,
|
||||
message: error?.message || error,
|
||||
};
|
||||
}
|
||||
},
|
||||
} as PrintModalData,
|
||||
})
|
||||
.afterClosed$.toPromise();
|
||||
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@@ -39,6 +39,8 @@ import {
|
||||
ReOrderedActionHandler,
|
||||
CollectOnDeliveryNoteActionHandler,
|
||||
PrintPriceDiffQrCodeLabelActionHandler,
|
||||
CollectWithSmallAmountinvoiceActionHandler,
|
||||
PrintSmallamountinvoiceActionHandler,
|
||||
} from '@domain/oms';
|
||||
import { CoreCommandModule } from '@core/command';
|
||||
import { CustomerOrderRoutingModule } from './customer-order-routing.module';
|
||||
@@ -89,6 +91,8 @@ import { BreadcrumbModule } from '@shared/components/breadcrumb';
|
||||
SupplierTemporarilyOutOfStockActionHandler,
|
||||
CollectOnDeliveryNoteActionHandler,
|
||||
PrintPriceDiffQrCodeLabelActionHandler,
|
||||
CollectWithSmallAmountinvoiceActionHandler,
|
||||
PrintSmallamountinvoiceActionHandler,
|
||||
]),
|
||||
],
|
||||
exports: [CustomerOrderComponent],
|
||||
|
||||
@@ -41,6 +41,8 @@ import {
|
||||
CollectOnDeliveryNoteActionHandler,
|
||||
CreateReturnItemActionHandler,
|
||||
PrintPriceDiffQrCodeLabelActionHandler,
|
||||
CollectWithSmallAmountinvoiceActionHandler,
|
||||
PrintSmallamountinvoiceActionHandler,
|
||||
} from '@domain/oms';
|
||||
@NgModule({
|
||||
declarations: [GoodsInComponent],
|
||||
@@ -85,6 +87,8 @@ import {
|
||||
CollectOnDeliveryNoteActionHandler,
|
||||
CreateReturnItemActionHandler,
|
||||
PrintPriceDiffQrCodeLabelActionHandler,
|
||||
CollectWithSmallAmountinvoiceActionHandler,
|
||||
PrintSmallamountinvoiceActionHandler,
|
||||
]),
|
||||
],
|
||||
exports: [GoodsInComponent],
|
||||
|
||||
@@ -39,6 +39,8 @@ import {
|
||||
ReOrderedActionHandler,
|
||||
CollectOnDeliveryNoteActionHandler,
|
||||
PrintPriceDiffQrCodeLabelActionHandler,
|
||||
CollectWithSmallAmountinvoiceActionHandler,
|
||||
PrintSmallamountinvoiceActionHandler,
|
||||
} from '@domain/oms';
|
||||
import { CoreCommandModule } from '@core/command';
|
||||
import { ShellBreadcrumbModule } from '@shell/breadcrumb';
|
||||
@@ -87,6 +89,8 @@ import { GoodsInRoutingModule } from './good-out-routing.module';
|
||||
SupplierTemporarilyOutOfStockActionHandler,
|
||||
CollectOnDeliveryNoteActionHandler,
|
||||
PrintPriceDiffQrCodeLabelActionHandler,
|
||||
CollectWithSmallAmountinvoiceActionHandler,
|
||||
PrintSmallamountinvoiceActionHandler,
|
||||
]),
|
||||
],
|
||||
exports: [GoodsOutComponent],
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
|
||||
<div class="goods-in-out-header-details">
|
||||
<h2 class="goods-in-out-header-details-header">
|
||||
<h2 class="goods-in-out-header-details-header text-2xl">
|
||||
<div class="goods-in-out-header-details-header-name">
|
||||
{{ orderItem?.organisation }}
|
||||
<ng-container *ngIf="!!orderItem?.organisation && (!!orderItem?.firstName || !!orderItem?.lastName)"> - </ng-container>
|
||||
@@ -30,10 +30,18 @@
|
||||
</div>
|
||||
</h2>
|
||||
|
||||
<div class="goods-in-out-header-details-paid-marker" *ngIf="orderItem?.features?.paid">
|
||||
<div class="goods-in-out-header-details-paid-marker" *ngIf="orderItem?.features?.paid && !isKulturpass">
|
||||
<ui-icon size="12px" icon="check"></ui-icon>
|
||||
<strong> {{ orderItem?.features?.paid }} </strong>
|
||||
</div>
|
||||
<div class="goods-in-out-header-details-paid-marker text-[#26830C]">
|
||||
<svg class="fill-current mr-2" xmlns="http://www.w3.org/2000/svg" height="22" viewBox="0 -960 960 960" width="22">
|
||||
<path
|
||||
d="M880-740v520q0 24-18 42t-42 18H140q-24 0-42-18t-18-42v-520q0-24 18-42t42-18h680q24 0 42 18t18 42ZM140-631h680v-109H140v109Zm0 129v282h680v-282H140Zm0 282v-520 520Z"
|
||||
/>
|
||||
</svg>
|
||||
<strong> Bezahlt über KulturPass </strong>
|
||||
</div>
|
||||
|
||||
<div class="goods-in-out-header-details-wrapper">
|
||||
<div class="detail" data-detail-id="VorgangId">
|
||||
|
||||
@@ -35,6 +35,10 @@ export class SharedGoodsInOutOrderDetailsHeaderComponent implements OnChanges {
|
||||
@Input()
|
||||
selectedOrderItemId: number;
|
||||
|
||||
get isKulturpass() {
|
||||
return this.order?.features?.orderSource === 'KulturPass';
|
||||
}
|
||||
|
||||
minDateDatepicker = this.dateAdapter.addCalendarDays(this.dateAdapter.today(), -1);
|
||||
today = this.dateAdapter.today();
|
||||
|
||||
|
||||
@@ -14,9 +14,11 @@ export interface AvailabilityDTO2 {
|
||||
itemId?: number;
|
||||
logistician?: string;
|
||||
logisticianId?: number;
|
||||
orderDeadline?: string;
|
||||
orderReference?: string;
|
||||
preferred?: number;
|
||||
price?: PriceDTO;
|
||||
priceMaintained?: boolean;
|
||||
qty?: number;
|
||||
requestMessage?: string;
|
||||
requestReference?: string;
|
||||
|
||||
@@ -21,6 +21,8 @@ export interface OrderItemSubsetTaskListItemDTO {
|
||||
orderItemSubsetTransition?: EntityDTOContainerOfOrderItemSubsetTransitionDTO;
|
||||
orderNumber?: string;
|
||||
pId?: string;
|
||||
processingComment?: string;
|
||||
processingReference?: string;
|
||||
product?: ProductDTO;
|
||||
type?: string;
|
||||
}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type OrderItemType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64;
|
||||
export type OrderItemType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 256 | 512 | 1024;
|
||||
@@ -1,2 +1,2 @@
|
||||
/* tslint:disable */
|
||||
export type ReceiptType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512;
|
||||
export type ReceiptType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024;
|
||||
@@ -63,6 +63,7 @@ class OrderService extends __BaseService {
|
||||
static readonly OrderChangeStatusPath = '/order/{orderId}/orderitem/{orderItemId}/orderitemsubset/{orderItemSubsetId}/changestatus';
|
||||
static readonly OrderChangeStockStatusCodePath = '/order/orderitem/orderitemsubset/changestockstatuscode';
|
||||
static readonly OrderCollectOnDeliveryNotePath = '/order/orderitem/orderitemsubset/collectondeliverynote';
|
||||
static readonly OrderCollectWithSmallAmountInvoicePath = '/order/orderitem/orderitemsubset/collectwithsmallamountinvoice';
|
||||
static readonly OrderSetPreferredPickUpDatePath = '/order/orderitem/orderitemsubset/setpreferredpickupdate';
|
||||
static readonly OrderQueryOrderItemSubsetTasksPath = '/order/item/subset/task/s';
|
||||
static readonly OrderGetOrderItemSubsetTasksPath = '/order/{orderId}/item/{orderItemId}/subset/{orderItemSubsetId}/task';
|
||||
@@ -1056,6 +1057,49 @@ class OrderService extends __BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param params The `OrderService.OrderCollectWithSmallAmountInvoiceParams` containing the following parameters:
|
||||
*
|
||||
* - `data`:
|
||||
*
|
||||
* - `eagerLoading`:
|
||||
*/
|
||||
OrderCollectWithSmallAmountInvoiceResponse(params: OrderService.OrderCollectWithSmallAmountInvoiceParams): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfEntityDTOContainerOfReceiptDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = params.data;
|
||||
if (params.eagerLoading != null) __params = __params.set('eagerLoading', params.eagerLoading.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/order/orderitem/orderitemsubset/collectwithsmallamountinvoice`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfEntityDTOContainerOfReceiptDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param params The `OrderService.OrderCollectWithSmallAmountInvoiceParams` containing the following parameters:
|
||||
*
|
||||
* - `data`:
|
||||
*
|
||||
* - `eagerLoading`:
|
||||
*/
|
||||
OrderCollectWithSmallAmountInvoice(params: OrderService.OrderCollectWithSmallAmountInvoiceParams): __Observable<ResponseArgsOfIEnumerableOfEntityDTOContainerOfReceiptDTO> {
|
||||
return this.OrderCollectWithSmallAmountInvoiceResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfIEnumerableOfEntityDTOContainerOfReceiptDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param params The `OrderService.OrderSetPreferredPickUpDateParams` containing the following parameters:
|
||||
*
|
||||
@@ -1512,6 +1556,14 @@ module OrderService {
|
||||
eagerLoading?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for OrderCollectWithSmallAmountInvoice
|
||||
*/
|
||||
export interface OrderCollectWithSmallAmountInvoiceParams {
|
||||
data: {[key: string]: number};
|
||||
eagerLoading?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for OrderSetPreferredPickUpDate
|
||||
*/
|
||||
|
||||
@@ -20,6 +20,8 @@ class ReceiptService extends __BaseService {
|
||||
static readonly ReceiptQueryReceiptsPath = '/receipt/s';
|
||||
static readonly ReceiptCreateShippingNotePath = '/receipt/shippingnote/fromorder';
|
||||
static readonly ReceiptCreateShippingNote2Path = '/receipt/shippingnote/fromitems';
|
||||
static readonly ReceiptCreateInvoicePath = '/receipt/invoice/fromorder';
|
||||
static readonly ReceiptCreateInvoice2Path = '/receipt/invoice/fromitems';
|
||||
static readonly ReceiptGetReceiptsByOrderItemSubsetPath = '/order/orderitem/orderitemsubset/receipts';
|
||||
|
||||
constructor(
|
||||
@@ -168,6 +170,102 @@ class ReceiptService extends __BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param params The `ReceiptService.ReceiptCreateInvoiceParams` containing the following parameters:
|
||||
*
|
||||
* - `orderId`:
|
||||
*
|
||||
* - `locale`:
|
||||
*
|
||||
* - `eagerLoading`:
|
||||
*/
|
||||
ReceiptCreateInvoiceResponse(params: ReceiptService.ReceiptCreateInvoiceParams): __Observable<__StrictHttpResponse<ResponseArgsOfReceiptDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = params.orderId;
|
||||
if (params.locale != null) __params = __params.set('locale', params.locale.toString());
|
||||
if (params.eagerLoading != null) __params = __params.set('eagerLoading', params.eagerLoading.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/receipt/invoice/fromorder`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfReceiptDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param params The `ReceiptService.ReceiptCreateInvoiceParams` containing the following parameters:
|
||||
*
|
||||
* - `orderId`:
|
||||
*
|
||||
* - `locale`:
|
||||
*
|
||||
* - `eagerLoading`:
|
||||
*/
|
||||
ReceiptCreateInvoice(params: ReceiptService.ReceiptCreateInvoiceParams): __Observable<ResponseArgsOfReceiptDTO> {
|
||||
return this.ReceiptCreateInvoiceResponse(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfReceiptDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param params The `ReceiptService.ReceiptCreateInvoice2Params` containing the following parameters:
|
||||
*
|
||||
* - `orderItemStatusIds`:
|
||||
*
|
||||
* - `locale`:
|
||||
*
|
||||
* - `eagerLoading`:
|
||||
*/
|
||||
ReceiptCreateInvoice2Response(params: ReceiptService.ReceiptCreateInvoice2Params): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfReceiptDTO>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = params.orderItemStatusIds;
|
||||
if (params.locale != null) __params = __params.set('locale', params.locale.toString());
|
||||
if (params.eagerLoading != null) __params = __params.set('eagerLoading', params.eagerLoading.toString());
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/receipt/invoice/fromitems`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfReceiptDTO>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param params The `ReceiptService.ReceiptCreateInvoice2Params` containing the following parameters:
|
||||
*
|
||||
* - `orderItemStatusIds`:
|
||||
*
|
||||
* - `locale`:
|
||||
*
|
||||
* - `eagerLoading`:
|
||||
*/
|
||||
ReceiptCreateInvoice2(params: ReceiptService.ReceiptCreateInvoice2Params): __Observable<ResponseArgsOfIEnumerableOfReceiptDTO> {
|
||||
return this.ReceiptCreateInvoice2Response(params).pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfIEnumerableOfReceiptDTO)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param params The `ReceiptService.ReceiptGetReceiptsByOrderItemSubsetParams` containing the following parameters:
|
||||
*
|
||||
@@ -240,6 +338,24 @@ module ReceiptService {
|
||||
eagerLoading?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for ReceiptCreateInvoice
|
||||
*/
|
||||
export interface ReceiptCreateInvoiceParams {
|
||||
orderId: number;
|
||||
locale?: null | string;
|
||||
eagerLoading?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for ReceiptCreateInvoice2
|
||||
*/
|
||||
export interface ReceiptCreateInvoice2Params {
|
||||
orderItemStatusIds: Array<number>;
|
||||
locale?: null | string;
|
||||
eagerLoading?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parameters for ReceiptGetReceiptsByOrderItemSubset
|
||||
*/
|
||||
|
||||
@@ -186,5 +186,6 @@ export { TermsOfDeliveryDTO2 } from './models/terms-of-delivery-dto2';
|
||||
export { ReadOnlyEntityDTOOfDisplayOrderDTOAndIOrder } from './models/read-only-entity-dtoof-display-order-dtoand-iorder';
|
||||
export { PrintRequestOfIEnumerableOfPriceQRCodeDTO } from './models/print-request-of-ienumerable-of-price-qrcode-dto';
|
||||
export { PriceQRCodeDTO } from './models/price-qrcode-dto';
|
||||
export { ResponseArgsOfIEnumerableOfString } from './models/response-args-of-ienumerable-of-string';
|
||||
export { ListResponseArgsOfKeyValueDTOOfStringAndString } from './models/list-response-args-of-key-value-dtoof-string-and-string';
|
||||
export { ResponseArgsOfIEnumerableOfKeyValueDTOOfStringAndString } from './models/response-args-of-ienumerable-of-key-value-dtoof-string-and-string';
|
||||
|
||||
@@ -1,38 +1,10 @@
|
||||
/* tslint:disable */
|
||||
import { PriceValueDTO } from './price-value-dto';
|
||||
|
||||
/**
|
||||
* PriceQRCodeDTO
|
||||
*/
|
||||
export interface PriceQRCodeDTO {
|
||||
|
||||
/**
|
||||
* Abholfachnummer
|
||||
*/
|
||||
compartmentCode?: string;
|
||||
|
||||
/**
|
||||
* Abholfachnummer Zusatz
|
||||
*/
|
||||
compartmentInfo?: string;
|
||||
|
||||
/**
|
||||
* Anzahl Ausdrucke
|
||||
*/
|
||||
copies?: number;
|
||||
|
||||
/**
|
||||
* EAN
|
||||
*/
|
||||
ean?: string;
|
||||
|
||||
/**
|
||||
* Preis
|
||||
*/
|
||||
price?: PriceValueDTO;
|
||||
|
||||
/**
|
||||
* Titel / Bezeichner
|
||||
*/
|
||||
title?: string;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
/* tslint:disable */
|
||||
import { ResponseArgs } from './response-args';
|
||||
export interface ResponseArgsOfIEnumerableOfString extends ResponseArgs{
|
||||
result?: Array<string>;
|
||||
}
|
||||
@@ -18,8 +18,11 @@ class OMSPrintService extends __BaseService {
|
||||
static readonly OMSPrintAbholscheinByIdPath = '/print/abholschein';
|
||||
static readonly OMSPrintAbholscheinPath = '/print/abholschein/data';
|
||||
static readonly OMSPrintAbholfachetikettPath = '/print/abholfachetikett';
|
||||
static readonly OMSPrintAbholfachetikettDirectPath = '/print-direct/abholfachetikett';
|
||||
static readonly OMSPrintPriceQRCodePath = '/print/priceqrcode';
|
||||
static readonly OMSPrintPriceQRCodeDirectPath = '/print-direct/priceqrcode';
|
||||
static readonly OMSPrintLieferscheinPath = '/print/lieferschein';
|
||||
static readonly OMSPrintKleinbetragsrechnungPath = '/print/kleinbetragsrechnung';
|
||||
|
||||
constructor(
|
||||
config: __Configuration,
|
||||
@@ -136,6 +139,42 @@ class OMSPrintService extends __BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Abholfachetikett (direkte Druckeransteuerung)
|
||||
* @param data Bestellpostenteilmenge PKs
|
||||
*/
|
||||
OMSPrintAbholfachetikettDirectResponse(data: PrintRequestOfIEnumerableOfLong): __Observable<__StrictHttpResponse<ResponseArgs>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = data;
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/print-direct/abholfachetikett`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgs>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Abholfachetikett (direkte Druckeransteuerung)
|
||||
* @param data Bestellpostenteilmenge PKs
|
||||
*/
|
||||
OMSPrintAbholfachetikettDirect(data: PrintRequestOfIEnumerableOfLong): __Observable<ResponseArgs> {
|
||||
return this.OMSPrintAbholfachetikettDirectResponse(data).pipe(
|
||||
__map(_r => _r.body as ResponseArgs)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Abholfachpreis-Etikett
|
||||
* @param data Bestellpostenteilmenge PKs
|
||||
@@ -172,6 +211,42 @@ class OMSPrintService extends __BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Abholfachpreis-Etikett (direkte Druckeransteuerung)
|
||||
* @param data Bestellpostenteilmenge PKs
|
||||
*/
|
||||
OMSPrintPriceQRCodeDirectResponse(data: PrintRequestOfIEnumerableOfPriceQRCodeDTO): __Observable<__StrictHttpResponse<ResponseArgs>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = data;
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/print-direct/priceqrcode`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgs>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Abholfachpreis-Etikett (direkte Druckeransteuerung)
|
||||
* @param data Bestellpostenteilmenge PKs
|
||||
*/
|
||||
OMSPrintPriceQRCodeDirect(data: PrintRequestOfIEnumerableOfPriceQRCodeDTO): __Observable<ResponseArgs> {
|
||||
return this.OMSPrintPriceQRCodeDirectResponse(data).pipe(
|
||||
__map(_r => _r.body as ResponseArgs)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Lieferschein
|
||||
* @param data Lieferschein PKs
|
||||
@@ -207,6 +282,42 @@ class OMSPrintService extends __BaseService {
|
||||
__map(_r => _r.body as ResponseArgs)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Kleinbetragsrechnung
|
||||
* @param data Kleinbetragsrechnung PKs
|
||||
*/
|
||||
OMSPrintKleinbetragsrechnungResponse(data: PrintRequestOfIEnumerableOfLong): __Observable<__StrictHttpResponse<ResponseArgs>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = data;
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/print/kleinbetragsrechnung`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgs>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Kleinbetragsrechnung
|
||||
* @param data Kleinbetragsrechnung PKs
|
||||
*/
|
||||
OMSPrintKleinbetragsrechnung(data: PrintRequestOfIEnumerableOfLong): __Observable<ResponseArgs> {
|
||||
return this.OMSPrintKleinbetragsrechnungResponse(data).pipe(
|
||||
__map(_r => _r.body as ResponseArgs)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module OMSPrintService {
|
||||
|
||||
@@ -7,6 +7,7 @@ import { StrictHttpResponse as __StrictHttpResponse } from '../strict-http-respo
|
||||
import { Observable as __Observable } from 'rxjs';
|
||||
import { map as __map, filter as __filter } from 'rxjs/operators';
|
||||
|
||||
import { ResponseArgsOfIEnumerableOfString } from '../models/response-args-of-ienumerable-of-string';
|
||||
import { ListResponseArgsOfKeyValueDTOOfStringAndString } from '../models/list-response-args-of-key-value-dtoof-string-and-string';
|
||||
import { ResponseArgs } from '../models/response-args';
|
||||
import { PrintRequest } from '../models/print-request';
|
||||
@@ -15,11 +16,14 @@ import { PrintRequestOfString } from '../models/print-request-of-string';
|
||||
providedIn: 'root',
|
||||
})
|
||||
class PrintService extends __BaseService {
|
||||
static readonly PrintInitializeLabelPrintersPath = '/printers/label/init';
|
||||
static readonly PrintInitializeOfficePrintersPath = '/printers/office/init';
|
||||
static readonly PrintPrintersPath = '/printers';
|
||||
static readonly PrintLabelPrintersPath = '/printers/label';
|
||||
static readonly PrintOfficePrintersPath = '/printers/office';
|
||||
static readonly PrintTestPath = '/print/test';
|
||||
static readonly PrintPrinterDetailsPath = '/printers/details';
|
||||
static readonly PrintDirectPrintTestPath = '/printers/directprinttest';
|
||||
static readonly PrintPrintPdfPath = '/print/pdf';
|
||||
static readonly PrintMonitorPath = '/print/monitor';
|
||||
static readonly PrintStatusPath = '/print/status';
|
||||
@@ -31,6 +35,72 @@ class PrintService extends __BaseService {
|
||||
super(config, http);
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize label printers
|
||||
*/
|
||||
PrintInitializeLabelPrintersResponse(): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfString>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/printers/label/init`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfString>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Initialize label printers
|
||||
*/
|
||||
PrintInitializeLabelPrinters(): __Observable<ResponseArgsOfIEnumerableOfString> {
|
||||
return this.PrintInitializeLabelPrintersResponse().pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfIEnumerableOfString)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize office printers
|
||||
*/
|
||||
PrintInitializeOfficePrintersResponse(): __Observable<__StrictHttpResponse<ResponseArgsOfIEnumerableOfString>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/printers/office/init`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgsOfIEnumerableOfString>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* Initialize office printers
|
||||
*/
|
||||
PrintInitializeOfficePrinters(): __Observable<ResponseArgsOfIEnumerableOfString> {
|
||||
return this.PrintInitializeOfficePrintersResponse().pipe(
|
||||
__map(_r => _r.body as ResponseArgsOfIEnumerableOfString)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Verfügbare Drucker
|
||||
*/
|
||||
@@ -202,6 +272,40 @@ class PrintService extends __BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param data undefined
|
||||
*/
|
||||
PrintDirectPrintTestResponse(data: PrintRequest): __Observable<__StrictHttpResponse<ResponseArgs>> {
|
||||
let __params = this.newParams();
|
||||
let __headers = new HttpHeaders();
|
||||
let __body: any = null;
|
||||
__body = data;
|
||||
let req = new HttpRequest<any>(
|
||||
'POST',
|
||||
this.rootUrl + `/printers/directprinttest`,
|
||||
__body,
|
||||
{
|
||||
headers: __headers,
|
||||
params: __params,
|
||||
responseType: 'json'
|
||||
});
|
||||
|
||||
return this.http.request<any>(req).pipe(
|
||||
__filter(_r => _r instanceof HttpResponse),
|
||||
__map((_r) => {
|
||||
return _r as __StrictHttpResponse<ResponseArgs>;
|
||||
})
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @param data undefined
|
||||
*/
|
||||
PrintDirectPrintTest(data: PrintRequest): __Observable<ResponseArgs> {
|
||||
return this.PrintDirectPrintTestResponse(data).pipe(
|
||||
__map(_r => _r.body as ResponseArgs)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Druckt das übergebene Pdf-Dokument (base64)
|
||||
* @param data Artikel
|
||||
|
||||
Reference in New Issue
Block a user