Questions tagged [invoice]

Magento payment invoice generated as a confirmation of payment receipt

259 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
0answers
631 views

Magento 2: Add a new custom input field in order > invoice

I am trying to add new input field in Sales > Order > Invoice, this would be related to shipping method. This Custom field should be show in Invoice Shipping Method section. I was all ready add ...
5
votes
0answers
390 views

Magento 2: Invoice PDF Can't Complete Download on Customer End “Failed - Network Error”

I have an extension by MageSpaceX that creates PDFs for Invoice/Order PDF. It works fine on the Admin End, I can hit "Print PDF", and it generates it perfectly. Downloads it, and I can do whatever I ...
4
votes
1answer
1k views

observer to change status after invoicing

I would like to know what is the correct method for change status of order when i create the invoice. I created an observer on the basis of what I saw on the internet : class statutafterinvoice ...
3
votes
1answer
56 views

When Create Invoice Give error Like “Transaction has been declined. Please try again later.” In Magento 2

I have to configure the Amazone pay Payment Method then place an order using amazon-pay successfully after the admin side creates an invoice but gives an error like "Transaction has been declined. ...
3
votes
0answers
86 views

Create uncollected invoices (customers have 30 days to pay) in Magento 2.3.1

When I create an order manually for a customer who places his order over the phone, I need to create his PDF invoice in order to send it. But when I do this, the invoice is created already paid, but I ...
3
votes
0answers
546 views

Magento 2 - Insert Customer Vat Number in Invoice PDF

My customer would like to deliver a complete PDF Invoice according to italian law. In every invoice should be indicated the customer's vat number. Where and how can i insert this variable?
3
votes
0answers
222 views

Magento 2: PDF set page margins for Invoice

