buli
2023-07-14 5b5c1e16deaa3a9d6d0ed1ffca390655ed103df7
force-app/main/default/classes/LexSaleOrderController.cls
@@ -32,11 +32,7 @@
        res.entity = data;
        String UserName = UserInfo.getUserId();
        user useracc = [
            SELECT Accountid, Work_Location__c
            FROM user
            WHERE id = :UserName
        ];
        user useracc = [SELECT Accountid, Work_Location__c FROM user WHERE id = :UserName];
        accountid = useracc.Accountid;
        userWorkLocation = useracc.Work_Location__c;
        Account accountInfo = [SELECT Name FROM account WHERE id = :accountid];
@@ -259,11 +255,7 @@
        }
        Map<String, String> proHosMap = new Map<String, String>();
        Map<String, String> proIdMap = new Map<String, String>();
        List<hospitalprice__c> hpList = [
            SELECT id, hospital__c, product__c
            FROM hospitalprice__c
            WHERE account__c = :accountid
        ];
        List<hospitalprice__c> hpList = [SELECT id, hospital__c, product__c FROM hospitalprice__c WHERE account__c = :accountid];
        if (hpList != null && hpList.size() > 0) {
            for (hospitalprice__c hp : hpList) {
                if (hp.product__c != null && String.valueof(hp.product__c).length() >= 15) {