add discount to invoices

This commit is contained in:
ok236449 2022-08-27 20:35:17 +02:00
parent 5a3259b891
commit d41a68c63e

View file

@ -615,7 +615,7 @@ class PaymentController extends Controller
->name(__("Invoice"))
->buyer($customer)
->seller($seller)
->discountByPercent(0)
->discountByPercent(PartnerDiscount::getDiscount())
->taxRate(floatval($shopProduct->getTaxPercent()))
->shipping(0)
->addItem($item)