|
@@ -41,7 +41,7 @@ |
|
|
block discarded – undo |
|
41
|
41
|
public static function get_by_object(org_openpsa_invoices_interfaces_customer $object) |
|
42
|
42
|
{ |
|
43
|
43
|
if ( !($bd = self::get_billing_data(org_openpsa_contacts_group_dba::class, $object->customer)) |
|
44
|
|
- // check if the customerContact is set and has invoice_data |
|
|
44
|
+ // check if the customerContact is set and has invoice_data |
|
45
|
45
|
&& !($bd = self::get_billing_data(org_openpsa_contacts_person_dba::class, $object->customerContact))) { |
|
46
|
46
|
$bd = new org_openpsa_invoices_billing_data_dba(); |
|
47
|
47
|
$due = midcom_baseclasses_components_configuration::get('org.openpsa.invoices', 'config')->get('default_due_days'); |
Please login to merge, or discard this patch.