3352-docuware #880

Merged
joan merged 16 commits from 3352-docuware into dev 2022-02-28 13:44:49 +00:00
3 changed files with 8 additions and 4 deletions
Showing only changes of commit 8bbb5d5c27 - Show all commits

View File

@ -2,4 +2,8 @@ CREATE TABLE `vn`.`docuwareConfig` (
`id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`url` varchar(75) NULL,
`token` varchar(1000) DEFAULT NULL
);
);
INSERT INTO `vn`.`docuwareConfig` (`url`)
VALUES
('https://verdnatura.docuware.cloud/docuware/platform');

View File

@ -20,13 +20,13 @@
<vn-menu vn-id="showDeliveryNoteMenu">
<vn-list>
<vn-item
ng-if="!$ctrl.hasDocuware"
ng-if="!$ctrl.hasDocuwareFile"
ng-click="$ctrl.showPdfDeliveryNote()"
translate>
as PDF
</vn-item>
<a class="vn-item"
ng-if="$ctrl.hasDocuware"
ng-if="$ctrl.hasDocuwareFile"
href='api/Docuwares/{{$ctrl.ticket.id}}/download/deliveryClient/findTicket?access_token={{$ctrl.vnToken.token}}'
target="_blank"
translate>

View File

@ -130,7 +130,7 @@ class Controller extends Section {
};
this.$http.post(`Docuwares/${this.id}/checkFile`, params)
.then(res => {
this.hasDocuware = res.data;
this.hasDocuwareFile = res.data;
});
}