How to use the @dpc-sdp/ripple-global/utils/helpers.js.formatMoney function in @dpc-sdp/ripple-global

To help you get started, we’ve selected a few @dpc-sdp/ripple-global examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dpc-sdp / ripple / packages / components / Organisms / Grants / GrantsOverview.vue View on Github external
calcFunding (from, to) {
      if (from > 0 && to > 0) {
        if (from === to) {
          return formatMoney(from)
        } else {
          return `${formatMoney(from)} - ${formatMoney(to)}`
        }
      } else if (from === 0 && to > 0) {
        return `$0 - ${formatMoney(to)}`
      } else if (from > 0 && to === 0) {
        return formatMoney(from)
      } else {
        return null
      }
    },
    calcStatus (startDate, endDate, terms = this.statusTerms) {
github dpc-sdp / ripple / packages / components / Organisms / Grants / GrantsOverview.vue View on Github external
calcFunding (from, to) {
      if (from > 0 && to > 0) {
        if (from === to) {
          return formatMoney(from)
        } else {
          return `${formatMoney(from)} - ${formatMoney(to)}`
        }
      } else if (from === 0 && to > 0) {
        return `$0 - ${formatMoney(to)}`
      } else if (from > 0 && to === 0) {
        return formatMoney(from)
      } else {
        return null
      }
    },
    calcStatus (startDate, endDate, terms = this.statusTerms) {
github dpc-sdp / ripple / packages / Organisms / Grants / GrantsOverview.vue View on Github external
const calcFunding = (funding) => {
          if (funding.from > 0 && funding.to > 0) {
            if (funding.from === funding.to) {
              return formatMoney(funding.from)
            } else {
              return `${formatMoney(funding.from)} - ${formatMoney(funding.to)}`
            }
          } else if (funding.from === 0 && funding.to > 0) {
            return `$0 - ${formatMoney(funding.to)}`
          } else if (funding.from > 0 && funding.to === 0) {
            return formatMoney(funding.from)
          } else {
            return null
          }
        }
        const fundingLevel = calcFunding(this.funding)
github dpc-sdp / ripple / packages / Organisms / Grants / GrantsOverview.vue View on Github external
const calcFunding = (funding) => {
          if (funding.from > 0 && funding.to > 0) {
            if (funding.from === funding.to) {
              return formatMoney(funding.from)
            } else {
              return `${formatMoney(funding.from)} - ${formatMoney(funding.to)}`
            }
          } else if (funding.from === 0 && funding.to > 0) {
            return `$0 - ${formatMoney(funding.to)}`
          } else if (funding.from > 0 && funding.to === 0) {
            return formatMoney(funding.from)
          } else {
            return null
          }
        }
        const fundingLevel = calcFunding(this.funding)
github dpc-sdp / ripple / packages / components / Organisms / Grants / GrantsOverview.vue View on Github external
calcFunding (from, to) {
      if (from > 0 && to > 0) {
        if (from === to) {
          return formatMoney(from)
        } else {
          return `${formatMoney(from)} - ${formatMoney(to)}`
        }
      } else if (from === 0 && to > 0) {
        return `$0 - ${formatMoney(to)}`
      } else if (from > 0 && to === 0) {
        return formatMoney(from)
      } else {
        return null
      }
    },
    calcStatus (startDate, endDate, terms = this.statusTerms) {