|
569 | 569 | </p:panel>
|
570 | 570 |
|
571 | 571 | <p:panel rendered="#{pharmacyPurchaseController.printPreview}">
|
572 |
| - <p:panel class="m-0 p-0" > |
573 |
| - <f:facet name="header" > |
574 |
| - <div class="d-flex align-items-center justify-content-between"> |
575 |
| - <div> |
576 |
| - <h:outputText styleClass="fa-solid fa-circle-plus" /> |
577 |
| - <h:outputLabel value="Direct Purchase Order" class="mx-4"></h:outputLabel> |
578 |
| - </div> |
579 |
| - <div> |
580 |
| - <p:commandButton |
581 |
| - ajax="false" |
582 |
| - class="ui-button-success" |
583 |
| - icon="fa fa-plus" |
584 |
| - action="#{pharmacyPurchaseController.makeNull()}" |
585 |
| - value="New Bill"/> |
586 |
| - <p:commandButton |
587 |
| - value="Print" |
588 |
| - ajax="false" |
589 |
| - action="#" |
590 |
| - class="ui-button-info mx-2" |
591 |
| - icon="fas fa-print"> |
592 |
| - <p:printer target="gpBillPreview" ></p:printer> |
593 |
| - </p:commandButton> |
594 |
| - </div> |
| 572 | + <f:facet name="header" > |
| 573 | + <div class="d-flex align-items-center justify-content-between"> |
| 574 | + <div> |
| 575 | + <h:outputText styleClass="fa-solid fa-circle-plus" /> |
| 576 | + <h:outputLabel value="Direct Purchase Order" class="mx-4"></h:outputLabel> |
595 | 577 | </div>
|
596 |
| - </f:facet> |
597 |
| - <p:panel id="gpBillPreview"> |
598 |
| - <pharmacy:purhcase bill="#{pharmacyPurchaseController.bill}"/> |
599 |
| - </p:panel> |
600 |
| - </p:panel> |
| 578 | + <div> |
| 579 | + <p:commandButton |
| 580 | + value="Print" |
| 581 | + ajax="false" |
| 582 | + action="#" |
| 583 | + class="ui-button-info mx-2" |
| 584 | + icon="fas fa-print"> |
| 585 | + <p:printer target="gpBillPreview" ></p:printer> |
| 586 | + </p:commandButton> |
| 587 | + <p:commandButton |
| 588 | + ajax="false" |
| 589 | + class="ui-button-success" |
| 590 | + icon="fa fa-plus" |
| 591 | + action="#{pharmacyPurchaseController.makeNull()}" |
| 592 | + value="New Bill"/> |
| 593 | + |
| 594 | + </div> |
| 595 | + </div> |
| 596 | + </f:facet> |
| 597 | + <h:panelGroup id="gpBillPreview" > |
| 598 | + <pharmacy:purhcase |
| 599 | + bill="#{pharmacyPurchaseController.bill}" |
| 600 | + ShowProfit="#{configOptionApplicationController.getBooleanValueByKey('Show Profit % in Direct Purchase Bill', true)}" |
| 601 | + ShowRetailValue="#{configOptionApplicationController.getBooleanValueByKey('Show Retail Value in Direct Purchase Bill', true)}"> |
| 602 | + </pharmacy:purhcase> |
| 603 | + </h:panelGroup> |
| 604 | + |
601 | 605 | </p:panel>
|
602 | 606 | </h:form>
|
603 | 607 | </ui:define>
|
|
0 commit comments