1

商品とグループの割引を請求書に表示したいです。請求書を次のように変更しました。

参照 | 説明 | 数量 | 単価 | 割引 | 合計 |

そのため、製品と同じ行に製品関連の割引を表示する必要があります。これを達成する方法はありますか?Google とフォーラムで検索しましたが、答えが見つかりませんでした。

前もって感謝します。

4

1 に答える 1

1

そして2016年になってもまだ答えはありません。私はこれに苦労していましたが、しばらくすると成功しました。2012 年にどの Prestashop がリリースされたかはわかりませんが、今日の 1.6.1.9 (私の現在のバージョン) にある prestashop の最新バージョンについていくつかのヒントを与えることができます。prestashop で請求書を変更しようとしている人は、テンプレート ファイルがフォルダー pdf にあり、ファイル名がinvoice.product-tab.tpl で、製品に関するフィールド (価格、税、割引など) を編集および追加することができます。 すべてあなたが知る必要があるのはこれです:

$order_detail.product_name -> returns the name of the product
$order_detail.unit_price_tax_excl_before_specific_price -> returns the price of product without tax and before discount
$order_detail.unit_price_tax_excl_including_ecotax -> returns product price without tax and included eco tax (if there is 1)
$order_detail.order_detail_tax_label -> return the tax percentage
$order_detail.product_quantity -> returns the quantity of orderd product
$order_detail.total_price_tax_incl_including_ecotax - > returns the total amout that is product price + tax

このコードを使用すると、割合または現金で割引を計算でき、teplate で使用できます。.tpl には他にもいくつかのコードがありますが、それはこの質問の一部ではありません。

これが誰にも役立つことを願っています。

于 2016-11-29T20:03:59.897 に答える