Fix a sql query bug for quote purchase subpanel
Fix a sql query bug for quote purchase subpanel

lionixevolve/SuiteCRM,pribeiro42/SuiteCRM,JimMackin/SuiteCRM,ChangezKhan/SuiteCRM,MikeyJC/SuiteCRM,salesagility/SuiteCRM,lionixevolve/SuiteCRM,JanSiero/SuiteCRM,MikeyJC/SuiteCRM,lionixevolve/SuiteCRM,horus68/SuiteCRM-Horus68,samus-aran/SuiteCRM,salesagility/SuiteCRM,pribeiro42/SuiteCRM,lionixevolve/LionixCRM,JanSiero/SuiteCRM,lionixevolve/LionixCRM,pribeiro42/SuiteCRM,Dillon-Brown/SuiteCRM,gody01/SuiteCRM,MikeyJC/SuiteCRM,horus68/SuiteCRM-Horus68,pribeiro42/SuiteCRM,samus-aran/SuiteCRM,gody01/SuiteCRM,samus-aran/SuiteCRM,JimMackin/SuiteCRM,gody01/SuiteCRM,JanSiero/SuiteCRM,salesagility/SuiteCRM,lionixevolve/LionixCRM,samus-aran/SuiteCRM,JimMackin/SuiteCRM,horus68/SuiteCRM-Horus68,gody01/SuiteCRM,lionixevolve/LionixCRM,lionixevolve/SuiteCRM,Dillon-Brown/SuiteCRM,JimMackin/SuiteCRM,lionixevolve/LionixCRM,horus68/SuiteCRM-Horus68,Dillon-Brown/SuiteCRM,MikeyJC/SuiteCRM,salesagility/SuiteCRM,JanSiero/SuiteCRM,Dillon-Brown/SuiteCRM,ChangezKhan/SuiteCRM,lionixevolve/LionixCRM,ChangezKhan/SuiteCRM,ChangezKhan/SuiteCRM