Fix: [ bug #1393 ] PHP Warning when creating a supplier invoice.

Fix: [ bug #1393 ] PHP Warning when creating a supplier invoice.