LinxHQ / linxbooks

Open-source accounting software (customers, invoices, quotations, bills, expenses, payrolls and reports)
GNU Affero General Public License v3.0
101 stars 66 forks source link

Undefined offset: 0 #31

Open kokenot opened 7 years ago

kokenot commented 7 years ago

How to solve this error. fail when generate pdf invoice

C:\xampp\htdocs\linxbooks\linxbooks\protected\modules\lbInvoice\views\default\pdf.php(130)

josephpnc commented 7 years ago

Have you checked out the latest pdf.php file of this module and tried again?

On 16 May 2017, at 3:16 PM, johnmalay notifications@github.com wrote:

How to solve this error

C:\xampp\htdocs\linxbooks\linxbooks\protected\modules\lbInvoice\views\default\pdf.php(130)

'.nl2br($model->lb_invoice_subject).''; 119 } 120 $create_by = AccountProfile::model()->getFullName(LbCoreEntity::model()->getCoreEntity(LbInvoice::model()->module_name,$model->lb_record_primary_key)->lb_created_by); 121 $term = UserList::model()->getTermName('term',$model->lb_invoice_term_id); 122 123 $tbl= ' 124 '.$html_logo.' 125 126 133
127 INVOICE
128 Invoice No: '.$model->lb_invoice_no.'
129 Invoice Date: '.date('d-M-Y', strtotime($model->lb_invoice_date)).'
130 Term: '.$term[0]['system_list_item_name'].'
131 Due Date: '.date('d-M-Y', strtotime($model->lb_invoice_due_date)).'
132
134 135 '.(isset($model->owner->lb_customer_name) ? $model->owner->lb_customer_name.'. ' : '').'
136 '.(isset($model->owner->lb_customer_registration) ? "Registration No: ".$model->owner->lb_customer_registration.'. ' : '').' 137 '.(isset($model->owner->lb_customer_website_url) ? "Website: ".$model->owner->lb_customer_website_url.'' : '').'
138 '.$add.(isset($model->ownerAddress->lb_customer_address_line_1) && $model->ownerAddress->lb_customer_address_line_1 != "" ? $model->ownerAddress->lb_customer_address_line_1.'. ' : '').' 139 '.(isset($model->ownerAddress->lb_customer_address_line_2) && $model->ownerAddress->lb_customer_address_line_2 != "" ? $model->ownerAddress->lb_customer_address_line_2.'. ' : '').' 140 '.(isset($model->ownerAddress->lb_customer_address_city) && $model->ownerAddress->lb_customer_address_city != "" ? $model->ownerAddress->lb_customer_address_city.'. ' : '').' 141 '.(isset($model->ownerAddress->lb_customer_address_state) && $model->ownerAddress->lb_customer_address_state != ""? $model->ownerAddress->lb_customer_address_state.'. ' : '').' 142 '.(isset($model->ownerAddress->lb_customer_address_country) ? $country[$model->ownerAddress->lb_customer_address_country] : '').' — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub , or mute the thread .