credit note invoice
- martindavinci
- Member
- Posts: 38
- Joined: Mon Mar 08, 2021 8:33 am
- Phoenix Version: 1.1.0.5
- Has thanked: 2 times
credit note invoice
Perhaps it would be handy to establish a credit note, as many products will be returned. Is it possible to draft a simple credit note ( as earlier ad-don https://apps.oscommerce.com/5vIPB&credi ... re-d-avoir ) in Phoenix? A work-around perhaps?
Tags:
-
revamp
- Member
- Posts: 14
- Joined: Thu Mar 04, 2021 10:47 am
- Phoenix Version:
- Has thanked: 5 times
- Been thanked: 1 time
Re: credit note invoice
You can copy invoice.php in admin:
change line 77: echo '<td>' . $product['qty'] . '</td>';
to
echo '<td>' . $product['qty']*-1 . '</td>';
Save the file to p.e. invoicecredit.php
Then if you want to make a credit go to the order, click Invoice en then change the adress:
whatever/admin/invoice.php?oID=ordernumber
to
whatever/admin/invoicecredit.php?oID=ordernumber
If you want the credit in the backend you will have to make a hook for admin. Look at the video's from zipurman how to do that or copy and adjust whatever/includes/hooks/admin/orders/paypal.php
and whatever/includes/apps/paypal/hooks/admin/orders/tab.php
and
whatever/includes/hooks/admin/orders/action.php
change line 77: echo '<td>' . $product['qty'] . '</td>';
to
echo '<td>' . $product['qty']*-1 . '</td>';
Save the file to p.e. invoicecredit.php
Then if you want to make a credit go to the order, click Invoice en then change the adress:
whatever/admin/invoice.php?oID=ordernumber
to
whatever/admin/invoicecredit.php?oID=ordernumber
If you want the credit in the backend you will have to make a hook for admin. Look at the video's from zipurman how to do that or copy and adjust whatever/includes/hooks/admin/orders/paypal.php
and whatever/includes/apps/paypal/hooks/admin/orders/tab.php
and
whatever/includes/hooks/admin/orders/action.php
- martindavinci
- Member
- Posts: 38
- Joined: Mon Mar 08, 2021 8:33 am
- Phoenix Version: 1.1.0.5
- Has thanked: 2 times