【问题标题】:How to change the invoice price manually? is it possible or not?如何手动更改发票价格?有可能吗?
【发布时间】:2015-05-12 10:53:42
【问题描述】:

Magento 为订单生成发票。客户问是否可以手动更改发票价格?

【问题讨论】:

  • 发票总计或订单总计?
  • 如何在生成发票后编辑发票金额或是否有其他机会改变金额。

标签: magento invoice


【解决方案1】:

尝试关注, 你模块的config.xml

<sales_order_invoice_save_after>
    <observers>
        <sales_order_invoice_save_after>
            <class>your_module/observer</class>
            <method>invoiceSaveAfter</method>
        </sales_order_invoice_save_after>
    </observers>
</sales_order_invoice_save_after>

你的Observer.php

public function invoiceSaveAfter(Varien_Event_Observer $observer) {
        $invoice = $observer->getEvent()->getInvoice();
        if ($invoice->getBaseDonateAmount()) {
            $order = $invoice->getOrder();
            //Do your stuff here
        }
        return $this;
    }

更多information

【讨论】:

    猜你喜欢
    • 2011-03-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-09
    • 1970-01-01
    相关资源
    最近更新 更多