Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Partial Invoicing #57

Open
PatrickJuergens opened this issue Sep 5, 2018 · 1 comment
Open

Partial Invoicing #57

PatrickJuergens opened this issue Sep 5, 2018 · 1 comment
Labels
Feature New feature proposals.

Comments

@PatrickJuergens
Copy link

Currently, you can only create an invoice for the entire purchase order.

There are business cases for which a partial invoice is necessary.

interface InvoiceGeneratorInterface
{
    public function generateForOrder(OrderInterface $order, \DateTimeInterface $date): InvoiceInterface;

    /**
     * @param array $orderItemData [['orderItem' => $orderItem1, 'quantity' => 1],['orderItem' => $orderItem2, 'quantity' => 1]]
     * @param int $shippingAmount Shipping amount for this invoivce
     * @param \DateTimeInterface $date
     * @return InvoiceInterface
     */
    public function generateForOrderItems(array $orderItemData, int $shippingAmount, \DateTimeInterface $date): InvoiceInterface;
}
@Zales0123 Zales0123 added the Feature New feature proposals. label Oct 1, 2018
@diimpp
Copy link
Member

diimpp commented Feb 20, 2020

It also may be dependant on multiple partial payment #142

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Feature New feature proposals.
Projects
None yet
Development

No branches or pull requests

3 participants