Your route is wrong, routes are promise aware (that's what hash is for), it should be:

model(params) {
    return Ember.RSVP.hash({
      invoice: this.store.findRecord('invoice',params.invoice_id)
      //allShares: invoice.then((i)=>{return i.allShares()}),
      //detailShares: invoice.then((i)=>{return i.detailShares()})
    });
  }

Then your handlebars is just:

{{#each model.invoice.invoiceLines as |line| }}
  {{line}}
{{/each}}

You also shouldn't call methods like you are on a model. It's not really clear what allShares(), etc does but these should (probably) be computed in the controller. Something along the lines of:

import { computed } from '@ember/object';

export default Controller.extend({
   allShares:computed('model.invoice', function(){
       return this.get('model.invoice').allShares();
   });
});

Though this doesn't seem ideal. Like I said, it's hard to be explicit as it's not clear what your trying to do here. It'd probably make more sense if your extracted these methods into a service.

You then don't need the helper at all. This appears to be just trying to work around promises.

It makes life a lot easier if you try and load all server side data in the route before load.

Answer from Liam on Stack Overflow
🌐
Quora
quora.com › Why-is-my-visa-gift-card-saying-pending-visa-provisioning-service-null
Why is my visa gift card saying “pending visa provisioning service null”? - Quora
Answer: I am not sure, but the word “null” probably indicates that the money has not reached the service provider that is handling the payment of the gift card for VISA. “NULL” means “nothing, empty, void”. You do not say if you ...
🌐
WikiDiff
wikidiff.com › null › pending
Pending vs Null - What's the difference? | WikiDiff
April 12, 2022 - Something that has no force or meaning. (computing) the ASCII or Unicode character (), represented by a zero value, that indicates no character and is sometimes used as a string terminator. (computing) the attribute of an entity that has no valid value. Since no date of birth was entered for ...
Discussions

Status should = "Pending" if the cell is null
I have a sheet that looks for errors in a field, then populates a status if it finds those errors. For example: =IF(LEN(Body@row) More on community.smartsheet.com
🌐 community.smartsheet.com
February 10, 2023
then() returning a null value when it should be pending
Stack Overflow for Teams is moving to its own domain! When the migration is complete, you will access your Teams at stackoverflowteams.com, and they will no longer appear in the left sidebar on stackoverflow.com · Check your email for updates More on stackoverflow.com
🌐 stackoverflow.com
November 29, 2018
bug - Transaction pending status - blockNumber: null - Ethereum Stack Exchange
The transaction is always pending. ... blockHash: "0x0000000000000000000000000000000000000000000000000000000000000000", blockNumber: null, from: "0x03b09e13617abb896c934207083c05d98a3d90b7", gas: 90000, gasPrice: 20000000000, hash: "0xf0c6d37bc06ef89247140700a8536eed556501e35739f55ddd23f08... More on ethereum.stackexchange.com
🌐 ethereum.stackexchange.com
January 30, 2017
go ethereum - getTransaction sometimes returns null when transaction is pending - Ethereum Stack Exchange
I am looking to get real time transaction data as it is broadcasted to the ethereum network, so I have subscribed to pendingTransactions. This only returns the transaction hash though, so I have to... More on ethereum.stackexchange.com
🌐 ethereum.stackexchange.com
March 29, 2020
🌐
Apple Community
discussions.apple.com › thread › 253133925
Apple cash for (null) is pending - Apple Community
September 13, 2021 - How do I get Apple Cash out of pending In my wallet it says Apple Cash is pending how do i take it outta of pending 2034 1 · Why am I getting an insufficient funds alert on apple cash Why am I getting an insufficient funds alert on apple cash 988 1 · Apple Cash unavailable Why is Apple Cash saying unavailable? 3197 11 ... User profile for user: Jeff_W. ... It sounds like you received a notification about Apple Cash that shows (null) is pending.
🌐
Smartsheet Community
community.smartsheet.com › home › get help › formulas and functions
Status should = "Pending" if the cell is null - Smartsheet Community
February 10, 2023 - I have a sheet that looks for errors in a field, then populates a status if it finds those errors. For example: =IF(LEN(Body@row)
Top answer
1 of 2
2

Your route is wrong, routes are promise aware (that's what hash is for), it should be:

model(params) {
    return Ember.RSVP.hash({
      invoice: this.store.findRecord('invoice',params.invoice_id)
      //allShares: invoice.then((i)=>{return i.allShares()}),
      //detailShares: invoice.then((i)=>{return i.detailShares()})
    });
  }

Then your handlebars is just:

{{#each model.invoice.invoiceLines as |line| }}
  {{line}}
{{/each}}

You also shouldn't call methods like you are on a model. It's not really clear what allShares(), etc does but these should (probably) be computed in the controller. Something along the lines of:

import { computed } from '@ember/object';

export default Controller.extend({
   allShares:computed('model.invoice', function(){
       return this.get('model.invoice').allShares();
   });
});

Though this doesn't seem ideal. Like I said, it's hard to be explicit as it's not clear what your trying to do here. It'd probably make more sense if your extracted these methods into a service.

You then don't need the helper at all. This appears to be just trying to work around promises.

It makes life a lot easier if you try and load all server side data in the route before load.

2 of 2
2

First rule of helpers

Each time the input to a helper changes, the compute function will be called again.

Second, there's nothing about helpers that will make this block subsequent calls because you are returning a promise.

export function pricingsFullPricing([pricing]) {
  return pricing.then(
    p=>{
      debugger
    },p=>{

    }
  )
}

You've created a simple helper here that will use the promise itself as the value. Look at ember-promise-helpers/await to see how a class based helper is used to manually set the value that's displayed in the template.

Now, if you're wondering why the recomputation is happening, I'm going to have to speculate based off the knowledge I have of Ember data just from being part of the Ember community (I've never actually used Ember Data). You know line.pricing is a promise? I can then assume your using some sort of relationship, which will most likely have to be loaded via an ajax call (hence the promise). But these relationships in Ember data, iirc, use this PromiseProxyMixin that allow them to behave simultaneously like a promise or like an object (depending on whether the data is in the store already or not). This is what allows you to reference the promise in your template without then

See this article for a better understanding of what I mean

🌐
Revehr
help.revehr.com › hc › en-us › articles › 360053563374-What-does-Null-Null-mean-in-a-Refund-report-
What does "Null, Null" mean in a Refund report?
April 4, 2023 - Sign in · Accounting and Claims · Admin and Setup · Data Conversion · Device Integration · Documentation and Coding Tips · Encounters · Optical · Patient Management and Schedule · Quality Reporting
Find elsewhere
🌐
Amazon
sellercentral-europe.amazon.com › forums › t › account-status-null › 226607
Account status Null
It should be “Active listings”, anything else such as “Account pending” is bad. Since you are still able to sell, at this time there is nothing to worry about. It could be just a glitch as well. As if you account was not valid, then you wouldn’t be able to sell at all. ... We had this topic a couple of days ago on the german forum - “Null” seems to be a “everything is fine”-status, at least that’s what Amazon said as official response.
🌐
Movesfinancial
movesfinancial.com › blog › what-does-pending-transaction-mean-moves
What Does Pending Transaction Mean and Did It Go Through? | Moves
April 2, 2022 - Here are a few key takeaways that ... through and settle • Are pending transactions already deducted from your account? Pending transactions are not fully processed. They are deducted from your Spendable Balance, but not your current Account Balance. • What does it mean when ...
🌐
Checkout51
support.checkout51.com › hc › en-us › articles › 201387147-Getting-my-balance-back-if-my-account-balance-says-null
Getting my balance back if my account balance says "null." – Checkout 51 Help Desk
March 9, 2022 - If your balance on the account page says "null," something has probably gone wrong. To fix this simply force close and re-open the Checkout 51 application. For instructions on how to force close ap...
🌐
Dynatrace Community
community.dynatrace.com › t5 › DQL › Null-values-returned-for-pending-pods › m-p › 218532
Solved: Re: Null values returned for pending pods - Dynatrace Community
July 19, 2023 - for querying the dt.kubernetes.pods metric the pod_phase is a dimension, so you are filtering to that dimension. So the dimension with the value "Pending" of that metric is written usually once per minute only if a pod is in "Pending" state. If not, no it remains "null".
🌐
Reddit
reddit.com › r/creditcards › can't add vanilla gift card to paypal? visa provisioning service?
r/CreditCards on Reddit: Can't add Vanilla Gift Card to Paypal? Visa Provisioning Service?
October 19, 2022 -

I tried adding my gift card to Paypal, but it asked me to confirm. I clicked okay, and I got an error saying to try again later. I went to the vanilla gift website, and there is "Visa Provisioning Service - NULL" under the transactions. I wondered if this was the issue and how long it takes to clear.

🌐
freeCodeCamp
freecodecamp.org › news › a-quick-and-thorough-guide-to-null-what-it-is-and-how-you-should-use-it-d170cea62840
A quick and thorough guide to ‘null’: what it is, and how you should use it
June 12, 2018 - If the null/empty-logic of getAllergiesOfPatient changes in the future, then the comment needs to be updated, as well as all client code. And there is no protection against forgetting any one of these changes. If, later on, there is another case to be distinguished (e.g. an allergy test is pending — the results are not yet available), or if we want to add specific data for each case, then we are stuck.
🌐
Canada Visa
canadavisa.com › forums › immigration to canada › family class sponsorship
what does "null" mean? | Canada Immigration Forum
December 15, 2011 - Click to expand... Null means no status yet. They haven't updated your ECAS yet it seems. Don't worry ECAS is normally not updated that frequently or on time consistently.
🌐
Reddit
reddit.com › r/jobs › what does this “null null” status mean?
What does this “null null” status mean? : r/jobs
March 27, 2025 - Stop looking at your application status. It's completely meaningless.
🌐
Stack Overflow
stackoverflow.com › questions › 70209223 › the-parameter-is-null-when-flag-immutable-is-set-in-pendingintent
android - The parameter is null when FLAG_IMMUTABLE is set in PendingIntent - Stack Overflow
December 3, 2021 - The additional_extra extra is null when I pass it back in the following format. val pendingIntent = intent.getParcelableExtra("pending_intent") val intent = Intent().apply { putExtra("additional_extra", "test") } pendingIntent?.send(this, 0, intent) ... Your question asks about PendingIntent.getActivity() but your code example is for PendingIntent.getService(). Also, what do you mean ...