invoice

Magento: Order has invoice (generated) but 'Total due' > 0

不羁岁月 提交于 2019-12-03 21:31:22
I have a live Magento 1.5.0.1 webshop, with the following problem: We have received an order, which has been paid for through iDEAL (Dutch online payment service) and an invoice has been auto-generated on payment success. We have also received the amount on our bank account. The only thing is, we cannot complete the order because of the 'Total due' field being an amount higher than 0 (zero). This must be a bug in our iDEAL-module (which will be dealt with at another moment). Is there a way to 'force' this particular order to be 'complete' with the Total due field set to 0? Obviously, PHP-code

How to create partial invoice?

拜拜、爱过 提交于 2019-12-03 10:49:18
问题 From a specific order I want to create an invoice for some selected items from that order. I have successfully created an invoice for the whole order programmatically, but I want to create a partial invoice of that order. 回答1: Atlast I got it . Had to dig magento to get this . $orderid // order id $order = Mage::getModel('sales/order')->load($orderid); or for order increment id $orderincrmentid // order increment id $order = Mage::getModel('sales/order')->loadByIncrementId($orderincrmentid);

How to create partial invoice?

别来无恙 提交于 2019-12-03 00:24:21
From a specific order I want to create an invoice for some selected items from that order. I have successfully created an invoice for the whole order programmatically, but I want to create a partial invoice of that order. Atlast I got it . Had to dig magento to get this . $orderid // order id $order = Mage::getModel('sales/order')->load($orderid); or for order increment id $orderincrmentid // order increment id $order = Mage::getModel('sales/order')->loadByIncrementId($orderincrmentid); if($order->canInvoice()) { $invoiceId = Mage::getModel('sales/order_invoice_api') ->create($order-

jquery table rows line totals and grand total

限于喜欢 提交于 2019-12-02 09:36:04
问题 I'm currently writing a small plugin for computer repair techs and I'm now trying to code the invoice section but not having much luck! I've got the fields being populated from the database but I'm trying to use jquery to update the line totals and the total of the invoice. Heres a quick image of what I'm trying to do! I'm trying to get it to update the totals on pageload and when a value changes in the unit cost and quantity textfields. $(document).ready(function() { $("#invoiceitems tbody

QuickBooks invoice modify has different address behavior than create, how to compensate?

时光总嘲笑我的痴心妄想 提交于 2019-12-01 08:11:14
问题 I'm writting a function to take an invoice file in a defined format and import it into QuickBooks via qbXML. One of the requrements is that it be possible to reimport the same invoice number than that the existing invoice be modified rather than create a new one with the same number. The problem I have is with how QuickBooks handles addresses. The addresses I'm getting can be in any format (In 6 different contenents), without any guarantee of adherence to a proper address format for that

Get all invoices in Magento

家住魔仙堡 提交于 2019-11-30 07:42:23
问题 How do I get all the invoices collection? I know that to get all the orders is: $orders = Mage::getModel(sales/order)->getCollection(); However I can't seem to find the equivalent with invoice (it's not sales/invoice). Sorry if it's a dumb question. 回答1: You need to use : $orders = Mage::getModel("sales/order_invoice")->getCollection(); For the explanation : When you want to access i block/model/resource/helper/etc in magento : first, you choose the right method to access it : Mage::getModel

Creating PDF Invoices - Are there any templating solutions? [closed]

拥有回忆 提交于 2019-11-29 21:48:34
Our company is looking to integrate invoices into a new system we are developing. We require a solution to create a layout of the invoice and then convert to pdf. We have considered just laying out the invoice in html/css then converting to pdf. We have also considered using SVG->PDf conversion. Both of these solutions integrate well into our existing templating language used for our web application. Historically we have been a Microsoft based business and used Crystal Reports for such a task but we are looking for an open source Linux solution for this project. Does any one have any

Get all invoices in Magento

情到浓时终转凉″ 提交于 2019-11-29 05:22:33
How do I get all the invoices collection? I know that to get all the orders is: $orders = Mage::getModel(sales/order)->getCollection(); However I can't seem to find the equivalent with invoice (it's not sales/invoice). Sorry if it's a dumb question. You need to use : $orders = Mage::getModel("sales/order_invoice")->getCollection(); For the explanation : When you want to access i block/model/resource/helper/etc in magento : first, you choose the right method to access it : Mage::getModel for a model second, you must tell magento "which" module you want to access. You do that with the first part

Creating PDF Invoices - Are there any templating solutions? [closed]

别等时光非礼了梦想. 提交于 2019-11-28 17:38:07
问题 Our company is looking to integrate invoices into a new system we are developing. We require a solution to create a layout of the invoice and then convert to pdf. We have considered just laying out the invoice in html/css then converting to pdf. We have also considered using SVG->PDf conversion. Both of these solutions integrate well into our existing templating language used for our web application. Historically we have been a Microsoft based business and used Crystal Reports for such a task

Something like Crystal Reports for PHP?

南楼画角 提交于 2019-11-28 02:59:28
I'm looking for something that works in PHP and is similar to crystal reports. I basically need to have a layout setup that means I can output invoices just by inserting the data, and then send it to a printer. The closest I've found so far is PDFB, but It's a bit of a pain as it needs to have precise positioning. I'd like to have something that could generate an invoice based on a template (preferably XML based) and then output it to a form easy for us to print (PostScript would be nice!) It needs to have support for barcodes too (though these can be generated as a GD image) Another