Questions tagged [invoice]

Magento payment invoice generated as a confirmation of payment receipt

267 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
0answers
658 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 ...
6
votes
0answers
688 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
2k 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
0answers
31 views

Magento 2.2.3 problem with invoiced order, can´t edit order

I have a store with two payment methods. ProxyPay - Generate an order without shipment or invoice with status equal Processing. When Magecomp 1.0.0 detect payment, state of order is passed to ...
3
votes
1answer
55 views

Display pie chart at order invoice grid

I want to display the pig chart on the invoice grid and the pie chart should be updated after applying the filer in the grid. Well, I am able to display the Pie chart on the sales order invoice grid ...
3
votes
1answer
212 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
88 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
826 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
348 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
318 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
61 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
206 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
872 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
287 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
100 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
80 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
96 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
0answers
559 views

Magento 2 - Plugin for invoice creation after its saved

I am trying to find the correct method to create the afterPlugin for. I need to collect and send the invoice data after it is created and saved, I tried with both afterRegister and afterPay but both ...
2
votes
1answer
306 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
2k 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
282 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
476 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
966 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
0answers
252 views

“Font has not been set” error when printing invoices

Trying to print invoices. I get the error "Font has not been set" and it refuses to generate PDFs. This error seems to be linked to certain orders, though there is no rhyme or reason. The next ...
2
votes
1answer
367 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
2k 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
764 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
162 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
670 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
275 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
639 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
865 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
272 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
966 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
1answer
21 views

Magento2.4.2 own module class does not appear in generated (no error while setup:ci:compile)

sorry to bother but I'm really stuck with a strange problem. My goal is to have the invoice PDF changed but the class I've created to do this (which is currently a bunch of code from another guy) does ...
1
vote
0answers
14 views

payment required after 30 days module

hy for our exisiting customers we require that they pay after 30 days is there a module than only is visible for exisitng customers (so logged in). And when they choose this option they receive an ...
1
vote
0answers
9 views

magento 1.9 while sending invoice email i wanted to send the track shipment how can i do that

I have a problem with Magento 1.9. I came across functionality where I have to send the shipping status when I am sending the invoice email to the customer. How can I add the track shipping ...
1
vote
0answers
21 views

Magento2 get invoice detail based on tax percent group

I want to get invoice detail based on TaxGroup percentage, How can I achieve this. Using sales_order_save_after event observer. InvoiceObject = { 'orderId': 2324234, 'invoiceId': 443322, '...
1
vote
1answer
115 views

Payment content showing with HTML tags on admin invoice pages

Magento 1 version : 1.9.4.0 Magento 2 version : 2.3.5 Fresh install of m2 Run migrate:settings Run migrate:data All data is migrated We migrated data successfully but getting issues of html tags on ...
1
vote
1answer
333 views

Magento 2 Invoice PDF date is showing wrong

Magento 2 order date showing wrong in Invoice PDF,the order date is showing correct in admin order page but it is not showing correct when generate invoice PDF. Magento 2 admin order page(looks good) ...
1
vote
0answers
47 views

Magento 2 - How do i edit qty in partial invoice?

I want to edit qty in the partial invoice on my live website but won't be able to edit that for pending payment status, it's working fine for pending payment status. Attaching a screenshot for your ...
1
vote
0answers
38 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
34 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
131 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
677 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
528 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
529 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
2 3 4 5 6