Skip to content

Commit

Permalink
fixes default value not working for payment conditions on invoices
Browse files Browse the repository at this point in the history
The value needed to be trimmed. Otherwise Smarty did not match the
<option> tag with the default tag.
  • Loading branch information
Luke1982 committed Oct 10, 2016
1 parent 3983627 commit 737f41d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ExactOnline/classes/ExactPaymentCond.class.php
Expand Up @@ -25,7 +25,7 @@ public function getPaymentConds($division) {
// Prepare the values for the dropdown in corebos
$dropdownValues = array();
foreach ($PaymentCondsArray['d']['results'] as $value) {
$dropdownValues[] = $value['Code']." - ".$value['Description'];
$dropdownValues[] = $value['Code']." - ".trim($value['Description']);
}
// Return the array so we can add it to the field in Invoices
return $dropdownValues;
Expand Down

0 comments on commit 737f41d

Please sign in to comment.