[Skip to main content](#vessel-content)

#   Invoice for vendor and customer

##

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 8 months ago [\#91212](#91212) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#91212 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Hi,

I will test the code on my side and make some modifications.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 8 months ago [\#91227](#91227) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#91227 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Really thank you. I appreciate so much your grat support!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 8 months ago [\#92135](#92135) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#92135 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Hi,

I finished my tests and validate the new option.
I think the best is that I publish a new version or that I send you the preview package by email.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 8 months ago [\#92138](#92138) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#92138 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Hi Jerome,

first thank you so much for your great support. Sure this will be a very very good review on JED.

Now, let's do what you think is better. If you wanna let me test it before you officially release it, I'm available for testing it.

Thanks so much!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 8 months ago [\#92147](#92147) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#92147 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Hi,

Mail sent !

Best regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 8 months ago [\#94246](#94246) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#94246 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Hi Jerome,

Did you receive my last email about 2 weeks ago?

Any news?

Thanks so much.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 8 months ago [\#94299](#94299) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#94299 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Hi,

I still have your request in my TODO list.
But the problem is that, I do not need number, I need variables in order to implement the modifications.

I read your email several times and I don't understand what I have to modify, I tried to convert your numbers with variables with any success.
I still don't understand which values are incorrect, if it's the invoice value or not.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 8 months ago [\#94305](#94305) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#94305 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Hi Jerome, thanks for answer.

I try to explain better.

This is the correct way the invoice system should work when I "send" money to vendor when I "pay" him (send him total money minus my fee, VAT and PayPal commission.)

My VAT is 21%. Paypal fee is 0,77€ in this example.

If the buyer buy something that cost 10€ + VAT + PayPal Fee, he spends 10€ + 2,10€ + 0,77€ = 12,87€

I earn 30% of 10€ and vendor earn 70% of 10€. Now, is the vendor that sell, so he will provide to buyer an invoice for 12,87€, but this doesn't matter to me. Vendor can generate manually his invoices.

Now, I must send to vendor 7€ + VAT (21% of 7€ = 1,47€) = 8,47€. This is the real amount of money I must send to him when I "pay" him.

Then I take 12,87€-8,47€=4,4€

This is divided into 3 parts and I must generate an invoice with this items for the vendor:

- my fee = 3€ (30% of 10€)
- paypal fee = 0,77€
- VAT = 0,63€ (21% of my fee: 3€)

Total = 4,4€

Thats the right way I should pay the vendor and also the right way I need to generate the invoice with those 3 items.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 8 months ago [\#94323](#94323) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#94323 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Hi,

Some variables are missing. So for me your process is "wrong".

We have the values for:
- Order full price (with tax)
- Products price (with tax)
- Products tax

- Shipping price (without tax)
- Shipping tax price

- Payment price (without tax)
- Payment tax price

- Discount price (without tax)
- Discount tax price

- Vendor total

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 8 months ago [\#94332](#94332) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#94332 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

- Order full price (with tax) =&gt; 10€ + VAT + **PayPal Fee**: 10€ + 2,10€ + **0,77€** = 12,87€
- Products price (with tax)=&gt; 10€ + VAT = 12,10€
- Products tax =&gt; VAT (21%) = 2,10€

- Shipping price (without tax) = 0€
- Shipping tax price =&gt; VAT (21%) = 0€

- Payment price (without tax) =&gt; I mean with this the amount that I have to "pay" (send money) to vendor = 7€
- Payment tax price = VAT (21% of 7€) = 1,47€

- Discount price (without tax) = 0€
- Discount tax price =&gt; VAT (21%) = 0€

- Vendor total = 7€ + VAT (21% of 7€ = 1,47€) = 8,47€

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 8 months ago [\#94335](#94335) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#94335 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Hi,

I don't want values, I already have them.
You want to process a price for the invoice. I want the algorithm to process it and I gave you, the variable, that you can use for it.

I want a complete algorithm, which would work for every once. If not, it would not be included in HikaMarket and should be done as custom development.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 8 months ago [\#94347](#94347) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#94347 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

**X** = Product price without VAT
**Y** = Reverse of the fee that I take over the vendor without VAT. In my case I set a fee of 30% (ALFA = 0.3) on the Vendor so Y = 1-0.3 = 0.7
**Z** = Total amount I want to "pay" to Vendor with VAT
**TAX** = 21% = 0.21 according to Taxes rules (in my case is 21%)
ALFA = my fee over vendor = 30% = 0.3
BETA = PayPal fee = in my case is 0.77€ as setted in payments methods (this is automatically calculated by hikashop when I set paypal plugin)
GAMMA1 = Shipping price = 0€ in my case
GAMMA2 = Shipping tax price = 0€ in my case
TETA1 = Discount price = 0€ in my case
TETA2 = Discount tax price = 0€ in my case

Amount of money I "pay" to vendor is **Z = (X + TAX\*X)\*Y + GAMMA1+GAMMA2-TETA1-TETA2** = (10 + 0.21*10)*0.7 + 0+0-0-0 = 8,47€

**Invoice for vendor should report those items=&gt;

ALFA (my fee) = X\*ALFA = 10€\*0.3 = 3€
PayPal fee = 0,77€
VAT = ALFA\*TAX = 3€\*0.21 = 0,63€ (21% of my fee: 3€)

SubTotal = ALFA + PayPal fee = 3€ + 0,77€
Total = ALFA + PayPal fee + VAT = 3€ + 0,77€ + 0,63€ = 4,40€**

In this alghoritm I consider that Hikashop already calculates some variables as Shipping, Discount etc...
If something is missing, please tell me.

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 8 months ago [\#94561](#94561) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#94561 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Hi

I am sorry by your algorithm for me is "wrong", it could not fit to all users needs.
The fees are not just a percentage, it is quite more complicated.
You do not use the "vendor total" which is the most important value. The value already contains the discount impact in order to process the exact price that the vendor gains.
Shipping fees and payment fees are stored in the order and does not impact the vendor total. Maybe some options could be added in order to say if the shipping or payment fees should be pay to the vendor.

The VAT is not in my variable list, I could not know what it is, where it came from.
I will remove the feature from HikaMarket and let the possibility the create some these invoices thanks to plugins.
It is not generic, too much custom, to be integrated in HikaMarket.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 8 months ago [\#94599](#94599) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#94599 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

> Jerome wrote: The VAT is not in my variable list, I could not know what it is, where it came from.

VAT = ALFA*TAX

TAX = according to Taxes rules specified in Hikashop Taxes (in my case is 21% it's called IVA in Italy)
ALFA = the fee I apply to vendor or products (can be a percentage or a fixed value)

Anyway I understand that this feature request is going into a "cul-de-sac"...

I cannot use Hikamarket at this point, but I'm not the only one who cannot use a software that work this way unless they want to use it NOT respecting laws or the correct way of payments, etc.., really sorry. Hikamarket could be a fantastic software, but really can't work at the moment.

I could just forget about the invoice feature, ok, I could manually generate every invoice when the vendor "pay" me, but the main problem is the amount of money I send him (or he pays me...): I cannot send 5,10€ to the vendor (as it do now with one example) when I must send him 8,47€ real!

Thanks so much anyway for trying to build a solution. Hope you'll find a solution in future.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 8 months ago [\#94604](#94604) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#94604 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Hi,

In HikaMarket 1.1.2, I created a trigger in order to move the invoice generation invoice into a plugin.
So, you can adjust your specific rules into the plugin.

I can't find a right generic process which would work with everybody, so the best way is that move this specific part into a plugin.

You have to adjust Code:

$product-&gt;order_product_price = $currencyClass-&gt;convertUniquePrice($o-&gt;order_full_price - $o-&gt;order_shipping_price - $o-&gt;order_payment_price - $o-&gt;order_vendor_price, $o-&gt;order_currency_id, $vendor-&gt;vendor_currency_id);

In order to process the right price value for the vendor invoice.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 8 months ago [\#94607](#94607) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#94607 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Thanks so much, I'll try to look at it to let it work for my needs.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 8 months ago [\#94620](#94620) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#94620 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

"order_full_price" already includes the PayPal cost? A moment it seems not including it. if not including it which is the variable for PayPal cost?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 8 months ago [\#94626](#94626) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#94626 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Hi

Paypal cost is stored into "order_payment_price".

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 8 months ago [\#94628](#94628) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#94628 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Got this error when I try to pay the vendor with the plugin:

Fatal error: Call to a member function get() on a non-object in /home/account/public_html/plugins/hikamarket/vendorpayinvoice/vendorpayinvoice.php on line 35

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 8 months ago [\#94644](#94644) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Invoice for vendor and customer](/forum/23-market-how-to/76614-invoice-for-vendor-and-customer?start=40#94644 "This is a fiscal problem. Who generate invoice to buyer. I have talk today wih my fiscal consulent (for italy) and he says that I should create an invoice for the vendor for every payment I do to him...")*

Right,

The $shopConfig initilization was missing: Code:

$shopConfig = hikamarket::config(false); $confirmedStatus = $shopConfig-&gt;get('order_confirmed_status', 'confirmed');

You can add the line in your php file or re-download the zip, I updated it.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzY2MTQtaW52b2ljZS1mb3ItdmVuZG9yLWFuZC1jdXN0b21lcj9zdGFydD00MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.111 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
