providerSaveMinAndMaxAmount function
Implementation
Future<String?> providerSaveMinAndMaxAmount(ProviderData provider) async {
try{
await dbSetDocumentInTable("provider", provider.id, {
'useMinPurchaseAmount': provider.useMinPurchaseAmount,
'minPurchaseAmount': provider.minPurchaseAmount,
'useMaxPurchaseAmount': provider.useMaxPurchaseAmount,
'maxPurchaseAmount': provider.maxPurchaseAmount,
});
}catch(ex){
return "providerSaveMinAndMaxAmount " + ex.toString();
}
return null;
}