No need to use. $_SESSION['ShopDebtorNo'] variable from webERP. Use of fucntion GetWeberpCustomerIdFromCurrency() for consistency.