Index: ssts-web/src/main/webapp/disinfectsystem/print/print.js
===================================================================
diff -u -r26068 -r26071
--- ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 26068)
+++ ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 26071)
@@ -516,7 +516,7 @@
tableHtml += "
= 0 || indexName == "amount"){
value = printSummaryObj.totalGoodsAmount;
- if(sstsConfig && sstsConfig.alignForTotalAndAmountWithPrint == true && typeof(isPrintForGoodsWithBtn) != "undefined" && isPrintForGoodsWithBtn == true){
+ if(typeof(sstsConfig.alignForTotalAndAmountWithPrint) != "undefined" && sstsConfig.alignForTotalAndAmountWithPrint == true && typeof(isPrintForGoodsWithBtn) != "undefined" && isPrintForGoodsWithBtn == true){
//江门中心市医院要求金额和数量右对齐
tableHtml += "'right'" + " style=" + "'BORDER: #000000 1px solid; padding-right:0px;'>" ;
tableHtml += value;
@@ -538,7 +538,7 @@
}
else if(indexName == "rowPrice" || indexName == "totalPrice"){
value = formatMoney(printSummaryObj.totalPrice);
- if(sstsConfig && sstsConfig.alignForTotalAndAmountWithPrint == true && typeof(isPrintForGoodsWithBtn) != "undefined" && isPrintForGoodsWithBtn == true){
+ if(typeof(sstsConfig.alignForTotalAndAmountWithPrint) != "undefined" && sstsConfig.alignForTotalAndAmountWithPrint == true && typeof(isPrintForGoodsWithBtn) != "undefined" && isPrintForGoodsWithBtn == true){
//江门中心市医院要求金额和数量右对齐
tableHtml += "'right'" + " style=" + "'BORDER: #000000 1px solid; padding-right:0px;'>" ;
tableHtml += value;
|