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

#   create copy of order with negative amounts

##

- **[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")**
- [![nico.van.leeuwen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile") Topic Author
- [ Offline](/forum/user/12404-nico-van-leeuwen)

Less More

- Posts: 343
- Thank you received: 28
-
-
- [](http://www.delinie-ict.nl)
-

7 years 1 month ago [\#311527](#311527) by [nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")  *[create copy of order with negative amounts](/forum/35-orders-management/898396-create-copy-of-order-with-negative-amounts#311527 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3  Hi, I've seen several questions about creating credit invoices but none with a useful answer so I'm trying a different approach.  In order to get a correct &quot;credit invoice&quot; all we need is a copy of the original order that has the same products, same customer etc. but only with negative product amounts. The invoice number should be new, just like if a new order is placed to maintain the correct invoice number sequence as is required by our TAX law.  Would this be possible (now or maybe later?). Or would this be possible with a custom job and them maybe donated to the project?  Thanks for your response. Nico")* was created by *[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")*

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.12
-- PHP version -- : 7.3

Hi,
I've seen several questions about creating credit invoices but none with a useful answer so I'm trying a different approach.

In order to get a correct "credit invoice" all we need is a copy of the original order that has the same products, same customer etc. but only with negative product amounts. The invoice number should be new, just like if a new order is placed to maintain the correct invoice number sequence as is required by our TAX law.

Would this be possible (now or maybe later?).
Or would this be possible with a custom job and them maybe donated to the project?

Thanks for your response.
Nico

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

7 years 1 month ago [\#311529](#311529) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[create copy of order with negative amounts](/forum/35-orders-management/898396-create-copy-of-order-with-negative-amounts#311529 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3  Hi, I've seen several questions about creating credit invoices but none with a useful answer so I'm trying a different approach.  In order to get a correct &quot;credit invoice&quot; all we need is a copy of the original order that has the same products, same customer etc. but only with negative product amounts. The invoice number should be new, just like if a new order is placed to maintain the correct invoice number sequence as is required by our TAX law.  Would this be possible (now or maybe later?). Or would this be possible with a custom job and them maybe donated to the project?  Thanks for your response. Nico")*

Hi,

On the orders listing, you can select the checkbox of the order you want to duplicate and then click on the "copy" button at the top.
Then, edit the copy and edit each product to add a minus for the prices so that they are negative.
That should do it unless I'm missing something ?

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

- **[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")**
- [![nico.van.leeuwen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile") Topic Author
- [ Offline](/forum/user/12404-nico-van-leeuwen)

Less More

- Posts: 343
- Thank you received: 28
-
-
- [](http://www.delinie-ict.nl)
-

7 years 1 month ago [\#311568](#311568) by [nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")  Replied by *[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")* on topic *[create copy of order with negative amounts](/forum/35-orders-management/898396-create-copy-of-order-with-negative-amounts#311568 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3  Hi, I've seen several questions about creating credit invoices but none with a useful answer so I'm trying a different approach.  In order to get a correct &quot;credit invoice&quot; all we need is a copy of the original order that has the same products, same customer etc. but only with negative product amounts. The invoice number should be new, just like if a new order is placed to maintain the correct invoice number sequence as is required by our TAX law.  Would this be possible (now or maybe later?). Or would this be possible with a custom job and them maybe donated to the project?  Thanks for your response. Nico")*

That would be great but trying this gives me an empty order.
As soon as I change the 1 to -1 the product goes missing :blink:

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

7 years 1 month ago [\#311569](#311569) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[create copy of order with negative amounts](/forum/35-orders-management/898396-create-copy-of-order-with-negative-amounts#311569 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3  Hi, I've seen several questions about creating credit invoices but none with a useful answer so I'm trying a different approach.  In order to get a correct &quot;credit invoice&quot; all we need is a copy of the original order that has the same products, same customer etc. but only with negative product amounts. The invoice number should be new, just like if a new order is placed to maintain the correct invoice number sequence as is required by our TAX law.  Would this be possible (now or maybe later?). Or would this be possible with a custom job and them maybe donated to the project?  Thanks for your response. Nico")*

Hello,

You should actually edit the "price" of your product and add a minus to it.

Kind regards,
Mohamed Thelji.

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

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

7 years 1 month ago [\#311586](#311586) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[create copy of order with negative amounts](/forum/35-orders-management/898396-create-copy-of-order-with-negative-amounts#311586 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3  Hi, I've seen several questions about creating credit invoices but none with a useful answer so I'm trying a different approach.  In order to get a correct &quot;credit invoice&quot; all we need is a copy of the original order that has the same products, same customer etc. but only with negative product amounts. The invoice number should be new, just like if a new order is placed to maintain the correct invoice number sequence as is required by our TAX law.  Would this be possible (now or maybe later?). Or would this be possible with a custom job and them maybe donated to the project?  Thanks for your response. Nico")*

Hi,

Just reading this... sounds all simple enough.
But what does this to quantity/stock levels, reports/statistics, etc?

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

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

- **[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")**
- [![nico.van.leeuwen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile") Topic Author
- [ Offline](/forum/user/12404-nico-van-leeuwen)

Less More

- Posts: 343
- Thank you received: 28
-
-
- [](http://www.delinie-ict.nl)
-

7 years 1 month ago [\#311627](#311627) by [nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")  Replied by *[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")* on topic *[create copy of order with negative amounts](/forum/35-orders-management/898396-create-copy-of-order-with-negative-amounts#311627 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3  Hi, I've seen several questions about creating credit invoices but none with a useful answer so I'm trying a different approach.  In order to get a correct &quot;credit invoice&quot; all we need is a copy of the original order that has the same products, same customer etc. but only with negative product amounts. The invoice number should be new, just like if a new order is placed to maintain the correct invoice number sequence as is required by our TAX law.  Would this be possible (now or maybe later?). Or would this be possible with a custom job and them maybe donated to the project?  Thanks for your response. Nico")*

Hi,

Yes changing the amount to a negative value works as far as the invoice amount goes.

As lousyfool is telling, this is not doing anything for the stock levels etc.
Personally I'm not using the statistics that much but it would be great if this is working also.

If this could be made to work than that would solve a big issue that I have (almost with every customer) in using HikaShop with invoices.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

7 years 1 month ago -  7 years 1 month ago [\#311588](#311588) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[create copy of order with negative amounts](/forum/35-orders-management/898396-create-copy-of-order-with-negative-amounts#311588 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3  Hi, I've seen several questions about creating credit invoices but none with a useful answer so I'm trying a different approach.  In order to get a correct &quot;credit invoice&quot; all we need is a copy of the original order that has the same products, same customer etc. but only with negative product amounts. The invoice number should be new, just like if a new order is placed to maintain the correct invoice number sequence as is required by our TAX law.  Would this be possible (now or maybe later?). Or would this be possible with a custom job and them maybe donated to the project?  Thanks for your response. Nico")*

Hi,

Well, it depends of the status of the order.
You could create a specific order status to use for such orders and exclude these orders from the statistics ( and create new statistics to count these orders if necessary)

Regarding have refund invoices, I think it would make more sense to have a "refund invoice" option so that when it's activated, HikaShop would create a second "invoice number" for the order when the order status changes to "refunded", and you would then have a "refund invoice" button on the order edition screen to be able to print the refund invoice, using the refund invoice number and the amounts in negative.
What do you think about this ?

Last edit: 7 years 1 month ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

- **[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")**
- [![nico.van.leeuwen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile") Topic Author
- [ Offline](/forum/user/12404-nico-van-leeuwen)

Less More

- Posts: 343
- Thank you received: 28
-
-
- [](http://www.delinie-ict.nl)
-

7 years 1 month ago [\#311638](#311638) by [nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")  Replied by *[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")* on topic *[create copy of order with negative amounts](/forum/35-orders-management/898396-create-copy-of-order-with-negative-amounts#311638 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3  Hi, I've seen several questions about creating credit invoices but none with a useful answer so I'm trying a different approach.  In order to get a correct &quot;credit invoice&quot; all we need is a copy of the original order that has the same products, same customer etc. but only with negative product amounts. The invoice number should be new, just like if a new order is placed to maintain the correct invoice number sequence as is required by our TAX law.  Would this be possible (now or maybe later?). Or would this be possible with a custom job and them maybe donated to the project?  Thanks for your response. Nico")*

Hi, that sound good.
For me it's nog so relevant how we create the credit invoice but more that there is an option for it.

You guys know how HikaShop is coded internally and know what is the best option to get it done.

If it would also work with the PDF invoice manager plugin and keep the stock correct then that would be awesome ![:)](/media/kunena/emoticons/3.png ":)")

Thanks for figuring this out !

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

7 years 1 month ago [\#311664](#311664) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[create copy of order with negative amounts](/forum/35-orders-management/898396-create-copy-of-order-with-negative-amounts#311664 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3  Hi, I've seen several questions about creating credit invoices but none with a useful answer so I'm trying a different approach.  In order to get a correct &quot;credit invoice&quot; all we need is a copy of the original order that has the same products, same customer etc. but only with negative product amounts. The invoice number should be new, just like if a new order is placed to maintain the correct invoice number sequence as is required by our TAX law.  Would this be possible (now or maybe later?). Or would this be possible with a custom job and them maybe donated to the project?  Thanks for your response. Nico")*

Hi,

Yes, the solution I propose would make it so that the stock would be correct. PDF invoice support could be added quite easily with the solution I'm talking about.

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

- **[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")**
- [![nico.van.leeuwen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile") Topic Author
- [ Offline](/forum/user/12404-nico-van-leeuwen)

Less More

- Posts: 343
- Thank you received: 28
-
-
- [](http://www.delinie-ict.nl)
-

7 years 1 month ago [\#311684](#311684) by [nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")  Replied by *[nico.van.leeuwen](/forum/user/12404-nico-van-leeuwen "View nico.van.leeuwen's Profile")* on topic *[create copy of order with negative amounts](/forum/35-orders-management/898396-create-copy-of-order-with-negative-amounts#311684 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12 -- PHP version -- : 7.3  Hi, I've seen several questions about creating credit invoices but none with a useful answer so I'm trying a different approach.  In order to get a correct &quot;credit invoice&quot; all we need is a copy of the original order that has the same products, same customer etc. but only with negative product amounts. The invoice number should be new, just like if a new order is placed to maintain the correct invoice number sequence as is required by our TAX law.  Would this be possible (now or maybe later?). Or would this be possible with a custom job and them maybe donated to the project?  Thanks for your response. Nico")*

It all sound like a great improvement to me !
If anyone else can think of anything to add/or something we did not think about then please let's hear it.

Thanks again for thinking about a solution!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5ODM5Ni1jcmVhdGUtY29weS1vZi1vcmRlci13aXRoLW5lZ2F0aXZlLWFtb3VudHM/dG1wbD1tYXJrZG93bg==) 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?

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

Time to create page: 0.084 seconds

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