techlify-inventory-common 18.34.0 → 18.35.0
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/esm2022/lib/inventory-common/stock-issuances/stock-issue-batch-form/stock-issue-batch-form.component.mjs +49 -6
- package/esm2022/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.mjs +5 -5
- package/esm2022/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form.module.mjs +8 -4
- package/esm2022/lib/inventory-common/stock-issuances/stock-issue-list/stock-issue-list.component.mjs +3 -3
- package/esm2022/lib/inventory-common/stock-issuances/stock-issue-routing.module.mjs +6 -1
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-batch-form/stock-receipt-batch-form.component.mjs +64 -8
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.mjs +6 -5
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.module.mjs +12 -5
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.mjs +3 -3
- package/esm2022/lib/inventory-common/stock-receipts/stock-receipts-routing.module.mjs +6 -1
- package/esm2022/lib/inventory-common/supplier/purchase-order/purchase-order-view/purchase-order-view.component.mjs +6 -5
- package/fesm2022/{techlify-inventory-common-category.module-BfcXygNN.mjs → techlify-inventory-common-category.module-CjruFhHc.mjs} +2 -2
- package/fesm2022/{techlify-inventory-common-category.module-BfcXygNN.mjs.map → techlify-inventory-common-category.module-CjruFhHc.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-measure.module-DIygZTaE.mjs → techlify-inventory-common-measure.module-B8UHsYQT.mjs} +2 -2
- package/fesm2022/{techlify-inventory-common-measure.module-DIygZTaE.mjs.map → techlify-inventory-common-measure.module-B8UHsYQT.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-purchase-order-view.component-CnfNn5jL.mjs → techlify-inventory-common-purchase-order-view.component-C5DXKp05.mjs} +6 -5
- package/fesm2022/techlify-inventory-common-purchase-order-view.component-C5DXKp05.mjs.map +1 -0
- package/fesm2022/{techlify-inventory-common-stock-issue-batch-form.component-CneSorqd.mjs → techlify-inventory-common-stock-issue-batch-form.component-D5Df9-Xg.mjs} +50 -7
- package/fesm2022/techlify-inventory-common-stock-issue-batch-form.component-D5Df9-Xg.mjs.map +1 -0
- package/fesm2022/{techlify-inventory-common-stock-issue-view.component-m3tsNDT-.mjs → techlify-inventory-common-stock-issue-view.component-Cm9zHnNw.mjs} +2 -2
- package/fesm2022/{techlify-inventory-common-stock-issue-view.component-m3tsNDT-.mjs.map → techlify-inventory-common-stock-issue-view.component-Cm9zHnNw.mjs.map} +1 -1
- package/fesm2022/{techlify-inventory-common-techlify-inventory-common-BoJjioLF.mjs → techlify-inventory-common-techlify-inventory-common-ekkMO8hI.mjs} +102 -27
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-ekkMO8hI.mjs.map +1 -0
- package/fesm2022/techlify-inventory-common.mjs +1 -1
- package/lib/inventory-common/stock-issuances/stock-issue-batch-form/stock-issue-batch-form.component.d.ts +6 -2
- package/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form.module.d.ts +2 -1
- package/lib/inventory-common/stock-receipts/stock-receipt-batch-form/stock-receipt-batch-form.component.d.ts +8 -2
- package/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.module.d.ts +2 -1
- package/lib/inventory-common/supplier/purchase-order/purchase-order-view/purchase-order-view.component.d.ts +1 -1
- package/package.json +1 -1
- package/fesm2022/techlify-inventory-common-purchase-order-view.component-CnfNn5jL.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-stock-issue-batch-form.component-CneSorqd.mjs.map +0 -1
- package/fesm2022/techlify-inventory-common-techlify-inventory-common-BoJjioLF.mjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a4 as ExportToExcelButtonComponent, _ as IncidentFormButtonComponent, Z as IncidentFormComponent, Y as IncidentListComponent, W as IncidentModule, X as IncidentService, h as InventoryCommonModule, I as InventoryCommonRoutingModule, a8 as LocationFormButtonComponent, a7 as LocationFormComponent, a6 as LocationListComponent, a5 as LocationModule, L as LocationService, M as MeasureService, V as PayeeSelectorComponent, U as PayeeSelectorModule, l as ProductBasicInfoComponent, t as ProductBatchUpdateFormComponent, m as ProductFormButtonComponent, k as ProductFormComponent, s as ProductFormService, u as ProductImportPageComponent, q as ProductListComponent, j as ProductModule, n as ProductQuickSearchComponent, p as ProductSearchComponent, o as ProductSearchModule, r as ProductService, v as ProductViewPageComponent, a3 as RatingFormButtonComponent, a2 as RatingFormComponent, a1 as RatingListComponent, $ as RatingModule, a0 as RatingService, ad as ShelfFormButtonComponent, ac as ShelfFormComponent, ab as ShelfListComponent, a9 as ShelfModule, aa as ShelfService, e as StockIssueFormButtonComponent, d as StockIssueFormModule, x as StockIssueListComponent, y as StockIssueListModule, w as StockIssueModule, A as StockReceiptDeleteButtonComponent, D as StockReceiptFormButtonComponent, C as StockReceiptFormModule, E as StockReceiptViewComponent, B as StockReceiptsListPageComponent, z as StockReceiptsModule, i as StockSummaryService, H as StockTransferFormButtonComponent, G as StockTransferFormComponent, F as StockTransferListComponent, J as StockTransferService, N as SupplierFormButtonComponent, O as SupplierFormComponent, K as SupplierModule, R as SupplierTypeService, Q as SuppliersListComponent, T as TechlifyFilterComponent, a as TechlifyFilterModule } from './techlify-inventory-common-techlify-inventory-common-
|
|
1
|
+
export { a4 as ExportToExcelButtonComponent, _ as IncidentFormButtonComponent, Z as IncidentFormComponent, Y as IncidentListComponent, W as IncidentModule, X as IncidentService, h as InventoryCommonModule, I as InventoryCommonRoutingModule, a8 as LocationFormButtonComponent, a7 as LocationFormComponent, a6 as LocationListComponent, a5 as LocationModule, L as LocationService, M as MeasureService, V as PayeeSelectorComponent, U as PayeeSelectorModule, l as ProductBasicInfoComponent, t as ProductBatchUpdateFormComponent, m as ProductFormButtonComponent, k as ProductFormComponent, s as ProductFormService, u as ProductImportPageComponent, q as ProductListComponent, j as ProductModule, n as ProductQuickSearchComponent, p as ProductSearchComponent, o as ProductSearchModule, r as ProductService, v as ProductViewPageComponent, a3 as RatingFormButtonComponent, a2 as RatingFormComponent, a1 as RatingListComponent, $ as RatingModule, a0 as RatingService, ad as ShelfFormButtonComponent, ac as ShelfFormComponent, ab as ShelfListComponent, a9 as ShelfModule, aa as ShelfService, e as StockIssueFormButtonComponent, d as StockIssueFormModule, x as StockIssueListComponent, y as StockIssueListModule, w as StockIssueModule, A as StockReceiptDeleteButtonComponent, D as StockReceiptFormButtonComponent, C as StockReceiptFormModule, E as StockReceiptViewComponent, B as StockReceiptsListPageComponent, z as StockReceiptsModule, i as StockSummaryService, H as StockTransferFormButtonComponent, G as StockTransferFormComponent, F as StockTransferListComponent, J as StockTransferService, N as SupplierFormButtonComponent, O as SupplierFormComponent, K as SupplierModule, R as SupplierTypeService, Q as SuppliersListComponent, T as TechlifyFilterComponent, a as TechlifyFilterModule } from './techlify-inventory-common-techlify-inventory-common-ekkMO8hI.mjs';
|
|
2
2
|
//# sourceMappingURL=techlify-inventory-common.mjs.map
|
|
@@ -2,7 +2,7 @@ import { OnInit } from "@angular/core";
|
|
|
2
2
|
import { FormArray, FormBuilder } from '@angular/forms';
|
|
3
3
|
import { FormValidatorService, TechlifyFormComponentInterface } from "ngx-techlify-core";
|
|
4
4
|
import { StockIssueService } from '../stock-issue.service';
|
|
5
|
-
import { Router } from '@angular/router';
|
|
5
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
6
|
import { LocationService } from '../../location/location.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class StockIssueBatchFormComponent extends TechlifyFormComponentInterface implements OnInit {
|
|
@@ -10,12 +10,16 @@ export declare class StockIssueBatchFormComponent extends TechlifyFormComponentI
|
|
|
10
10
|
private fb;
|
|
11
11
|
private stockIssueService;
|
|
12
12
|
private router;
|
|
13
|
+
private route;
|
|
13
14
|
private locationService;
|
|
14
15
|
locationCount: import("@angular/core").WritableSignal<number>;
|
|
15
|
-
|
|
16
|
+
stockIssue: import("@angular/core").WritableSignal<any>;
|
|
17
|
+
constructor(formValidatorService: FormValidatorService, fb: FormBuilder, stockIssueService: StockIssueService, router: Router, route: ActivatedRoute, locationService: LocationService);
|
|
16
18
|
ngOnInit(): void;
|
|
19
|
+
private loadStockIssue;
|
|
17
20
|
get stockIssueProducts(): FormArray;
|
|
18
21
|
createStockIssueProduct(): import("@angular/forms").FormGroup<{
|
|
22
|
+
id: import("@angular/forms").FormControl<string | null>;
|
|
19
23
|
product_id: import("@angular/forms").FormControl<string | null>;
|
|
20
24
|
location_id: import("@angular/forms").FormControl<string | null>;
|
|
21
25
|
quantity: import("@angular/forms").FormControl<number | null>;
|
|
@@ -5,8 +5,9 @@ import * as i3 from "@angular/common";
|
|
|
5
5
|
import * as i4 from "@angular/forms";
|
|
6
6
|
import * as i5 from "../../material.module";
|
|
7
7
|
import * as i6 from "ngx-techlify-core";
|
|
8
|
+
import * as i7 from "@angular/router";
|
|
8
9
|
export declare class StockIssueFormModule {
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<StockIssueFormModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StockIssueFormModule, [typeof i1.StockIssueFormComponent, typeof i2.StockIssueFormButtonComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.MaterialModule, typeof i6.SearchableSelectorModule, typeof i6.TechlifyFeatureModule, typeof i6.TechlifyIconModule], [typeof i2.StockIssueFormButtonComponent]>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StockIssueFormModule, [typeof i1.StockIssueFormComponent, typeof i2.StockIssueFormButtonComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.MaterialModule, typeof i6.SearchableSelectorModule, typeof i6.TechlifyFeatureModule, typeof i6.TechlifyIconModule, typeof i7.RouterModule], [typeof i2.StockIssueFormButtonComponent]>;
|
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<StockIssueFormModule>;
|
|
12
13
|
}
|
|
@@ -2,7 +2,7 @@ import { OnInit } from "@angular/core";
|
|
|
2
2
|
import { FormArray, FormBuilder } from '@angular/forms';
|
|
3
3
|
import { FormValidatorService, TechlifyFormComponentInterface } from "ngx-techlify-core";
|
|
4
4
|
import { StockReceiptService } from '../stock-receipt.service';
|
|
5
|
-
import { Router } from '@angular/router';
|
|
5
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
6
|
import { LocationService } from '../../location/location.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class StockReceiptBatchFormComponent extends TechlifyFormComponentInterface implements OnInit {
|
|
@@ -10,12 +10,17 @@ export declare class StockReceiptBatchFormComponent extends TechlifyFormComponen
|
|
|
10
10
|
private fb;
|
|
11
11
|
private stockReceiptService;
|
|
12
12
|
private router;
|
|
13
|
+
private route;
|
|
13
14
|
private locationService;
|
|
14
15
|
locationCount: import("@angular/core").WritableSignal<number>;
|
|
15
|
-
|
|
16
|
+
stockReceiptId: import("@angular/core").WritableSignal<number | null>;
|
|
17
|
+
stockReceipt: import("@angular/core").WritableSignal<any>;
|
|
18
|
+
constructor(formValidatorService: FormValidatorService, fb: FormBuilder, stockReceiptService: StockReceiptService, router: Router, route: ActivatedRoute, locationService: LocationService);
|
|
16
19
|
ngOnInit(): void;
|
|
20
|
+
private loadStockReceipt;
|
|
17
21
|
get stockReceiptProducts(): FormArray;
|
|
18
22
|
createStockReceiptProduct(): import("@angular/forms").FormGroup<{
|
|
23
|
+
id: import("@angular/forms").FormControl<string | null>;
|
|
19
24
|
product_id: import("@angular/forms").FormControl<string | null>;
|
|
20
25
|
location_id: import("@angular/forms").FormControl<string | null>;
|
|
21
26
|
quantity: import("@angular/forms").FormControl<number | null>;
|
|
@@ -23,6 +28,7 @@ export declare class StockReceiptBatchFormComponent extends TechlifyFormComponen
|
|
|
23
28
|
total_amount: import("@angular/forms").FormControl<number | null>;
|
|
24
29
|
particulars: import("@angular/forms").FormControl<string | null>;
|
|
25
30
|
}>;
|
|
31
|
+
getSelectedProduct(index: number): any;
|
|
26
32
|
addStockReceiptProduct(): void;
|
|
27
33
|
removeStockReceiptProduct(index: number): void;
|
|
28
34
|
clearProducts(): void;
|
package/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.module.d.ts
CHANGED
|
@@ -7,8 +7,9 @@ import * as i5 from "@angular/forms";
|
|
|
7
7
|
import * as i6 from "../../material.module";
|
|
8
8
|
import * as i7 from "ngx-techlify-core";
|
|
9
9
|
import * as i8 from "../../location/location-selector/location-selector.component";
|
|
10
|
+
import * as i9 from "@angular/router";
|
|
10
11
|
export declare class StockReceiptFormModule {
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<StockReceiptFormModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StockReceiptFormModule, [typeof i1.StockReceiptFormComponent, typeof i2.StockReceiptFormButtonComponent], [typeof i3.CommonModule, typeof i4.PayeeSelectorModule, typeof i5.ReactiveFormsModule, typeof i6.MaterialModule, typeof i7.SearchableSelectorModule, typeof i7.TechlifyFeatureModule, typeof i8.LocationSelectorComponent], [typeof i2.StockReceiptFormButtonComponent]>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StockReceiptFormModule, [typeof i1.StockReceiptFormComponent, typeof i2.StockReceiptFormButtonComponent], [typeof i3.CommonModule, typeof i4.PayeeSelectorModule, typeof i5.ReactiveFormsModule, typeof i6.MaterialModule, typeof i7.SearchableSelectorModule, typeof i7.TechlifyFeatureModule, typeof i8.LocationSelectorComponent, typeof i7.TechlifyIconModule, typeof i9.RouterModule], [typeof i2.StockReceiptFormButtonComponent]>;
|
|
13
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<StockReceiptFormModule>;
|
|
14
15
|
}
|
|
@@ -5,7 +5,7 @@ import { PurchaseOrderService } from '../purchase-order.service';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class PurchaseOrderViewComponent implements OnInit {
|
|
7
7
|
private activatedRoute;
|
|
8
|
-
|
|
8
|
+
protected service: PurchaseOrderService;
|
|
9
9
|
private location;
|
|
10
10
|
id: number;
|
|
11
11
|
isLoading: boolean;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"techlify-inventory-common-purchase-order-view.component-CnfNn5jL.mjs","sources":["../../../projects/inventory-common/src/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product.service.ts","../../../projects/inventory-common/src/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product-form/purchase-order-product-form.component.ts","../../../projects/inventory-common/src/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product-form/purchase-order-product-form.component.html","../../../projects/inventory-common/src/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product-form-button/purchase-order-product-form-button.component.ts","../../../projects/inventory-common/src/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product-form-button/purchase-order-product-form-button.component.html","../../../projects/inventory-common/src/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product-list.component.ts","../../../projects/inventory-common/src/lib/inventory-common/supplier/purchase-order/purchase-order-product-list/purchase-order-product-list.component.html","../../../projects/inventory-common/src/lib/inventory-common/supplier/purchase-order/purchase-order-view/purchase-order-view.component.ts","../../../projects/inventory-common/src/lib/inventory-common/supplier/purchase-order/purchase-order-view/purchase-order-view.component.html"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { HttpService, TechlifyServiceBaseClass } from 'ngx-techlify-core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class PurchaseOrderProductService extends TechlifyServiceBaseClass {\n constructor(protected override http: HttpService) {\n super(http, 'purchase-order-products');\n }\n}\n","import { Component, Inject, OnInit } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormBuilder, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { FormValidatorService, SearchableSelectorModule, TechlifyFormComponentInterface } from 'ngx-techlify-core';\nimport { MAT_DIALOG_DATA, MatDialogContent, MatDialogRef, MatDialogTitle } from '@angular/material/dialog';\nimport { MaterialModule } from '../../../../material.module';\nimport { PurchaseOrderProductService } from '../purchase-order-product.service';\n\n@Component({\n selector: 'app-purchase-order-product-form',\n templateUrl: './purchase-order-product-form.component.html',\n standalone: true,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MaterialModule,\n SearchableSelectorModule,\n MatDialogTitle,\n MatDialogContent,\n ],\n})\nexport class PurchaseOrderProductFormComponent extends TechlifyFormComponentInterface implements OnInit {\n\n constructor(\n formValidatorService: FormValidatorService,\n private fb: FormBuilder,\n protected override service: PurchaseOrderProductService,\n dialogRef: MatDialogRef<PurchaseOrderProductFormComponent>,\n @Inject(MAT_DIALOG_DATA) public data: any,\n ) {\n super(formValidatorService);\n this.dialogRef = dialogRef;\n\n this.errorMessages = {\n product_id: { required: 'Product is required.' },\n quantity: { required: 'Quantity is required.', min: 'Quantity must be at least 1.' },\n unit_id: { required: 'Unit is required.' },\n };\n\n this.form = this.fb.group({\n id: [''],\n purchase_order_id: ['', Validators.required],\n product_id: ['', Validators.required],\n quantity: [1, [Validators.required, Validators.min(1)]],\n unit_id: ['', Validators.required],\n details: [''],\n });\n }\n\n ngOnInit(): void {\n this.form.patchValue({ purchase_order_id: this.data.purchaseOrderId });\n\n const product = this.data.purchaseOrderProduct;\n if (product) {\n this.isUpdate = true;\n this.form.patchValue({\n id: product.id,\n product_id: product.product_id,\n quantity: product.quantity,\n unit_id: product.unit_id,\n details: product.details ?? '',\n });\n }\n }\n\n cancel(): void {\n this.dialogRef.close();\n }\n}\n","<h3 mat-dialog-title class='text-center'> Product Form </h3>\n\n<mat-dialog-content>\n <form [formGroup]=\"form\" (submit)=\"submit(form.value)\" class=\"d-flex flex-column gap-3 mt-2\">\n\n <mat-form-field class=\"w-100\">\n <mat-label>Product</mat-label>\n <app-searchable-selector formControlName=\"product_id\" apiUrl=\"api/products\" titleField=\"name\"\n [cache]=\"true\"></app-searchable-selector>\n <mat-error *ngIf=\"isFieldValid('product_id')\">{{ getErrorMessage('product_id') }}</mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"w-100\">\n <mat-label>Quantity</mat-label>\n <input matInput type=\"number\" formControlName=\"quantity\" min=\"1\">\n <mat-error *ngIf=\"isFieldValid('quantity')\">{{ getErrorMessage('quantity') }}</mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"w-100\">\n <mat-label>Unit</mat-label>\n <app-searchable-selector formControlName=\"unit_id\" apiUrl=\"api/product-measures\"\n titleField=\"title\"></app-searchable-selector>\n <mat-error *ngIf=\"isFieldValid('unit_id')\">{{ getErrorMessage('unit_id') }}</mat-error>\n </mat-form-field>\n\n <mat-form-field class=\"w-100\">\n <mat-label>Details</mat-label>\n <textarea matInput formControlName=\"details\" rows=\"3\"></textarea>\n </mat-form-field>\n\n <div class=\"d-flex justify-content-end gap-2\">\n <button mat-flat-button type=\"button\" [disabled]=\"isWorking\" (click)=\"cancel()\">Cancel</button>\n <button mat-raised-button color=\"primary\" type=\"submit\" [disabled]=\"isWorking\">Save</button>\n </div>\n\n </form>\n</mat-dialog-content>","import { Component, output } from '@angular/core';\nimport { input } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { TechlifyIconModule } from 'ngx-techlify-core';\nimport { PurchaseOrderProductFormComponent } from '../purchase-order-product-form/purchase-order-product-form.component';\n\n@Component({\n selector: 'app-purchase-order-product-form-button',\n templateUrl: './purchase-order-product-form-button.component.html',\n standalone: true,\n imports: [\n TechlifyIconModule,\n ],\n})\nexport class PurchaseOrderProductFormButtonComponent {\n\n purchaseOrderProduct = input<any>();\n purchaseOrderId = input.required<number>();\n\n saved = output<any>();\n\n constructor(private dialog: MatDialog) { }\n\n open(): void {\n this.dialog.open(PurchaseOrderProductFormComponent, {\n width: '500px',\n data: {\n purchaseOrderId: this.purchaseOrderId(),\n purchaseOrderProduct: this.purchaseOrderProduct(),\n },\n }).afterClosed().subscribe((item: any) => {\n if (item) {\n this.saved.emit(item);\n }\n });\n }\n}\n","<app-techlify-icon\n role=\"button\"\n [name]=\"purchaseOrderProduct() ? 'edit' : 'add'\"\n (click)=\"open()\">\n</app-techlify-icon>\n","import { Component, effect, OnInit, input } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormBuilder, ReactiveFormsModule } from '@angular/forms';\nimport { MaterialModule } from '../../../material.module';\nimport { TechlifyDeleteButtonComponent, TechlifyIconModule, TechlifyListingControllerInterface } from 'ngx-techlify-core';\nimport { PurchaseOrderProductService } from './purchase-order-product.service';\nimport { PurchaseOrderProductFormButtonComponent } from './purchase-order-product-form-button/purchase-order-product-form-button.component';\n\n@Component({\n selector: 'app-purchase-order-product-list',\n templateUrl: './purchase-order-product-list.component.html',\n standalone: true,\n imports: [\n CommonModule,\n MaterialModule,\n ReactiveFormsModule,\n TechlifyIconModule,\n PurchaseOrderProductFormButtonComponent,\n TechlifyDeleteButtonComponent\n ],\n})\nexport class PurchaseOrderProductListComponent extends TechlifyListingControllerInterface implements OnInit {\n\n purchaseOrderId = input<number>();\n\n displayedColumns: string[] = [\n '#',\n 'product',\n 'quantity',\n 'unit',\n 'details',\n 'actions',\n ];\n\n constructor(\n protected override service: PurchaseOrderProductService,\n private fb: FormBuilder,\n ) {\n super(service);\n this.isFilterPatchFromRoute = false;\n this.filterForm = this.fb.group({\n purchase_order_id: [''],\n sort_by: ['product|ASC'],\n });\n\n effect(() => {\n const id = this.purchaseOrderId();\n if (id) {\n this.filterForm.get('purchase_order_id')?.setValue(id, { emitEvent: false });\n this.reload();\n }\n });\n }\n\n ngOnInit(): void {\n this.listenFilterChanges();\n }\n}\n","<mat-card class=\"w-100\">\n <mat-card-content>\n <div class=\"d-flex justify-content-between align-items-center mb-2\">\n <div class=\"d-flex flex-row gap-2\">\n <h5>Products</h5>\n <app-purchase-order-product-form-button [purchaseOrderId]=\"purchaseOrderId()!\"\n (saved)=\"reload()\">\n </app-purchase-order-product-form-button>\n </div>\n </div>\n\n <table mat-table [dataSource]=\"models\" class=\"w-100\" matSort (matSortChange)=\"sortColumn($event)\">\n <!-- # Column -->\n <ng-container matColumnDef=\"#\">\n <th mat-header-cell *matHeaderCellDef>#</th>\n <td mat-cell *matCellDef=\"let element; let i = index\">{{ i + 1 }}</td>\n </ng-container>\n\n <!-- Product Column -->\n <ng-container matColumnDef=\"product\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"product\" disableClear>Product</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.product?.name }}</td>\n </ng-container>\n\n <!-- Quantity Column -->\n <ng-container matColumnDef=\"quantity\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"quantity\" disableClear>Quantity</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.quantity }}</td>\n </ng-container>\n\n <!-- Unit Column -->\n <ng-container matColumnDef=\"unit\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header=\"unit\" disableClear>Unit</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.unit?.title }}</td>\n </ng-container>\n\n <!-- Details Column -->\n <ng-container matColumnDef=\"details\">\n <th mat-header-cell *matHeaderCellDef>Details</th>\n <td mat-cell *matCellDef=\"let element\">{{ element?.details }}</td>\n </ng-container>\n\n <!-- Actions Column -->\n <ng-container matColumnDef=\"actions\">\n <th mat-header-cell *matHeaderCellDef>Actions</th>\n <td mat-cell *matCellDef=\"let element; let i = index\">\n <span class=\"text-secondary d-flex align-items-center gap-2\">\n <app-purchase-order-product-form-button [purchaseOrderId]=\"purchaseOrderId()!\"\n [purchaseOrderProduct]=\"element\" (saved)=\"reload()\">\n </app-purchase-order-product-form-button>\n\n <app-techlify-delete-button (deleted)=\"reload()\" [service]=\"service\" [model]=\"element\"\n [data]=\"{title: element?.product?.name, type: 'Purchase Order Product'}\"></app-techlify-delete-button>\n </span>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns\"></tr>\n </table>\n\n <mat-progress-bar *ngIf=\"isWorking\" mode=\"indeterminate\"></mat-progress-bar>\n </mat-card-content>\n</mat-card>","import { Component, OnInit } from '@angular/core';\nimport { CommonModule, Location } from '@angular/common';\nimport { ActivatedRoute, RouterLink } from '@angular/router';\nimport { MaterialModule } from '../../../material.module';\nimport { PurchaseOrderService } from '../purchase-order.service';\nimport { NoteModule, TechlifyIconModule } from 'ngx-techlify-core';\nimport { PurchaseOrderProductListComponent } from '../purchase-order-product-list/purchase-order-product-list.component';\n\n@Component({\n selector: 'app-purchase-order-view',\n templateUrl: './purchase-order-view.component.html',\n standalone: true,\n imports: [\n CommonModule,\n MaterialModule,\n RouterLink,\n NoteModule,\n TechlifyIconModule,\n PurchaseOrderProductListComponent\n ],\n})\nexport class PurchaseOrderViewComponent implements OnInit {\n\n id!: number;\n isLoading!: boolean;\n purchaseOrder!: any;\n\n constructor(\n private activatedRoute: ActivatedRoute,\n private service: PurchaseOrderService,\n private location: Location\n ) { }\n\n ngOnInit(): void {\n this.activatedRoute.params.subscribe(params => {\n this.id = parseInt(params['id']);\n if (this.id) {\n this.loadData();\n }\n });\n }\n\n loadData() {\n this.isLoading = true;\n this.service.show(this.id, { with: 'supplier' }).subscribe({\n next: (response: any) => {\n this.purchaseOrder = response?.item;\n this.isLoading = false;\n },\n error: () => {\n this.isLoading = false;\n }\n });\n }\n\n redirectBack() {\n this.location.back();\n }\n}\n","<mat-progress-bar mode=\"indeterminate\" *ngIf=\"isLoading\"></mat-progress-bar>\n\n<div *ngIf=\"purchaseOrder\" class=\"d-flex flex-column justify-content-start gap-2\">\n <div class=\"d-flex justify-content-start align-items-start gap-2\">\n <div class=\"d-flex flex-column gap-2\" style=\"width: 400px\">\n <mat-card>\n <mat-card-content class=\"d-flex justify-content-between align-items-center gap-2\">\n <div class=\"d-flex justify-content-start align-items-center gap-2\">\n <span class=\"material-symbols-outlined\">ungroup</span>\n <strong class=\"mb-0 text-dark\">PO #{{ purchaseOrder?.po_number }}</strong>\n </div>\n <div class=\"d-flex justify-content-start align-items-center gap-2\">\n <app-techlify-icon role='button' name='edit' class='text-secondary'\n [routerLink]=\"['/inventory/suppliers/purchase-orders/form', purchaseOrder?.id]\"></app-techlify-icon>\n </div>\n </mat-card-content>\n <mat-card-content class=\"d-flex flex-wrap justify-content-between gap-2 mt-3\">\n <!-- Date -->\n <div class=\"row\" *ngIf=\"purchaseOrder?.date\">\n <div class=\"col-12\">\n <div class=\"d-flex flex-column gap-0\">\n <small class=\"text-secondary\">Date</small>\n <p class=\"mb-0\">{{ purchaseOrder?.date | date:'mediumDate' }}</p>\n </div>\n </div>\n </div>\n\n <!-- PO # -->\n <div class=\"row\" *ngIf=\"purchaseOrder?.po_number\">\n <div class=\"col-12\">\n <div class=\"d-flex flex-column gap-0\">\n <small class=\"text-secondary\">PO #</small>\n <p class=\"mb-0\">{{ purchaseOrder?.po_number }}</p>\n </div>\n </div>\n </div>\n\n <!-- Supplier -->\n <div class=\"row\" *ngIf=\"purchaseOrder?.supplier\">\n <div class=\"col-12\">\n <div class=\"d-flex flex-column gap-0\">\n <small class=\"text-secondary\">Supplier</small>\n <a class=\"text-decoration-none text-dark\"\n [routerLink]=\"['/inventory/suppliers', purchaseOrder?.supplier?.id, 'view']\">\n {{ purchaseOrder?.supplier?.company_name }}\n </a>\n </div>\n </div>\n </div>\n\n <!-- Details -->\n <div class=\"row\" *ngIf=\"purchaseOrder?.details\">\n <div class=\"col-12\">\n <div class=\"d-flex flex-column gap-0\">\n <small class=\"text-secondary\">Details</small>\n <p class=\"mb-0\">{{ purchaseOrder?.details }}</p>\n </div>\n </div>\n </div>\n </mat-card-content>\n </mat-card>\n\n <app-note-list labelText=\"Notes\" viewMode=\"timeline\" modelType=\"PurchaseOrder\"\n [relatedModelId]=\"purchaseOrder?.id\"></app-note-list>\n </div>\n\n <app-purchase-order-product-list class='w-100' [purchaseOrderId]=\"purchaseOrder?.id\"></app-purchase-order-product-list>\n </div>\n</div>"],"names":["i6","i4","i7","i8","i1","i2","i1.PurchaseOrderProductService","i2.PurchaseOrderService"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAMM,MAAO,2BAA4B,SAAQ,wBAAwB,CAAA;AACtC,IAAA,IAAA,CAAA;AAA/B,IAAA,WAAA,CAA+B,IAAiB,EAAA;AAC5C,QAAA,KAAK,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAAC;QADZ,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAa;KAE/C;wGAHQ,2BAA2B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA3B,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,cAFxB,MAAM,EAAA,CAAA,CAAA;;4FAET,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAHvC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE,MAAM;AACrB,iBAAA,CAAA;;;ACgBK,MAAO,iCAAkC,SAAQ,8BAA8B,CAAA;AAIrE,IAAA,EAAA,CAAA;AACW,IAAA,OAAA,CAAA;AAEa,IAAA,IAAA,CAAA;IALpC,WACI,CAAA,oBAA0C,EAClC,EAAe,EACJ,OAAoC,EACvD,SAA0D,EAC1B,IAAS,EAAA;QAEzC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QALpB,IAAE,CAAA,EAAA,GAAF,EAAE,CAAa;QACJ,IAAO,CAAA,OAAA,GAAP,OAAO,CAA6B;QAEvB,IAAI,CAAA,IAAA,GAAJ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AiC,EAAA,QAAA,EAAA,iCAAA,EAAA,MAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,CAAA,EAAA,mBAAA,EAAA,IAAA,EAAA,CAAA,CAAA;;4FAG5B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAbtC,SAAS;+BACI,yBAAyB,EAAA,UAAA,EAEvB,IAAI,EACP,OAAA,EAAA;wBACL,YAAY;wBACZ,cAAc;wBACd,UAAU;wBACV,UAAU;wBACV,kBAAkB;wBAClB,iCAAiC;AACpC,qBAAA,EAAA,QAAA,EAAA,+vHAAA,EAAA,CAAA;;;;;"}
|
package/fesm2022/techlify-inventory-common-stock-issue-batch-form.component-CneSorqd.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"techlify-inventory-common-stock-issue-batch-form.component-CneSorqd.mjs","sources":["../../../projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-batch-form/stock-issue-batch-form.component.ts","../../../projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-batch-form/stock-issue-batch-form.component.html"],"sourcesContent":["import { Component, OnInit, signal } from \"@angular/core\";\nimport { FormArray, FormBuilder, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { FormValidatorService, TechlifyFormComponentInterface, TechlifyIconModule } from \"ngx-techlify-core\";\nimport { MaterialModule } from '../../material.module';\nimport { CommonModule } from '@angular/common';\nimport { SearchableSelectorModule } from 'ngx-techlify-core';\nimport { LocationSelectorComponent } from '../../location/location-selector/location-selector.component';\nimport { StockIssueService } from '../stock-issue.service';\nimport { Router } from '@angular/router';\nimport moment from 'moment';\nimport { LocationService } from '../../location/location.service';\n\n@Component({\n selector: 'app-stock-issue-batch-form',\n templateUrl: './stock-issue-batch-form.component.html',\n standalone: true,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MaterialModule,\n SearchableSelectorModule,\n LocationSelectorComponent,\n TechlifyIconModule\n ]\n})\n\nexport class StockIssueBatchFormComponent extends TechlifyFormComponentInterface implements OnInit {\n\n locationCount = signal<number>(0);\n\n constructor(protected override formValidatorService: FormValidatorService,\n private fb: FormBuilder,\n private stockIssueService: StockIssueService,\n private router: Router,\n private locationService: LocationService\n ) {\n super(formValidatorService);\n\n this.form = this.fb.group({\n date: [new Date(), Validators.compose([Validators.required])],\n particulars: ['', Validators.compose([Validators.required])],\n stock_issue_products: this.fb.array([])\n });\n }\n\n ngOnInit(): void {\n this.locationService.count().subscribe((count: number) => {\n this.locationCount.set(count);\n });\n }\n\n get stockIssueProducts(): FormArray {\n return this.form.get('stock_issue_products') as FormArray;\n }\n\n createStockIssueProduct() {\n return this.fb.group({\n product_id: ['', Validators.required],\n location_id: ['', this.locationCount() > 0 ? Validators.required : null],\n quantity: [1, [Validators.required, Validators.min(1)]],\n particulars: ['']\n });\n }\n\n addStockIssueProduct() {\n this.stockIssueProducts.push(this.createStockIssueProduct());\n }\n\n removeStockIssueProduct(index: number) {\n this.stockIssueProducts.removeAt(index);\n }\n\n clearProducts() {\n this.stockIssueProducts.clear();\n }\n\n save() {\n if (this.form.invalid) {\n this.form.markAllAsTouched();\n this.form.markAsDirty();\n this.alertService.addAlert('Please check the form for errors.', 'error');\n return;\n }\n\n if (this.stockIssueProducts.length === 0) {\n this.alertService.addAlert('Please add at least one product.', 'error');\n return;\n }\n\n const formData = this.form.getRawValue();\n const data: any = {\n date: moment(formData.date).format('YYYY-MM-DD'),\n details: formData.particulars,\n products: formData.stock_issue_products.map((row: any) => ({\n id: row.product_id,\n product_id: row.product_id,\n quantity: row.quantity,\n location_id: row.location_id,\n particulars: row.particulars,\n }))\n };\n\n this.isWorking = true;\n this.stockIssueService.store(data).subscribe({\n next: (response: any) => {\n this.isWorking = false;\n this.alertService.addAlert('Stock issues saved successfully!', 'success');\n this.router.navigate(['/inventory/stock-issues']);\n },\n error: () => {\n this.isWorking = false;\n }\n });\n }\n\n cancel() {\n this.router.navigate(['/inventory/stock-issues']);\n }\n}\n","<mat-card class=\"d-flex flex-column gap-2 container\">\n <mat-card-content>\n\n <div class=\"d-flex flex-column gap-1\">\n <h5>\n <span class=\"material-symbols-outlined align-middle\">upload</span>\n Issue Stock\n </h5>\n </div>\n\n <form class=\"d-flex flex-column gap-2\" [formGroup]=\"form\" (submit)=\"save()\">\n\n <div class=\"d-flex flex-column\">\n <div class=\"d-flex flex-row gap-2 justify-content-between\">\n <mat-form-field appearance='outline' class=\"w-100\">\n <mat-label>Start Date</mat-label>\n <input matInput [matDatepicker]=\"picker\" placeholder=\"Date\" formControlName=\"date\" required>\n <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n <mat-error *ngIf=\"isFieldValid('date')\">{{ getErrorMessage('date') }}</mat-error>\n </mat-form-field>\n\n <mat-form-field appearance='outline' class=\"w-100\">\n <mat-label>Particulars</mat-label>\n <textarea matInput placeholder=\"Particulars\" formControlName=\"particulars\"></textarea>\n <mat-error *ngIf=\"isFieldValid('particulars')\">{{ getErrorMessage('particulars') }}</mat-error>\n </mat-form-field>\n </div>\n </div>\n\n <table class=\"table mt-3\">\n <thead>\n <tr>\n <th scope=\"col\">#</th>\n <th scope=\"col\">Product</th>\n <th *ngIf=\"locationCount() > 0\" scope=\"col\">Location</th>\n <th scope=\"col\">Quantity</th>\n <th scope=\"col\">Particulars</th>\n <th scope=\"col\" class=\"text-center\" width=\"50\"></th>\n </tr>\n </thead>\n <tbody formArrayName=\"stock_issue_products\">\n <tr *ngFor=\"let row of stockIssueProducts.controls; let i = index\" [formGroupName]=\"i\">\n <th scope=\"row\">{{ i + 1 }}</th>\n <td>\n <mat-form-field appearance='outline' class=\"w-100\">\n <mat-label>Product</mat-label>\n <app-searchable-selector apiUrl='api/products' formControlName=\"product_id\"\n titleField='name' [cache]=\"true\" required></app-searchable-selector>\n </mat-form-field>\n </td>\n <td *ngIf=\"locationCount() > 0\">\n <app-location-selector appearance='outline'\n formControlName=\"location_id\"></app-location-selector>\n </td>\n <td>\n <mat-form-field appearance='outline' class='fl-sm'>\n <mat-label>Quantity</mat-label>\n <input matInput formControlName=\"quantity\" type=\"number\" min=\"1\">\n </mat-form-field>\n </td>\n <td>\n <mat-form-field appearance='outline'>\n <mat-label>Particulars</mat-label>\n <input matInput formControlName=\"particulars\">\n </mat-form-field>\n </td>\n <td class=\"text-center align-middle\">\n <div class=\"d-flex gap-2 justify-content-center align-items-center text-secondary\">\n <app-techlify-icon role='button' name='delete' (click)=\"removeStockIssueProduct(i)\"\n matTooltip=\"Remove row\"></app-techlify-icon>\n </div>\n </td>\n </tr>\n </tbody>\n <tfoot>\n <tr>\n <td colspan=\"6\" class=\"text-end\">\n <div class=\"d-flex flex-row gap-2 justify-content-end\">\n <button mat-button color=\"primary\" type=\"button\" (click)=\"clearProducts()\"\n [disabled]=\"stockIssueProducts.length === 0\">\n <mat-icon>block</mat-icon> CLEAR ALL\n </button>\n <button mat-raised-button color=\"primary\" type=\"button\"\n (click)=\"addStockIssueProduct()\">\n <mat-icon>add</mat-icon> ADD\n </button>\n </div>\n </td>\n </tr>\n </tfoot>\n </table>\n\n <div class=\"d-flex justify-content-end align-items-center gap-2 mt-2\">\n <button [disabled]=\"isWorking\" mat-flat-button type=\"button\" (click)=\"cancel()\">Cancel</button>\n <button [disabled]=\"isWorking || stockIssueProducts.length === 0\" mat-raised-button color=\"primary\"\n type=\"submit\">Save</button>\n </div>\n\n </form>\n\n </mat-card-content>\n</mat-card>\n"],"names":["i3.StockIssueService","i5.LocationService","i6","i8","i10","i11","i12"],"mappings":";;;;;;;;;;;;;;;;;;;AA0BM,MAAO,4BAA6B,SAAQ,8BAA8B,CAAA;AAI7C,IAAA,oBAAA,CAAA;AACnB,IAAA,EAAA,CAAA;AACA,IAAA,iBAAA,CAAA;AACA,IAAA,MAAA,CAAA;AACA,IAAA,eAAA,CAAA;AANZ,IAAA,aAAa,GAAG,MAAM,CAAS,CAAC,CAAC,CAAC;IAElC,WAA+B,CAAA,oBAA0C,EAC7D,EAAe,EACf,iBAAo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