Author Topic: Is there a way to print item "GTIN number" on the invoice?  (Read 971 times)

rage76

  • Jr. Member
  • **
  • Posts: 129
Is there a way to print item "GTIN number" on the invoice?
« on: July 08, 2017, 09:49:49 am »
The implementation of GST in India has brought in a lot of statutory changes. We are now required to print the HSN Code (harmonized code) of each item on the invoice. So I was thinking I can create a language override for GTIN and use it for storing HSN code of item.

But the question is how to print it in the invoice? Any ideas or better suggestion?

J 3.7.3 / VM 3.0.18

rage76

  • Jr. Member
  • **
  • Posts: 129
Re: Is there a way to print item "GTIN number" on the invoice?
« Reply #1 on: July 19, 2017, 18:58:08 pm »
Any has a solution / suggestion?

rage76

  • Jr. Member
  • **
  • Posts: 129
Re: Is there a way to print item "GTIN number" on the invoice?
« Reply #2 on: July 28, 2017, 19:00:05 pm »
Somebody please help me on this !!

rage76

  • Jr. Member
  • **
  • Posts: 129
Re: Is there a way to print item "GTIN number" on the invoice?
« Reply #3 on: August 03, 2017, 08:26:31 am »
I desperately need a solution for this. Anyone out here?

Ghost

  • Jr. Member
  • **
  • Posts: 378
Re: Is there a way to print item "GTIN number" on the invoice?
« Reply #4 on: August 03, 2017, 08:35:50 am »
Create a template override for invoice and modify it to your liking. If GTIN is not available in data, use product model or DB query to get it.

loppan

  • Jr. Member
  • **
  • Posts: 116
    • CRASHDÏET Official Website
Re: Is there a way to print item "GTIN number" on the invoice?
« Reply #5 on: August 03, 2017, 08:44:17 am »
I would totally recommend ARTIO VM invoice if you're
not comfortable with coding, their extension makes it extremely simple
to customize the invoices to your liking and add any info you need on them : https://www.artio.net/virtuemart-tools/vm-invoice-generator

rage76

  • Jr. Member
  • **
  • Posts: 129
Re: Is there a way to print item "GTIN number" on the invoice?
« Reply #6 on: August 03, 2017, 10:00:51 am »
Thanks dear Loppan

I am using Artio VM Invoice. Guess I need to ask their support on how I can accomplish this !!

Dear Ghost, thanks for your response, but I do not have the expertise to do what you are suggesting.

loppan

  • Jr. Member
  • **
  • Posts: 116
    • CRASHDÏET Official Website
Re: Is there a way to print item "GTIN number" on the invoice?
« Reply #7 on: August 03, 2017, 12:28:14 pm »
Thanks dear Loppan

I am using Artio VM Invoice. Guess I need to ask their support on how I can accomplish this !!


Hmm, I had a closer look and with Artio's VM Invoice you're not able to add the GTIN on the invoice by default - strange, I thought they had everything :). I would definitely explain the situation to the developer and request this feature, though. Perhaps it will be mandatory in more countries eventually....

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2640
  • VirtueMart Version: 3.2.8
Re: Is there a way to print item "GTIN number" on the invoice?
« Reply #8 on: August 03, 2017, 13:15:24 pm »
It is a shame that you are using Artio invoices - it is simple to add this to VM core invoices
regards
A

Joomla 3.8.3
php 5.6 + php 7

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9416
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Is there a way to print item "GTIN number" on the invoice?
« Reply #9 on: August 03, 2017, 20:31:15 pm »
the gtin is just $product->gtin
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

rage76

  • Jr. Member
  • **
  • Posts: 129
Re: Is there a way to print item "GTIN number" on the invoice?
« Reply #10 on: August 04, 2017, 07:55:38 am »
It is a shame that you are using Artio invoices - it is simple to add this to VM core invoices

Dear AH, I am not using Artio Invoices for just this purpose. I am using because it gives me a lot of flexibility and ease in designing the invoices that I was unable to do via the core VM invoices. Although I agree it is quite do-able in Core VM too !!

rage76

  • Jr. Member
  • **
  • Posts: 129
Re: Is there a way to print item "GTIN number" on the invoice?
« Reply #11 on: August 04, 2017, 07:59:34 am »
In case there are others like me who would like to add "HSN Codes" to each of the product, the easiest easy way to do it is through VM custom fields. But I am facing an issue with this method;

The custom field shows on the product page. I donot want it to be visible on the product page and would only like to show/print it on the invoice. If someone has a solution to this, kindly guide me suitably.

Thanks in anticipation.

Ghost

  • Jr. Member
  • **
  • Posts: 378
Re: Is there a way to print item "GTIN number" on the invoice?
« Reply #12 on: August 04, 2017, 09:08:02 am »
Add something to 'Position' field in your custom field.

rage76

  • Jr. Member
  • **
  • Posts: 129
Re: Is there a way to print item "GTIN number" on the invoice?
« Reply #13 on: August 04, 2017, 13:17:25 pm »
Add something to 'Position' field in your custom field.

You mean anything random? Strangely, it does work. seems like a good hack. Hope it wont interfere with anything else !!

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2640
  • VirtueMart Version: 3.2.8
Re: Is there a way to print item "GTIN number" on the invoice?
« Reply #14 on: August 05, 2017, 20:03:54 pm »
The model has been adjusted to allow product fields to be included in the order view - when the next release is available you will be able to display the GTIN

Code: [Select]
$item->product_gtin
regards
A

Joomla 3.8.3
php 5.6 + php 7