Skip to content

Commit

Permalink
Generate invoice number also for pending orders
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Oct 30, 2023
1 parent 03da136 commit 497ea3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MShop/Order/Manager/Standard.php
Expand Up @@ -618,7 +618,7 @@ protected function saveItem( \Aimeos\MShop\Order\Item\Iface $item, bool $fetch =
return $this->saveBasket( $item );
}

if( empty( $item->getInvoiceNumber() ) && $item->getStatusPayment() >= \Aimeos\MShop\Order\Item\Base::PAY_AUTHORIZED )
if( empty( $item->getInvoiceNumber() ) && $item->getStatusPayment() >= \Aimeos\MShop\Order\Item\Base::PAY_PENDING )
{
try {
$item->setInvoiceNumber( $this->createInvoiceNumber( $item ) );
Expand Down

0 comments on commit 497ea3f

Please sign in to comment.