ionic-vhframeworks 9.9.2 → 9.9.4
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.
|
@@ -3923,6 +3923,24 @@ export declare class VhQueryCafe {
|
|
|
3923
3923
|
* @return Promise => null
|
|
3924
3924
|
*/
|
|
3925
3925
|
refreshLocalSuppliers_Delete_Hidden(): any;
|
|
3926
|
+
/**
|
|
3927
|
+
* @example:
|
|
3928
|
+
* this.vhQueryCafe.addSupplier({name:'Nhà cung cấp 1', address: 'HCM'})
|
|
3929
|
+
.then((rsp)=>{
|
|
3930
|
+
if(rsp.vcode == 0){
|
|
3931
|
+
//addSupplier thành công
|
|
3932
|
+
}else if(rsp.vcode == 0){
|
|
3933
|
+
//This phone number is already in use with another customer
|
|
3934
|
+
}
|
|
3935
|
+
},(error:any)=>{
|
|
3936
|
+
console.log('error', error);
|
|
3937
|
+
})
|
|
3938
|
+
* @param data: Có cả 3 trường countryCode, phone và phoneNumber
|
|
3939
|
+
* @return Promise => rsp ={vcode, msg, data(obj)}
|
|
3940
|
+
* vcode = 0: 'success'
|
|
3941
|
+
* vcode = 1: 'This phone number is already in use with another supplier'
|
|
3942
|
+
*/
|
|
3943
|
+
addSupplier(data: any): Promise<unknown>;
|
|
3926
3944
|
/**
|
|
3927
3945
|
* @example:
|
|
3928
3946
|
* this.vhQueryCafe.addSuppliers([{name:'Nhà cung cấp 1', address: 'HCM'},{},...])
|