@cbm-common/cbm-types 0.0.283 → 0.0.285

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.
@@ -29,10 +29,12 @@ export declare class CbmDetailBySectionComponent implements OnInit {
29
29
  private readonly notificationService;
30
30
  EType: typeof CbmDetailBySectionModel.Type;
31
31
  private loadedConfig;
32
+ private appliedConfigSignature;
32
33
  constructor(destroyRef: DestroyRef, salesAccountBillingGroupByOriginRepository: CbmSalesAccountBillingGroupByOriginDomainRepository, notificationService: CbmNotificationService);
33
34
  'collection-origin-id': import("@angular/core").InputSignal<string | null>;
34
35
  'collection-name': import("@angular/core").InputSignal<string | null>;
35
36
  'enable-loaded-settings': import("@angular/core").InputSignal<boolean>;
37
+ 'get-saved-printout': import("@angular/core").OutputEmitterRef<string>;
36
38
  labels: import("@angular/core").WritableSignal<{
37
39
  labelDetail: string;
38
40
  labelSection: string;
@@ -58,6 +60,17 @@ export declare class CbmDetailBySectionComponent implements OnInit {
58
60
  getConfig(): void;
59
61
  setLabels(labels: Partial<ReturnType<typeof this.labels>>): void;
60
62
  setDetail(input: Array<CbmDetailBySectionModel.InputDetail>): void;
63
+ setLoadedPrintoutConfig(config: {
64
+ details: Array<{
65
+ section_id?: string;
66
+ section_name: string;
67
+ sales_account_details: Array<{
68
+ sales_account_detail_id?: string;
69
+ item_id?: string;
70
+ item_code?: string;
71
+ }>;
72
+ }>;
73
+ }): void;
61
74
  reset(): void;
62
75
  searchTerm(term: string): void;
63
76
  createSection(): void;
@@ -80,6 +93,8 @@ export declare class CbmDetailBySectionComponent implements OnInit {
80
93
  private getAvailableDetailsByType;
81
94
  private getSourceDetailsByType;
82
95
  private applyLoadedConfig;
96
+ private getSourceDetailsSignature;
97
+ private getLoadedConfigSignature;
83
98
  private loadCategory;
84
99
  private getDetailKey;
85
100
  }
@@ -20,6 +20,7 @@ import { CbmNotificationService } from '../../remotes/services.remote';
20
20
  import { ItemDetails } from '../item-details/item-details';
21
21
  import { CbmModalConfirmComponent } from '../modal-confirm/modal-confirm';
22
22
  import { CbmServiceDetails } from '../service-details/service-details';
23
+ import { CbmSubtotalDetails } from '../subtotal-details/subtotal-details';
23
24
  import { CbmTaxesModal } from '../taxes-modal/taxes-modal.model';
24
25
  import { FoliosModal } from './folios-modal/folios-modal';
25
26
  import { GeneralDomainService } from '../../domain/services/general.domain.service';
@@ -83,6 +84,7 @@ export declare class CbmPmsAddCharge implements OnInit {
83
84
  protected foliosModalRef: import("@angular/core").Signal<FoliosModal>;
84
85
  protected itemDetailsComp: import("@angular/core").Signal<ItemDetails>;
85
86
  protected serviceDetailsComp: import("@angular/core").Signal<CbmServiceDetails | undefined>;
87
+ protected subtotalDetailsComp: import("@angular/core").Signal<CbmSubtotalDetails | undefined>;
86
88
  modalConfirm: import("@angular/core").Signal<CbmModalConfirmComponent>;
87
89
  'on-charge-saved': import("@angular/core").OutputEmitterRef<void>;
88
90
  'on-cancel': import("@angular/core").OutputEmitterRef<void>;
@@ -85,6 +85,19 @@ export declare namespace CbmChargeModel {
85
85
  default_cost_center_name: string;
86
86
  default_cost_center_father_code: string;
87
87
  default_cost_center_father_name: string;
88
+ tax_base: number;
89
+ discount: number;
90
+ tax_base_iva: number;
91
+ tax_base_iva_rate_0: number;
92
+ tax_base_iva_exempt: number;
93
+ tax_base_iva_not_subject: number;
94
+ tax_base_irbpnr: number;
95
+ tax_base_ice: number;
96
+ tax_iva: number;
97
+ tax_irbpnr: number;
98
+ tax_ice: number;
99
+ service: number;
100
+ total: number;
88
101
  }
89
102
  namespace Save {
90
103
  interface ChargesDetail {
@@ -12,6 +12,8 @@ export declare namespace CbmSalesAccountBillingGroupByOriginModel {
12
12
  collection_origin_id: string;
13
13
  collection_origin_name: string;
14
14
  billing_group: Data.BillingGroup;
15
+ exists_sales_account_billing_group: boolean;
16
+ exists_sales_account_billing_group_id?: string;
15
17
  details: Data.Detail[];
16
18
  }
17
19
  namespace Data {
@@ -0,0 +1,92 @@
1
+ export declare namespace CbmSalesPendingDocumentModel {
2
+ type TTypeEstablishment = 'matrix' | 'branch';
3
+ export interface ListParams {
4
+ page: number;
5
+ size: number;
6
+ document_number?: string;
7
+ date_end?: number;
8
+ date_begin?: number;
9
+ client_id?: string;
10
+ client_branch_id?: string;
11
+ type?: string;
12
+ }
13
+ export interface ListResponse {
14
+ success: boolean;
15
+ pageNum: number;
16
+ pageSize: number;
17
+ pages: number;
18
+ total: number;
19
+ totales: ListResponse.totales;
20
+ items: ListResponse.Item[];
21
+ }
22
+ export namespace ListResponse {
23
+ interface Item {
24
+ _id: string;
25
+ created_at: number;
26
+ document_nomenclature: string;
27
+ document_number: string;
28
+ document_emission_point_number: string;
29
+ document_sequence: string;
30
+ new_document_number: string;
31
+ balance: number;
32
+ client_id: string;
33
+ client_payment_deadline?: number;
34
+ client_credit_limit?: number;
35
+ client_business_name: string;
36
+ client_trade_name: string;
37
+ client_document_number: string;
38
+ client_credit_application: boolean;
39
+ client_price_list_id: string;
40
+ client_price_list_code: string;
41
+ client_price_list_name: string;
42
+ client_document_type_id: string;
43
+ client_document_type_name: string;
44
+ client_document_type_code: string;
45
+ client_category_id: string;
46
+ client_category_name: string;
47
+ client_branch_id: string;
48
+ client_branch_code: string;
49
+ client_branch_name: string;
50
+ client_branch_address: string;
51
+ client_branch_email: string[];
52
+ client_branch_phone_code?: string;
53
+ client_branch_phone?: string;
54
+ client_branch_cellphone?: string;
55
+ client_branch_type_establishment: `${TTypeEstablishment}`;
56
+ client_branch_province_id?: string;
57
+ client_branch_province_code?: string;
58
+ client_branch_province_name?: string;
59
+ client_branch_canton_id?: string;
60
+ client_branch_canton_code?: string;
61
+ client_branch_canton_name?: string;
62
+ client_branch_parish_id?: string;
63
+ client_branch_parish_code?: string;
64
+ client_branch_parish_name?: string;
65
+ client_branch_longitude?: number;
66
+ client_branch_latitude?: number;
67
+ client_branch_seller_id: string;
68
+ client_branch_seller_identification_number: string;
69
+ client_branch_seller_full_name: string;
70
+ client_branch_seller_address: string;
71
+ client_branch_seller_email: string[];
72
+ client_branch_seller_cellphone: string;
73
+ client_branch_contact_id?: string;
74
+ client_branch_contact_identification_number?: string;
75
+ client_branch_contact_full_name?: string;
76
+ client_branch_contact_cellphone?: string;
77
+ client_branch_contact_email?: string[];
78
+ date: number;
79
+ type: string;
80
+ checked?: boolean;
81
+ }
82
+ interface totales {
83
+ total_retention?: number;
84
+ total_down_payment?: number;
85
+ total_credit_note?: number;
86
+ total_initial_balance_retention?: number;
87
+ total_initial_balance_down_payment?: number;
88
+ total_initial_balance_credit_note?: number;
89
+ }
90
+ }
91
+ export {};
92
+ }
@@ -0,0 +1,8 @@
1
+ import { Observable } from 'rxjs';
2
+ import { CbmSalesPendingDocumentModel } from '../models/sales-pending-document.domain.model';
3
+ import { ICbmSalesPendingDocumentRepository } from '../../infrastructure/repositories/sales-pending-document.infrastructure.repository';
4
+ export declare class CbmSalesPendingDocumentRepository implements ICbmSalesPendingDocumentRepository {
5
+ private service;
6
+ constructor(service: ICbmSalesPendingDocumentRepository);
7
+ list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { Observable } from 'rxjs';
2
+ import { CbmSalesPendingDocumentModel } from '../../domain/models/sales-pending-document.domain.model';
3
+ export interface ICbmSalesPendingDocumentRepository {
4
+ list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
5
+ }
@@ -0,0 +1,9 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { CbmSalesPendingDocumentModel } from '../../domain/models/sales-pending-document.domain.model';
4
+ export declare class CbmSalesPendingDocumentService {
5
+ private http;
6
+ constructor(http: HttpClient);
7
+ private readonly url;
8
+ list(params: CbmSalesPendingDocumentModel.ListParams): Observable<CbmSalesPendingDocumentModel.ListResponse>;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cbm-common/cbm-types",
3
- "version": "0.0.283",
3
+ "version": "0.0.285",
4
4
  "main": "index.js",
5
5
  "types": "public-api.d.ts",
6
6
  "exports": {
@@ -9,4 +9,4 @@
9
9
  "types": "./public-api.d.ts"
10
10
  }
11
11
  }
12
- }
12
+ }