getDefaultSalePoint static method

String getDefaultSalePoint()

Default sale-point / branch (sucursal) name for this app's POS. Each app declares it in its own properties.json (defaultSalePoint), e.g. EMXI → "Librería". Falls back to the app name, then "POS", so the POS module stays agnostic and never hardcodes a branch name.

Implementation

static String getDefaultSalePoint() {
  final v = appProperties['defaultSalePoint'];
  if (v is String && v.isNotEmpty) return v;
  final name = getAppName();
  return name.isNotEmpty ? name : 'POS';
}