在Magento中更改发票日期

时间:2012-10-07 13:09:03

标签: magento date invoice

有谁知道如何更改订单并在Magento中开具发票? 我想要及时更改订单日期。

任何人都可以帮助我吗?

2 个答案:

答案 0 :(得分:2)

如果您不想以编程方式执行此操作,则可以修改sales_flat_ordersales_flat_invoice表中存储的信息。

如果还需要在概述中更新发票日期,您还必须修改sales_flat_order_gridsales_flat_invoice_grid

答案 1 :(得分:1)

尝试

    /* @var Mage_Sales_Model_Order_Invoice $invoice */
    $invoice = Mage::getModel('sales/order_invoice')->loadByIncrementId($invoiceIncrementId);
    $invoice->setCreatedAt(...);
    $invoice->setUpdatedAt(...);
    $invoice->save();