Deleted search bar
This commit is contained in:
@@ -22,13 +22,8 @@
|
||||
<app-create-quotation-form #quotationForm></app-create-quotation-form>
|
||||
</app-modal-button>
|
||||
}
|
||||
|
||||
<div class="ml-95 w-150">
|
||||
<app-search (searchEvent)="onProductSearch($event)"></app-search>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-1">
|
||||
<div class="mt-4">
|
||||
<app-stock-table #stockTable (selectionChange)="onSelectionChange($event)"></app-stock-table>
|
||||
</div>
|
||||
@@ -1,6 +1,5 @@
|
||||
import {Component, inject, viewChild} from '@angular/core';
|
||||
import {StockTable} from "../../components/stock-table/stock-table";
|
||||
import {Search} from "../../components/search/search";
|
||||
import {ModalButton} from "../../components/modal-button/modal-button";
|
||||
import {PurchaseordersService, QuotationsService} from "../../services/api";
|
||||
import {NzNotificationService} from "ng-zorro-antd/notification";
|
||||
@@ -12,7 +11,6 @@ import {CreateQuotationForm} from "../../components/create-quotation-form/create
|
||||
selector: 'app-stock',
|
||||
imports: [
|
||||
StockTable,
|
||||
Search,
|
||||
ModalButton,
|
||||
CreatePurchaseorderForm,
|
||||
CreateQuotationForm,
|
||||
@@ -37,10 +35,6 @@ export class Stock {
|
||||
this.hasSelection = value;
|
||||
}
|
||||
|
||||
onProductSearch(query: string) {
|
||||
this.productTable().applySearch(query);
|
||||
}
|
||||
|
||||
async addPurchaseOrder() {
|
||||
const form = this.createPurchaseOrder().createPurchaseOrderForm;
|
||||
if (form.invalid) {
|
||||
|
||||
Reference in New Issue
Block a user