Merge branch 'dev' into 5334-editDepartment
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
f0f8b112cd
|
@ -4,4 +4,4 @@ apps:
|
|||
instances: 1
|
||||
max_restarts: 3
|
||||
restart_delay: 15000
|
||||
node_args: --tls-min-v1.0
|
||||
node_args: --tls-min-v1.0 --openssl-legacy-provider
|
||||
|
|
|
@ -200,10 +200,11 @@ module.exports = function(Self) {
|
|||
const connector = this.dataSource.connector;
|
||||
let conn;
|
||||
let res;
|
||||
const opts = Object.assign({}, options);
|
||||
|
||||
try {
|
||||
if (userId) {
|
||||
if (!options.transaction) {
|
||||
options = Object.assign({}, options);
|
||||
conn = await new Promise((resolve, reject) => {
|
||||
connector.client.getConnection(function(err, conn) {
|
||||
if (err)
|
||||
|
@ -212,10 +213,7 @@ module.exports = function(Self) {
|
|||
resolve(conn);
|
||||
});
|
||||
});
|
||||
|
||||
const opts = Object.assign({}, options);
|
||||
if (!opts.transaction) {
|
||||
opts.transaction = {
|
||||
options.transaction = {
|
||||
connection: conn,
|
||||
connector
|
||||
};
|
||||
|
@ -223,15 +221,14 @@ module.exports = function(Self) {
|
|||
|
||||
await connector.executeP(
|
||||
'CALL account.myUser_loginWithName((SELECT name FROM account.user WHERE id = ?))',
|
||||
[userId], opts
|
||||
[userId], options
|
||||
);
|
||||
}
|
||||
|
||||
res = await connector.executeP(query, params, opts);
|
||||
res = await connector.executeP(query, params, options);
|
||||
|
||||
if (userId) {
|
||||
await connector.executeP('CALL account.myUser_logout()', null, opts);
|
||||
}
|
||||
if (userId)
|
||||
await connector.executeP('CALL account.myUser_logout()', null, options);
|
||||
} finally {
|
||||
if (conn) conn.release();
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@ module.exports = Self => {
|
|||
|
||||
Self.confirm = async(ctx, orderFk) => {
|
||||
const userId = ctx.req.accessToken.userId;
|
||||
|
||||
const query = `CALL hedera.order_confirmWithUser(?, ?)`;
|
||||
const response = await Self.rawSql(query, [orderFk, userId], {userId});
|
||||
|
||||
|
|
|
@ -5,3 +5,4 @@ columns:
|
|||
beneficiary: beneficiary
|
||||
supplierFk: supplier
|
||||
bankEntityFk: bank entity
|
||||
accountingFk: ledger account
|
||||
|
|
|
@ -5,3 +5,4 @@ columns:
|
|||
beneficiary: beneficiario
|
||||
supplierFk: proveedor
|
||||
bankEntityFk: entidad bancaria
|
||||
accountingFk: cuenta contable
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
<vn-th ng-click="$ctrl.sortBy('price')" field="price" number>Price</vn-th>
|
||||
<vn-th ng-click="$ctrl.sortBy('discount')" field="discount" number>Disc</vn-th>
|
||||
<vn-th ng-click="$ctrl.sortBy('amount')" field="amount" number>Amount</vn-th>
|
||||
<vn-th ng-click="$ctrl.sortBy('itemPackingTypeFk')" field="itemPackingTypeFk" shrink>Packaging</vn-th>
|
||||
<vn-th ng-click="$ctrl.sortBy('item.itemPackingTypeFk')" field="itemPackingTypeFk" shrink>Packaging</vn-th>
|
||||
<vn-th shrink></vn-th>
|
||||
</vn-tr>
|
||||
</vn-thead>
|
||||
|
@ -202,7 +202,7 @@
|
|||
</span>
|
||||
</vn-td>
|
||||
<vn-td number>
|
||||
{{$ctrl.getSaleTotal(sale) | currency: 'EUR':2}}
|
||||
{{sale.amount | currency: 'EUR':2}}
|
||||
</vn-td>
|
||||
<vn-td shrink>
|
||||
{{::sale.item.itemPackingTypeFk | dashIfEmpty}}
|
||||
|
|
|
@ -34,6 +34,11 @@ class Controller extends Section {
|
|||
}
|
||||
|
||||
get sales() {
|
||||
if (this._sales) {
|
||||
for (let sale of this._sales)
|
||||
sale.amount = this.getSaleTotal(sale);
|
||||
}
|
||||
|
||||
return this._sales;
|
||||
}
|
||||
|
||||
|
@ -49,6 +54,7 @@ class Controller extends Section {
|
|||
|
||||
return ticketState && ticketState.state.code;
|
||||
}
|
||||
|
||||
getConfig() {
|
||||
let filter = {
|
||||
fields: ['daysForWarningClaim'],
|
||||
|
|
|
@ -242,7 +242,7 @@
|
|||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
<div class="columns vn-mt-xl" v-if="invoice.payMethodCode == 'wireTransfer' && invoice.iban">
|
||||
<div class="columns vn-mt-lg" v-if="(invoice.payMethodCode == 'wireTransfer' && invoice.iban) || ticketObservations">
|
||||
<div class="size50 pull-left no-page-break">
|
||||
<div class="panel">
|
||||
<div class="header">{{$t('observations')}}</div>
|
||||
|
@ -267,9 +267,7 @@
|
|||
v-bind:left-text="$t('invoiceRef', [invoice.ref])"
|
||||
v-bind:center-text="client.socialName"
|
||||
v-bind:recipient-id="client.id"
|
||||
v-bind="$props"
|
||||
|
||||
>
|
||||
v-bind="$props">
|
||||
</report-footer>
|
||||
</template>
|
||||
</report-body>
|
||||
|
|
Loading…
Reference in New Issue