@cbm-common/cbm-types 0.0.253 → 0.0.254
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/lib/components/pms-add-charge/pms-add-charge.d.ts +5 -0
- package/lib/components/stock-by-warehouse/stock-by-warehouse.d.ts +1 -0
- package/lib/domain/models/item.domain.model.d.ts +2 -5
- package/lib/domain/repositories/sales-account.domain.repository.d.ts +1 -0
- package/lib/infrastructure/repositories/sales-account.infrastructure.repository.d.ts +1 -0
- package/lib/infrastructure/services/sales-account.infrastructure.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -36,6 +36,7 @@ export declare class CbmPmsAddCharge implements OnInit {
|
|
|
36
36
|
private generalService;
|
|
37
37
|
constructor(destroyRef: DestroyRef, roomRepository: CbmRoomRepository, chargeRepository: CbmChargeRepository, notificationService: CbmNotificationService, authService: CbmAuthReactiveService, salesAccountRepository: CbmSalesAccountDomainRepository, costCenterRepository: CbmCostCenterRepository, irbpnrService: CbmIrbpnrDomainService, clientRepository: CbmClientDomainRepository, generalService: GeneralDomainService);
|
|
38
38
|
disableGuard: boolean;
|
|
39
|
+
defaultPrintOption: import("@angular/core").WritableSignal<string | null>;
|
|
39
40
|
formDirty: () => boolean;
|
|
40
41
|
chargeFormGroup: FormGroup<{
|
|
41
42
|
service_type: FormControl<number | null>;
|
|
@@ -48,6 +49,7 @@ export declare class CbmPmsAddCharge implements OnInit {
|
|
|
48
49
|
protected rooms$: PaginatedListService<CbmRoomModel.RoomStateResponse, CbmRoomModel.RoomStateParams, CbmRoomModel.RoomStateResponse.Items[]>;
|
|
49
50
|
protected costCenter$: ListService<CbmCostCenterModel.ListResponse, CbmCostCenterModel.ListParams, CbmCostCenterModel.ListResponse.Data[]>;
|
|
50
51
|
firstCostCenter$: Subject<void>;
|
|
52
|
+
private readonly printSettingsRepository;
|
|
51
53
|
protected foliosRoomId: import("@angular/core").WritableSignal<string | null>;
|
|
52
54
|
protected selectedFolio: import("@angular/core").WritableSignal<CbmSalesAccountModel.GetOneResponse.Data | null>;
|
|
53
55
|
protected priceList: import("@angular/core").Signal<Partial<CbmPriceListModel.ListResponse.Data>>;
|
|
@@ -79,12 +81,15 @@ export declare class CbmPmsAddCharge implements OnInit {
|
|
|
79
81
|
protected STATE: typeof STATE;
|
|
80
82
|
protected stOfSaveCharge: import("@angular/core").WritableSignal<STATE>;
|
|
81
83
|
ngOnInit(): void;
|
|
84
|
+
fetchPrintSetting(): Promise<void>;
|
|
85
|
+
printSettings$: ListService<import("../../domain/models/print-settings.domain.model").CbmPrintSettingsModel.ListResponse, import("../../domain/models/print-settings.domain.model").CbmPrintSettingsModel.ListParams, import("../../domain/models/print-settings.domain.model").CbmPrintSettingsModel.ListResponse.Data[]>;
|
|
82
86
|
private initRooms;
|
|
83
87
|
private initCostCenter;
|
|
84
88
|
protected subObservers(): void;
|
|
85
89
|
private buildChargeDetail;
|
|
86
90
|
saveCharge(): Promise<void>;
|
|
87
91
|
private downloadAndOpenPdf;
|
|
92
|
+
private printTicket;
|
|
88
93
|
protected getFolio(folio: CbmSalesAccountModel.ListResponse.Item): Promise<void>;
|
|
89
94
|
protected updateTotals(field: keyof typeof this.typeTotals, value: number): void;
|
|
90
95
|
}
|
|
@@ -22,6 +22,7 @@ export declare class StockByWarehouse {
|
|
|
22
22
|
serieStock: import("@angular/core").WritableSignal<CbmStockItemModel.ListResponseSerie.item[]>;
|
|
23
23
|
modalId: import("@angular/core").InputSignal<string>;
|
|
24
24
|
data: import("@angular/core").InputSignal<cbmStockWarehouseModalModel.item | null>;
|
|
25
|
+
viewModal: import("@angular/core").InputSignal<boolean>;
|
|
25
26
|
modalRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
26
27
|
constructor(stockItemRepository: CbmStockItemRepository, destroyRef: DestroyRef, notificationService: CbmNotificationService);
|
|
27
28
|
getWarehouseStock(): void;
|
|
@@ -277,7 +277,8 @@ export declare namespace CbmItemModel {
|
|
|
277
277
|
warehouse_stock_in_transit: number;
|
|
278
278
|
recount_warehouse: boolean;
|
|
279
279
|
locked_warehouse: boolean;
|
|
280
|
-
last_purchases:
|
|
280
|
+
last_purchases: number;
|
|
281
|
+
last_purchases_iva: number;
|
|
281
282
|
not_apply_discount_group?: boolean;
|
|
282
283
|
unit_measure_group_indicator?: boolean;
|
|
283
284
|
price_lists?: Item.PriceList[];
|
|
@@ -299,10 +300,6 @@ export declare namespace CbmItemModel {
|
|
|
299
300
|
_id: string;
|
|
300
301
|
location?: string | null;
|
|
301
302
|
}
|
|
302
|
-
interface LastPurchases {
|
|
303
|
-
_id?: string | number;
|
|
304
|
-
unit_cost: number;
|
|
305
|
-
}
|
|
306
303
|
interface PriceList {
|
|
307
304
|
_id: string;
|
|
308
305
|
price_list_id: string;
|
|
@@ -11,4 +11,5 @@ export declare class CbmSalesAccountDomainRepository {
|
|
|
11
11
|
save(data: CbmSalesAccountModel.Save): Observable<IGeneral.Confirm>;
|
|
12
12
|
updatePrice(id: string, data: CbmSalesAccountModel.UpdatePriceBody): Observable<IGeneral.Confirm>;
|
|
13
13
|
downloadIndividualPdf(id: string, params: CbmSalesAccountModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
|
|
14
|
+
printTicket(id: string, params: CbmSalesAccountModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
|
|
14
15
|
}
|
|
@@ -8,4 +8,5 @@ export interface ICbmSalesAccountRepository {
|
|
|
8
8
|
save(data: CbmSalesAccountModel.Save): Observable<IGeneral.Confirm>;
|
|
9
9
|
updatePrice(id: string, data: CbmSalesAccountModel.UpdatePriceBody): Observable<IGeneral.Confirm>;
|
|
10
10
|
downloadIndividualPdf(id: string, params: CbmSalesAccountModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
|
|
11
|
+
printTicket(id: string, params: CbmSalesAccountModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
|
|
11
12
|
}
|
|
@@ -8,9 +8,11 @@ export declare class CbmSalesAccountService implements ICbmSalesAccountRepositor
|
|
|
8
8
|
constructor(http: HttpClient);
|
|
9
9
|
private readonly baseUrl;
|
|
10
10
|
private readonly baseReportUrl;
|
|
11
|
+
private readonly baseReportChargeUrl;
|
|
11
12
|
list(params: CbmSalesAccountModel.ListParams): Observable<CbmSalesAccountModel.ListResponse>;
|
|
12
13
|
getOne(id: string): Observable<CbmSalesAccountModel.GetOneResponse>;
|
|
13
14
|
save(data: CbmSalesAccountModel.Save): Observable<IGeneral.Confirm>;
|
|
14
15
|
updatePrice(id: string, data: CbmSalesAccountModel.UpdatePriceBody): Observable<IGeneral.Confirm>;
|
|
15
16
|
downloadIndividualPdf(id: string, params: CbmSalesAccountModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
|
|
17
|
+
printTicket(id: string, params: CbmSalesAccountModel.DownloadIndividualPdfParams): Observable<HttpResponse<Blob>>;
|
|
16
18
|
}
|