I added a footer to my invoices, this works fine. private function _insertFooter($page) { $this->_setFontRegular($page, 8); $this->y = 100; $page->drawLine(25, $this->y, 570,...
3
votes
1answer
1k views

Invoice PDF print Arabic Character?

I am having problem in Printing invoice when the costumer time Arabic Character in checkout. The Arabic word is become square charcter. Anyone knows possible alternative on this ?
3
votes
0answers
312 views

Invoice template changes not showing

I have changed my invoice template to add some footer text, this works fine. However recently I have been asked to change this text to correct a typo. This I have done but the change is not showing ...
2
votes
0answers
49 views

Add the weight to the Magento 2 .pdf invoice

I'm using Magento 2.3.0 and I would like to add the products weight, or overall weight of the order on the .pdf invoice.
2
votes
1answer
100 views

Magento 2 : How to add custom parameter in invoice template email

I want to add a custom parameter in the invoice template and display that template. so please give me any solution on how to do that?
2
votes
1answer
442 views

Magento 2: sometimes Paypal orders create 2 identical invoices

I have a strange behaviour in magento 2. Sometimes an order paid via paypal express or paypal plus creates a duplicate invoice. There seems to be no error. Aside from the invoice id they are ...
2
votes
1answer
139 views

How to insert specific invoice items in sales_invoice_item Table?

Actually, I created a multi-vendor site. I did most of the things but now am stuck in invoice creation. I filter the invoice items in the New Invoice page shown in the screenshot In this order, ...
2
votes
0answers
56 views

Some invoices not showing on grid and email not sent, but row are created in DB

We have been having this occasional issue, for some orders, the payment is processed (by any of our methods), the sales_flat_invoice_* records are created for the invoice, the items and the grid. But ...
2
votes
0answers
76 views

partially refund not working proper

i have try to refund invoice in following code $invoice = $this->_invoiceService ->prepareInvoice($order_refund,$itemsArray); $invoice ->setRequestedCaptureCase ...
2
votes
1answer
82 views

Order collection not showing the order that have been invoiced

I try to retrieve all the order collections, but when I observe by looping the collections and print the order id, I notice the order that has been invoiced is not inside the collection. $collections ...
2
votes
1answer
262 views

Saving invoices on google drive

My client asked me to make a small change in his online store, I have never tried it and hope before starting maybe someone could give me some insights, mayble a class or script that already exists ...
2
votes
2answers
1k views

Add custom email variable to invoice email

I am referring to question - how to add custom data in order email in magento 2 Below is by observer execute method public function execute(\Magento\Framework\Event\Observer $observer) { /** @...
2
votes
1answer
266 views

Comment not appearing on invoice email

I have created a custom template for the invoice email and added the variable {{var comment}} to the email template. The other modifications I have made to the email template does show, but not the ...
2
votes
1answer
444 views

zero prices in sales_flat_order_item for bundled product items

I have a test bundled product https://www.themertailor.com/dev/test-product-bundle.html its all working well except the order in the back end shows zero prices for the individual items. I traced ...
2
votes
0answers
810 views

Magento how to create partial invoice programmatically

With the ref https://stackoverflow.com/questions/20799498/magento-create-partial-invoice-programmatically I have tried but it's occurred only for shipping cost or single sku of multiple sku. I want to ...
2
votes
1answer
329 views

Magento Invoice Shipping Cost

I can get Shipping Cost from the order, but when I look at the invoices for the order only the first invoice gets the shipping cost. How do I know if a invoice has a/the shipping cost attached?
2
votes
2answers
1k views

Magento 2 - Change Order status after invoicing

I have an observer that triggered on sales_order_invoice_pay event, and after creating the invoice, the order status is automatically changed to complete. after that I try to change it to processing ...
2
votes
2answers
802 views

Add text to invoice

I want to add text to the pdf invoice in the marked arena (see photo). I'm using Magento version 1.9.2.1 How can I do this?
2
votes
2answers
629 views

How to get Invoice ID on Payment

In my Magento 1.9 installation I have an observer that observes the event sales_order_invoice_pay. When this event triggers I'm attempting to store the invoice's ID in a custom model I've created. ...
2
votes
0answers
136 views

sort pdf invoice by sku ascending

Currently in PDF invoices, the items are being sorted by the sequences when they are added into the cart. How to sort the items in invoices by SKU”?
2
votes
2answers
568 views

Observer not working sales_order_invoice_save_after

This function not working because what i'm trying to achieve is if this invoice contain a product with sku "FBA" then assign this status. Looking forward to hearing from you. But it doesn't work as ...
2
votes
0answers
264 views

How to disable Paypal auto inovice generator in Magento 1.9.1

I need to disable the generating of invoices when the payment method is PayPal. I already tried this solution, but it doesn't work on Magento 1.9: How to stop auto invoice generation with Credit Card ...
2
votes
0answers
624 views

Magento 2: capture and modify payment data

I am developing a payment module, which works with a webservice. After submit order, there is a session var with webservice response status. If this returns OK, the order must be set as paid and ...
2
votes
2answers
2k views

How to replace the subtotal including tax with subtotal excluding tax in the pdf invoice?

My pdf invoice show now the subtotal including tax, the tax, shipping taxes, and the grand total including taxes and i want to show the subtotal excluding tax instead of including tax. I tried to edit ...
2
votes
0answers
819 views

Disable invoices

We need to setup a store that will be using an external service for managing invoices (we always used magento's...). I have been searching for a while and couldn't find anything detailed enough. As I ...
2
votes
0answers
247 views

When we are applying credit to an order and there is a zero balance there is not an invoice created

When we are applying STORE CREDIT to an order and there is a zero balance at the end of the order, magento does NOT create an invoice for some weird reason. We need to be able to print out an invoice ...
2
votes
1answer
1k views

How to setup Auto Invoice in Magento 2?

I am using two payment methods Credit Card (Authorize.net CIM) Paypal (Standard) And currently, I am invoicing new orders manually but I would like to set-up an auto invoice method because now we ...
2
votes
1answer
817 views

Adding Line Break in Invoice PDF

This is the content of my store contact address: text<br/> text2<br/> text3 I am getting this content in the Pdf/Abstract.php file, like: $storeAddress = Mage::getStoreConfig('general/...
1
vote
0answers
14 views

Magento 1: What is the function “$invoice->register()” for?

I try to generate invoices programmatically in Magento 1.9.4. It works so far with this code: $invoice = Mage::getModel('sales/service_order', $order)->prepareInvoice(); if (!$invoice->...
1
vote
0answers
20 views

Custom Invoice PDF from external source

I'm trying to read the invoice pdf from an external source. Can anybody tell me how can I make the external pdf available to the client overriding the one made available by default? Thanks !
1
vote
0answers
21 views

Magento 1.9 print invoice the characters are shown split and reverse

I have changed the font of pdf invoices to support Arabic characters, but the problem is the characters are split and reversed? Any suggested solution please Help!
1
vote
1answer
41 views

Missing words when create pdf invoice with chinese character

I am currently having a problem: Currently when I create an invoice in the backend in Chinese, my font is missing some characters that cannot be created. I tried searching for different fonts on ...
1
vote
0answers
346 views

Magento2.3.2: decrease stock quantity on invoice generate

I created the module for. 1. Decrease Stock quantity when invoice generate and 2. decrease of salable quantity and actual stock" after creating the ship. But the module is not working properly ...
1
vote
0answers
239 views

Magento2 Type Error occurred when creating object: Magento\InventorySourceSelection\Model\Address

I am placing an order which consists of 2 items out of which one product is Giftcard and the other one is a Simple product. I place the order with these items using the Hyperpay Payment method which ...
1
vote
1answer
102 views

How to solve order total and invoice total mismatch?

I am using this extension for adding extra fees, In checkout page, Order total before creating invoice, After creating invoice, Error : The invoice total and order total not matching in invoice, ...
1
vote
0answers
69 views

Magento2 Paypal Express checkout stop auto create invoice

i have setup Paypal Express Checkout in my magento2 website, when user place the order, invoice is automatically create, i want to stop that auto create invoice using custom code how i can do that?...
1
vote
0answers
14 views

How to print order attachment along with the invoice

Can you tell me how I can print all custom attributes an order has programatically? and the file to edit the code, I have tried object manager, sales
1
vote
0answers
50 views

How can I send invoice email via api?

I have an order id. On basis of that I need to send the already created invoice to the customer.
1
vote
1answer
112 views

when i click on pdf invoice then shows empty page in magento 2

when i click on the print button it will show an empty page Edit 1: Call to undefined method Ced\Gst\Helper\Data::getShippingSource() in /var/www/html/tech/app/code/Ced/Gst/Model/Order/Pdf/...
1
vote
0answers
81 views

Magento2 : How Can I Update My Custom Fee While I Update Qty From Admin New Invoice Section

I have create one module to add custom fee to order product wise , for eg . 1 product = 10 , so 5 product = 50 , and custom fee is working fine in all section like checkout, order, Invoice now my ...
1
vote
0answers
107 views

Magento 1: Add custom attribute in transactional e-mail

In transactional mail, I need to add a custom attribute. I modified the below files app/design/frontend/base/default/template/email/order/items/order/default.phtml app/design/frontend/base/default/...
1
vote
0answers
87 views

Magento 2 - Invoice without collecting shipping cost

Is there a way to create a partial invoice without collecting the shipping cost? For example, if I have an order with a virtual product and a shipped product, I want to be able to invoice the virtual ...
1
vote
0answers
52 views

How can i add an extra Fee compatible with PayPal?

I added a Module that adds an extra Fee (via Discount) when I order products for less than 50€. That module works for invoice payment. When i want to pay via PayPal, I get an error like "there is a ...
1
vote
0answers
19 views

how to whether item refunded or not through invoice level in magento 2

I want to know whether a specific item is refunded or not from invoice level.

1
2 3 4 5 6