# Subscriptions: Consumption Method: On Invoice Paid

**URL:** https://discuss.tryton.org/t/subscriptions-consumption-method-on-invoice-paid/4578
**Category:** User
**Created:** [August 31, 2021, 11:41am UTC](https://discuss.tryton.org/t/subscriptions-consumption-method-on-invoice-paid/4578 "2021-08-31T11:41:54Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![htgoebel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/htgoebel/32/1256_2.png) [@htgoebel](https://discuss.tryton.org/u/htgoebel)
#### Post date: [August 31, 2021, 11:41am UTC](https://discuss.tryton.org/t/subscriptions-consumption-method-on-invoice-paid/4578/1 "2021-08-31T11:41:54Z")

</div>

We sell “test subscriptions” which shall be billed upfront and have to be paid in advance. As long as no payment is received, the subscription shall not be executed.

How can I achieve this? Or more detailed:

- How can I create a subscription invoice
  - upfront (prior to setting the subscription to “execute”)
  - for the whole subscription period? Or more precisely: for all planned consumption in this period?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [August 31, 2021, 11:48am UTC](https://discuss.tryton.org/t/subscriptions-consumption-method-on-invoice-paid/4578/2 "2021-08-31T11:48:19Z")

</div>

Such workflow is not yet supported. It would require to make a module `sale_subscription_advance_payment` which should implement the advance payment like in the module `sale_advance_payment`.

---

<div class="post-metadata">

### Author: ![htgoebel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/htgoebel/32/1256_2.png) [@htgoebel](https://discuss.tryton.org/u/htgoebel)
#### Post date: [August 31, 2021, 11:52am UTC](https://discuss.tryton.org/t/subscriptions-consumption-method-on-invoice-paid/4578/3 "2021-08-31T11:52:40Z")

</div>

Thanks for the quick answer.

---

<div class="post-metadata">

### Author: ![htgoebel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/htgoebel/32/1256_2.png) [@htgoebel](https://discuss.tryton.org/u/htgoebel)
#### Post date: [August 31, 2021, 11:55am UTC](https://discuss.tryton.org/t/subscriptions-consumption-method-on-invoice-paid/4578/4 "2021-08-31T11:55:31Z")

</div>

So I assume, the same is true for this (slightly different) use-case:

> Beside the test subscriptions we have yearly subscriptions: Consumption period is weekly, payment is either monthly or twice a year - both at the beginning of the month/half-year. The _payment_ is due, even if the _consumption_ is paused or canceled (customer has to pay even if service is not used).

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [August 31, 2021, 11:57am UTC](https://discuss.tryton.org/t/subscriptions-consumption-method-on-invoice-paid/4578/5 "2021-08-31T11:57:20Z")

</div>

No this is just a consumption based on the time. So just create consumption.

---

<div class="post-metadata">

### Author: ![htgoebel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/htgoebel/32/1256_2.png) [@htgoebel](https://discuss.tryton.org/u/htgoebel)
#### Post date: [September 2, 2021, 8:02am UTC](https://discuss.tryton.org/t/subscriptions-consumption-method-on-invoice-paid/4578/7 "2021-09-02T08:02:19Z")

</div>

@ced I looked into the sales\_advance\_payment module and it looks like this is **not** covering my use-case. The sales\_advance\_payment module:

> When the sale is processed the advance payment invoices are created, final invoices will be generated when this advance payment invoices are paid. Those invoices will take into the account the amount previously paid by the customer.

The advance payment invoice has one line/position, containing the advance payment term name and “1 unit” (“Vorauskasse” is the name of the payment term):  
 ![grafik](https://discuss-cdn.tryton.org/uploads/default/optimized/2X/0/0aed281b974e8a48a6002edafb110fe149341669_2_517x48.png)

For what I want is to create the actual invoice, but process the subscription after payment has been received. So this is more like “Shipment Method: On Invoice Paid” for normal sales.

I’d appreciate any hints on implementing this and will, of course, share the results.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [September 2, 2021, 8:24am UTC](https://discuss.tryton.org/t/subscriptions-consumption-method-on-invoice-paid/4578/8 "2021-09-02T08:24:38Z")

</div>

For me it makes no sense. It is either an advance payment which is a pre-condition to start the subscription or it is just to invoice at the beginning of the period.

---

<div class="post-metadata">

### Author: ![htgoebel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/htgoebel/32/1256_2.png) [@htgoebel](https://discuss.tryton.org/u/htgoebel)
#### Post date: [September 2, 2021, 8:33am UTC](https://discuss.tryton.org/t/subscriptions-consumption-method-on-invoice-paid/4578/9 "2021-09-02T08:33:59Z")

</div>

It’s a invoice at the beginning of the period with “Consumption Method: On Invoice Paid” 🙂 Anyhow I’d appreciate some tips on implementing the “On Invoice Paid” part.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [September 2, 2021, 9:15am UTC](https://discuss.tryton.org/t/subscriptions-consumption-method-on-invoice-paid/4578/10 "2021-09-02T09:15:11Z")

</div>

I can not advise because what you describe is not a subscription. It is just a regular sale.

---

<div class="post-metadata">

### Author: ![htgoebel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/htgoebel/32/1256_2.png) [@htgoebel](https://discuss.tryton.org/u/htgoebel)
#### Post date: [September 2, 2021, 12:49pm UTC](https://discuss.tryton.org/t/subscriptions-consumption-method-on-invoice-paid/4578/11 "2021-09-02T12:49:00Z")

</div>

Hmm, from the sale’s point-of -view, you might be right. But after payment how to convert the sale into a subscription - without many manual intervention, while marking the consumptions (or subscription) to be paid already?

What am I missing here?

Business case is like this:  
A bakery offers “subscriptions” for some special bread. Customers will get one bread each week for the paid period, paid up-front. And each week the bakery needs to know how many of these special breads to bake.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [September 2, 2021, 2:25pm UTC](https://discuss.tryton.org/t/subscriptions-consumption-method-on-invoice-paid/4578/12 "2021-09-02T14:25:53Z")

</div>

The subscription module is for service only.  
What you are looking for is a tool to create automatically and frequently sale orders.

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [September 3, 2021, 7:19am UTC](https://discuss.tryton.org/t/subscriptions-consumption-method-on-invoice-paid/4578/13 "2021-09-03T07:19:32Z")

</div>

> [@htgoebel](#):
>
> A bakery offers “subscriptions” for some special bread. Customers will get one bread each week for the paid period, paid up-front. And each week the bakery needs to know how many of these special breads to bake.

This sound related to [Best practice to manage delivery contracts](https://discuss.tryton.org/t/best-practice-to-manage-delivery-contracts/4483)
