invoice

NetSuite Invoice Creation MLI_LOCATION_REQUIRED but invoice.location unsettable

孤者浪人 提交于 2019-12-11 12:26:21
问题 Seems like most people are using the PHP Toolkit for NetSuite webservices interaction; I am not, but I'll paste the SOAP encoded request/response in the hopes someone can help (cough Suite Resources cough). I'm trying to create a new invoice with a single invoice item. I get the error: Multi-location Inventory Error (MLI_LOCATION_REQUIRED): this transaction or its items must have locations. However when I try to set the location on the invoice itself I get the error: You do not have

Automatic invoicing in magento

末鹿安然 提交于 2019-12-07 07:11:46
问题 I have created new custom product type which extends virtual product in magento. Now I would like to block automatic invoicing for online payments eg. paypal when order contains at least one custom product type. All orders with such product have to be invoiced manually. How should I resolve this? 回答1: The best approach to this would be register an Observer to an Event thrown during the payment capture process, but I'm not seeing too many relevant ones unfortunately. You could try sales_order

Invoice table design

冷暖自知 提交于 2019-12-06 17:08:08
问题 I am creating an invoice table for the customers. Sometime they will have to send me the commission fees or sometime I send them fees (account balance). How to design a invoice table in this situation? I have came up with this solution, im not sure if this is correct or what is the alternative way? tbl_invoice - invoice_id (PK) - order_id (FK) - invoice_date - amount (copy the price from tbl_order.total table) - status (Invoice Sent, Cancelled, Amount Received, Amount Sent) tbl_Payments -

Odoo validate invoice from code

筅森魡賤 提交于 2019-12-06 14:08:09
问题 I creating an invoice from another model, and want to get validated not draft But internal number and total are not generated with my code. invoice_id = self.pool.get('account.invoice').create(cr, uid,{ 'partner_id':self.supplier.id, 'name' : 'Faltante mercaderia', 'journal_id': journal_id, 'account_id':account_id, 'type': 'in_refund', }) self.pool.get('account.invoice.line').create(cr, uid,{ 'invoice_id' : invoice_id, 'name' : 'Faltante mercaderia %s: %s' %(self.type,self.number), 'quantity'

Generating Pdf from webpage in asp.net

狂风中的少年 提交于 2019-12-06 10:17:22
Could you give me some recommendations on free/Openspurce library etc that could be integrated on asp.net application to Generate Pdf out of Html fragments. I will be generating Invoices that is displayed in DataGrid and tables. Is there some readily available library that would print the whole Table with Datagrid into Pdf. ITextSharp seems nice but i will have to do the tough work of adding tables and blah blah when everything is already in the webpage. this is a possible duplicate but it generates pdf from Full page which is not desired Possible duplicate question ITextSharp does almost what

Display Custom Total Saving in generated invoice in WooCommerce 3

非 Y 不嫁゛ 提交于 2019-12-06 04:20:18
In WooCommerce I am using WooCommerce Print Invoices & Packing lists plugin… How can I display the total savings of any order in the invoices generated by this plugin ? 1 year ago I have been using this code based on [ this answer ] and that was working before I updated WooCommerce : <?php $discount_total = 0; $_order = wc_get_order( $order_id ); foreach ($_order->get_items() as $order_item) { if ($order_item['variation_id'] > 0) { $line_item = wc_get_product( $order_item['variation_id'] ); } else { $line_item = wc_get_product( $order_item['product_id'] ); } $sale_price = $line_item->sale

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

牧云@^-^@ 提交于 2019-12-05 07:21:53
问题 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

Odoo validate invoice from code

自闭症网瘾萝莉.ら 提交于 2019-12-04 18:52:36
I creating an invoice from another model, and want to get validated not draft But internal number and total are not generated with my code. invoice_id = self.pool.get('account.invoice').create(cr, uid,{ 'partner_id':self.supplier.id, 'name' : 'Faltante mercaderia', 'journal_id': journal_id, 'account_id':account_id, 'type': 'in_refund', }) self.pool.get('account.invoice.line').create(cr, uid,{ 'invoice_id' : invoice_id, 'name' : 'Faltante mercaderia %s: %s' %(self.type,self.number), 'quantity' : self.dif_final, 'price_unit':self.tarifa_dif / 1000, }) a = self.env['account.invoice'].browse(

Data modelling draft/quote/order/invoice

走远了吗. 提交于 2019-12-04 09:39:02
问题 Im currently working on a small project in which I need to model the following scenario: Scenario Customer calls, he want an quote on a new car. Sales rep. register customer information. Sales rep. create a quote in the system, and add a item to the quote (the car). Sales rep. send the quote to the customer on email. Customer accept the quote, and the quote is now not longer a quote but an order. Sales rep. check the order, everything is OK and he invoice the order. The order is now not

How to handle price fluctuations in an invoice application?

自闭症网瘾萝莉.ら 提交于 2019-12-04 08:51:13
In an invoicing application, consider following: I have a products table that also contains the price of the product. And then I have an invoice and invoice_lines table and in each invoice line, I refer to the product id along with quantity. In this case, I am not storing the price of the product with the invoice line. Now few months later, if the price of the product changes, any report would show the volume of the sales based on current price instead of the price on which the product was actually sold. One solution that comes to my mind is that we keep a separate table named prices that