X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=ng_selfservice%2Fquotation.php;h=acccf9cb10798816b12d7feadad225fc67322d68;hb=a8f897874a93d7acfba75833de9c0629e076b752;hp=cf455431b1f8964996815ca3a790395dc2e7f15d;hpb=89b934cfce5226556eb5f2ebb8377fb87d278a63;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
}