Invoice Due Date - Is this possible?

  • Posts: 52
  • Thank you received: 2
11 years 1 month ago #129055

-- url of the page with the problem -- : n/a
-- HikaShop version -- : latest
-- Joomla version -- : 2.5.14
-- PHP version -- : 5+
-- Browser(s) name and version -- : n/a
-- Error-message(debug-mod must be tuned on) -- : n/a

Customer wants to show BOTH

Invoice date (already created in Invoice Views)
+
Due date i.e. date when payment due (in say 30 days)

I can edit the View to add a footer like 'Payment Terms: pyament due within 28 days of the Invoice Date'.

Is it however possible for a Due date setting to be added to a future release?

I thought this would be already possible in Business edition with the recent anebling of payment at a date later than the invoice date (with drop down list in Customer's Order screen - front end).

Many thanks, Ken :)

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #129082

Hi,

Sure you can edit the invoice file of the order view of your back-end template through the "Hikashop->Display->Views" page.
But can you give me more information about how you'll set the "payment due date" ?

Please Log in or Create an account to join the conversation.

  • Posts: 52
  • Thank you received: 2
11 years 1 month ago #129090

Hi Mohammed,

That's the problem this end - when the order is raised the date applied is automated in HikaShop.

I would envisage a field in HikaShop Configuration that would enable Admin to pre-set a Due Date i.e. +30 days.

In the UK 30 days is standard for offering credit.

Of course - automated invoices have the generic date applied.

Some Admins may want a different generic period of credit, for example 7 days.

I have read that invoices are by default generated when payment has been made (and so a Due Date would not apply).

However, Admins can I believe choose for invoice to be generated at the order point and (in Business edition) customers can choose to pay at a later date.

The Due Date would then apply.

If payment is not made by the Due Date then the Admin can chase.

In WHMCS automated emails can be triggered when Admin edit settings reagrding sending reminders (for example, 7 days before or after Due Date).

If you were interested in adding the Due Date feature to HikaShop then I would suggest taking a look at the WHMCS Demo.

--

In short - I would like to display a Due Date under the Invoice Date as a REMINDER that payment has not yet been made (assuming invoice triggered prior to payment).

--

What do you think?

Ken :)

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #129198

I think that this can be done by editing the code of the invoice file and directly add your payment due date, also will this due date depend on the payment method ? or it will just be a date that the Admin will have to define ? if that's the case you can use a "translation word" so that you'll easily be able to change the value of this due date through your language file ("Hikashop->System->Confguration->Languages->YourLanguageFile").
For example you can add this line through your invoice file :

echo JText::_('MY_PAYMENT_DUE_DATE');
And add this line through your translation file :
MY_PAYMENT_DUE_DATE="my due date : 20"

Last edit: 11 years 1 month ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 52
  • Thank you received: 2
11 years 1 month ago #129203

Thanks for this suggestion Mohamed.

"my due date : 20"

Would the above add 200 days to the Invoice Date?

If so then this would be ideal.

--
Related Issue - Pro Forma Invoice
--

I have seen some discussion in the forum on Pro Forma Invoice vs Invoice i.e. pro forma invoice issued at time of order prior to payment and invoice (legal document) issued after payment has been received.

I understand a lot of companies in UK use this approach.

I know the tile of the Invoice could be changed to Pro Forma Invoice, and an Invoice be issued outside of HikaShop.

Can you suggest a link to a soluton to this matter?

Or should I start a new thread.

Thanks, Ken :)

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #129397

Hi,

The above will not add 20 days to the invoice date, it will just display a message.
To add automatically 20 days, you have to edit the view "Order / invoice" via the menu Display > Views and add a line like:

<?php 
$dueDate = (int)$this->element->order_created + 1728000;
echo JText::sprintf('MY_PAYMENT_DUE_DATE').': '.hikashop_getDate($dueDate ,'%d %B %Y ');?><br/>
1728000 is equivalent to 20 days in timestamp.

PS: this is just display, there is no automatic management of the due date.

Regarding the Pro Forma Invoice, I have not knowledge about a link to solve this matter.

Last edit: 11 years 1 month ago by Xavier.

Please Log in or Create an account to join the conversation.

  • Posts: 52
  • Thank you received: 2
11 years 1 month ago #129489

Thanks for the suggested solution Xavier.

I could not however see your link.

Ken :)

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #129522

Oups, I forgot the "not" which change all the sense.

Please Log in or Create an account to join the conversation.

Time to create page: 0.087 seconds
Powered by Kunena Forum