X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=ng_selfservice%2Fquotation.php;fp=ng_selfservice%2Fquotation.php;h=acccf9cb10798816b12d7feadad225fc67322d68;hb=67c00bb4c9309c1ae314aa5b8657273f24539270;hp=cf455431b1f8964996815ca3a790395dc2e7f15d;hpb=89776e0f215a6ccc42f49a3323bce87b26b5b221;p=freeside.git diff --git a/ng_selfservice/quotation.php b/ng_selfservice/quotation.php index cf455431b..acccf9cb1 100644 --- a/ng_selfservice/quotation.php +++ b/ng_selfservice/quotation.php @@ -58,34 +58,46 @@ if ( isset($quotation['sections']) and count($quotation['sections']) > 0 ) { ); $row = 0; foreach ( $section['detail_items'] as $detail ) { - print( - ''. - '' - ); - if ( $detail['pkgnum'] ) { + if (isset($detail['description'])) { + print( + ''. + '' + ); + if ( $detail['pkgnum'] ) { + print( + ''. + '' + ); + } + print( + ''. + ''. htmlspecialchars($detail['description']). ''. + ''. $detail['amount']. ''. + ''. "\n" + ); + $row = 1 - $row; + } else { + # total rows; a 3.x-ism print( - ''. - '' + ''. + ''. + ''. htmlspecialchars($detail['total_item']). ''. + ''. $detail['total_amount']. ''. + ''."\n" ); } + } + if (isset($section['subtotal'])) { print( - ''. - ''. htmlspecialchars($detail['description']). ''. - ''. $detail['amount']. ''. - ''. "\n" + ''. + ''. + 'Total'. + ''. $section['subtotal']. ''. + '' ); - $row = 1 - $row; } - print( - ''. - ''. - 'Total'. - ''. $section['subtotal']. ''. - ''. - ''. - "\n" - ); + print "\n"; } # foreach $section }