|
|
@ -2317,17 +2317,12 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void setClientCustomerTaxFree(String clientMoniker, boolean customerTaxFree) {
|
|
|
|
public void setClientCustomerTaxFree(JSONObject account,String clientMoniker, boolean customerTaxFree) {
|
|
|
|
JSONObject client = getClientInfoByMoniker(clientMoniker);
|
|
|
|
JSONObject client = getClientInfoByMoniker(clientMoniker);
|
|
|
|
if (client == null) {
|
|
|
|
if (client == null) {
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
JSONObject update = new JSONObject();
|
|
|
|
clientModifySupport.processClientConfigModify(new SwitchPermissionModify(account,clientMoniker,"customer_tax_free",customerTaxFree));
|
|
|
|
int clientId = client.getIntValue("client_id");
|
|
|
|
|
|
|
|
update.put("client_id", clientId);
|
|
|
|
|
|
|
|
update.put("customer_tax_free", customerTaxFree);
|
|
|
|
|
|
|
|
clientMapper.update(update);
|
|
|
|
|
|
|
|
clientInfoCacheSupport.clearClientCache(clientId);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|