3352-docuware #880

Merged
joan merged 16 commits from 3352-docuware into dev 2022-02-28 13:44:49 +00:00
1 changed files with 91 additions and 92 deletions
Showing only changes of commit 71ddccb9a1 - Show all commits

View File

@ -4,80 +4,79 @@
vn-popover="menu"> vn-popover="menu">
</vn-icon-button> </vn-icon-button>
<vn-menu vn-id="menu"> <vn-menu vn-id="menu">
<vn-list> <vn-list>
<vn-item class="dropdown" <vn-item class="dropdown"
vn-click-stop="showInvoiceMenu.show($event, 'left')" vn-click-stop="showInvoiceMenu.show($event, 'left')"
name="showInvoicePdf" name="showInvoicePdf"
translate> translate>
Show invoice... Show invoice...
<vn-menu vn-id="showInvoiceMenu"> <vn-menu vn-id="showInvoiceMenu">
<vn-list> <vn-list>
<a class="vn-item" <a class="vn-item"
href="api/InvoiceOuts/{{$ctrl.id}}/download?access_token={{$ctrl.vnToken.token}}" href="api/InvoiceOuts/{{$ctrl.id}}/download?access_token={{$ctrl.vnToken.token}}"
target="_blank" target="_blank"
name="showInvoicePdf" name="showInvoicePdf"
translate> translate>
Show as PDF Show as PDF
</a> </a>
<vn-item <vn-item
ng-click="$ctrl.showCsvInvoice()" ng-click="$ctrl.showCsvInvoice()"
translate> translate>
Show as CSV Show as CSV
</vn-item> </vn-item>
</vn-list> </vn-list>
</vn-menu> </vn-menu>
</vn-item> </vn-item>
<vn-item class="dropdown" <vn-item class="dropdown"
vn-click-stop="sendInvoiceMenu.show($event, 'left')" vn-click-stop="sendInvoiceMenu.show($event, 'left')"
name="sendInvoice" name="sendInvoice"
translate> translate>
Send invoice... Send invoice...
<vn-menu vn-id="sendInvoiceMenu">
<vn-menu vn-id="sendInvoiceMenu"> <vn-list>
<vn-list> <vn-item
<vn-item ng-click="sendPdfConfirmation.show({email: $ctrl.invoiceOut.client.email})"
ng-click="sendPdfConfirmation.show({email: $ctrl.invoiceOut.client.email})" translate>
translate> Send PDF
Send PDF </vn-item>
</vn-item> <vn-item
<vn-item ng-click="sendCsvConfirmation.show({email: $ctrl.invoiceOut.client.email})"
ng-click="sendCsvConfirmation.show({email: $ctrl.invoiceOut.client.email})" translate>
translate> Send CSV
Send CSV </vn-item>
</vn-item> </vn-list>
</vn-list> </vn-menu>
</vn-menu> </vn-item>
</vn-item> <vn-item
<vn-item ng-click="deleteConfirmation.show()"
ng-click="deleteConfirmation.show()" vn-acl="invoicing"
vn-acl="invoicing" vn-acl-action="remove"
vn-acl-action="remove" name="deleteInvoice"
name="deleteInvoice" translate>
translate> Delete Invoice
Delete Invoice </vn-item>
</vn-item> <vn-item
<vn-item ng-click="bookConfirmation.show()"
ng-click="bookConfirmation.show()" vn-acl="invoicing"
vn-acl="invoicing" vn-acl-action="remove"
vn-acl-action="remove" name="bookInvoice"
name="bookInvoice" translate>
translate> Book invoice
Book invoice </vn-item>
</vn-item> <vn-item
<vn-item ng-click="createInvoicePdfConfirmation.show()"
ng-click="createInvoicePdfConfirmation.show()" ng-show="$ctrl.hasInvoicing || !$ctrl.invoiceOut.hasPdf"
ng-show="$ctrl.hasInvoicing || !$ctrl.invoiceOut.hasPdf" name="regenerateInvoice"
name="regenerateInvoice" translate>
translate> {{!$ctrl.invoiceOut.hasPdf ? 'Generate PDF invoice': 'Regenerate PDF invoice'}}
{{!$ctrl.invoiceOut.hasPdf ? 'Generate PDF invoice': 'Regenerate PDF invoice'}} </vn-item>
</vn-item> <vn-item
<vn-item ng-click="$ctrl.showExportationLetter()"
ng-click="$ctrl.showExportationLetter()" ng-show="$ctrl.invoiceOut.serial == 'E'"
ng-show="$ctrl.invoiceOut.serial == 'E'" translate>
translate> Show CITES letter
Show CITES letter </vn-item>
</vn-item> </vn-list>
</vn-list>
</vn-menu> </vn-menu>
<vn-confirm <vn-confirm
vn-id="deleteConfirmation" vn-id="deleteConfirmation"
@ -106,17 +105,17 @@
vn-id="sendPdfConfirmation" vn-id="sendPdfConfirmation"
on-accept="$ctrl.sendPdfInvoice($data)" on-accept="$ctrl.sendPdfInvoice($data)"
message="Send PDF invoice"> message="Send PDF invoice">
<tpl-body> <tpl-body>
<span translate>Are you sure you want to send it?</span> <span translate>Are you sure you want to send it?</span>
<vn-textfield vn-one <vn-textfield vn-one
label="Email" label="Email"
ng-model="sendPdfConfirmation.data.email"> ng-model="sendPdfConfirmation.data.email">
</vn-textfield> </vn-textfield>
</tpl-body> </tpl-body>
<tpl-buttons> <tpl-buttons>
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/> <input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
<button response="accept" translate>Confirm</button> <button response="accept" translate>Confirm</button>
</tpl-buttons> </tpl-buttons>
</vn-dialog> </vn-dialog>
<!-- Send CSV invoice confirmation popup --> <!-- Send CSV invoice confirmation popup -->
@ -124,13 +123,13 @@
vn-id="sendCsvConfirmation" vn-id="sendCsvConfirmation"
on-accept="$ctrl.sendCsvInvoice($data)" on-accept="$ctrl.sendCsvInvoice($data)"
message="Send CSV invoice"> message="Send CSV invoice">
<tpl-body> <tpl-body>
<span translate>Are you sure you want to send it?</span> <span translate>Are you sure you want to send it?</span>
<vn-textfield vn-one <vn-textfield vn-one
label="Email" label="Email"
ng-model="sendCsvConfirmation.data.email"> ng-model="sendCsvConfirmation.data.email">
</vn-textfield> </vn-textfield>
</tpl-body> </tpl-body>
<tpl-buttons> <tpl-buttons>
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/> <input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
<button response="accept" translate>Confirm</button> <button response="accept" translate>Confirm</button>