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
🌐
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 ...
🌐
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.
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
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
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 27, 2017
🌐
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. “NULLmeans “nothing, empty, void”. You do not say if you are the one who bought the gift card for someone else, ...
🌐
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

🌐
Movesfinancial
movesfinancial.com › blog › what-does-pending-transaction-mean-moves
What Does Pending Transaction Mean and Did It Go Through? | Moves
April 2, 2022 - Your Moves Business Debit Card may display a transaction as “pending” until the transaction has been fully processed. In its simplest form, a pending transaction (also called a hold) means that you have committed to transferring funds from your account to the merchant whom you purchased from.
Find elsewhere
🌐
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...
🌐
PayPal Community
paypal-community.com › t5 › Payments-Archives › Null-payment › td-p › 1649896
Solved: Null payment - PayPal Community
November 9, 2018 - I made a payment to a NULL PayPal/email account - shows NULL payment in my register - how do I cancel and return to my PayPal account ? Solved! Go to Solution. ... What does it say next to the transaction in your Paypal account? 1. Pending / Unclaimed. 2. Pending / Unclaimed with a cancel option.
🌐
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".
🌐
GitHub
github.com › ethereum › go-ethereum › issues › 884
Return null for some properties in pending logs and transactions and blocks · Issue #884 · ethereum/go-ethereum
May 8, 2015 - The following properties, should return with null: blockHash (Log, Transaction) blockNumber (Log, Transaction) transactionIndex (Log, Transaction) logIndex (Log) hash (Block) number (Block) logsBloom (Block) miner (Block) nonce (Block) when retrieving pending transactions, logs or blocks through: eth_getBlockByNumber (when using parameter ["pending"]) eth_getTransactionByHash ·
Author: ethereum
🌐
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.

🌐
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.
🌐
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.
🌐
Reddit
reddit.com › r/englishlearning › "pending" word confusion
r/EnglishLearning on Reddit: "Pending" word confusion
April 20, 2023 -

Hi, yesterday I learned that "pending" can mean either "waiting particular decision or settlement" or "going to happen soon"

In examples of use of second definition I encountered

"his pending departure" sentence. But can't it mean here that departure is waiting particular decision or settlement(first definition)? So there might be no departure(as departure decision might not be done).

Altogether, I have ambiguity here: on the one side, departure is going to happen soon, on the other - it might not happen at all. What do you think about it?

Correct me if I have grammar issues or somewhere I could use another words/sentences structure to sound more natural.

🌐
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.
🌐
Sapling
sapling.com › personal finance › budgeting
How to Stop a Pending Transaction on a Prepaid Debit Card | Sapling
May 25, 2020 - Whether you're dealing with a Netspend pending transaction or one with another prepaid card, this means that a merchant has submitted a charge to your card yet the transaction hasn't completed the posting process.