diff --git a/vnms-live-23-3-24.zip b/live - 26-3-24.zip similarity index 84% rename from vnms-live-23-3-24.zip rename to live - 26-3-24.zip index 0bd9b42..0203a84 100644 Binary files a/vnms-live-23-3-24.zip and b/live - 26-3-24.zip differ diff --git a/src/app/pages/order/order-form/order-form.component.ts b/src/app/pages/order/order-form/order-form.component.ts index 5fe42ea..35cbeaf 100644 --- a/src/app/pages/order/order-form/order-form.component.ts +++ b/src/app/pages/order/order-form/order-form.component.ts @@ -847,6 +847,15 @@ onSelectChange1(newValue: string) { this.hiddenBtn = false; } } + + + +notify(id,ordId,cusName){ + let obj = { "id" : id , "ordId" : ordId , 'cusName' : cusName } + this._api.Notification(obj).subscribe(res => { console.log( "success"); + }) + } + onSubmit2(){ @@ -866,7 +875,7 @@ onSubmit2(){ if(this.selectStatus == "Delivered"){ -this.onCreateConfirm() + this.onCreateConfirm() }else{ @@ -879,11 +888,16 @@ this.onCreateConfirm() this._api.CreateOrder (param).subscribe(res => { + if (res.status == 200) { - console.log(res) - this.showToast('success', 'Updated Successfully', ''); - - this.selectStatus =[]; + console.log(res) + this.showToast('success', 'Updated Successfully', ''); + + + if(this.selectStatus == "Out For Delivery"){ + this.notify(this.selectDriver , this.setData.orderId , this.selectCustomer ); + } + this.selectStatus =[]; }else{ this.showToast('warning', 'Somthing is Wrong...!', ''); } diff --git a/src/environments/environment.ts b/src/environments/environment.ts index e3e12b1..4e9236e 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -9,7 +9,7 @@ // The list of which env maps to which file can be found in `.angular-cli.json`. export const environment = { - apiEndpoint:'https://dev.venbait.in/vnms/api/', + apiEndpoint:'https://api.vnms.in/api/', // apiEndpoint:'http://localhost:8081/api/', mailUrl:'', production: false,