refs 5887 cambiado drop y create por create or replace
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
56247b5012
commit
da13f0811c
|
@ -68,7 +68,7 @@
|
||||||
</span>
|
</span>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td number>{{::clientInforma.rating}}</vn-td>
|
<vn-td number>{{::clientInforma.rating}}</vn-td>
|
||||||
<vn-td>{{::clientInforma.recommendedCredit | currency: 'EUR': 2}}</vn-td>
|
<vn-td number>{{::clientInforma.recommendedCredit | currency: 'EUR'}}</vn-td>
|
||||||
</vn-tr>
|
</vn-tr>
|
||||||
</vn-tbody>
|
</vn-tbody>
|
||||||
</vn-table>
|
</vn-table>
|
||||||
|
|
|
@ -270,7 +270,7 @@
|
||||||
info="Invoices minus payments plus orders not yet invoiced">
|
info="Invoices minus payments plus orders not yet invoiced">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Credit"
|
<vn-label-value label="Credit"
|
||||||
value="{{$ctrl.summary.credit | currency: 'EUR':2 }} "
|
value="{{$ctrl.summary.credit | currency: 'EUR'}} "
|
||||||
ng-class="{alert: $ctrl.summary.credit > $ctrl.summary.creditInsurance ||
|
ng-class="{alert: $ctrl.summary.credit > $ctrl.summary.creditInsurance ||
|
||||||
($ctrl.summary.credit && $ctrl.summary.creditInsurance == null)}"
|
($ctrl.summary.credit && $ctrl.summary.creditInsurance == null)}"
|
||||||
info="Verdnatura's maximum risk">
|
info="Verdnatura's maximum risk">
|
||||||
|
@ -297,7 +297,7 @@
|
||||||
info="Value from 1 to 20. The higher the better value">
|
info="Value from 1 to 20. The higher the better value">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Recommended credit"
|
<vn-label-value label="Recommended credit"
|
||||||
value="{{$ctrl.summary.recommendedCredit | currency: 'EUR': 2}}">
|
value="{{$ctrl.summary.recommendedCredit | currency: 'EUR'}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
</vn-one>
|
</vn-one>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
|
|
|
@ -88,8 +88,7 @@ module.exports = function(Self) {
|
||||||
const models = Self.app.models;
|
const models = Self.app.models;
|
||||||
|
|
||||||
await models.Ticket.rawSql(`
|
await models.Ticket.rawSql(`
|
||||||
DROP TEMPORARY TABLE IF EXISTS tmp.ticketToInvoice;
|
CREATE OR REPLACE TEMPORARY TABLE tmp.ticketToInvoice
|
||||||
CREATE TEMPORARY TABLE tmp.ticketToInvoice
|
|
||||||
(PRIMARY KEY (id))
|
(PRIMARY KEY (id))
|
||||||
ENGINE = MEMORY
|
ENGINE = MEMORY
|
||||||
SELECT id
|
SELECT id
|
||||||
|
|
|
@ -19,8 +19,7 @@ describe('ticket canBeInvoiced()', () => {
|
||||||
await ticket.updateAttribute('refFk', 'T1111111', options);
|
await ticket.updateAttribute('refFk', 'T1111111', options);
|
||||||
|
|
||||||
await models.Ticket.rawSql(`
|
await models.Ticket.rawSql(`
|
||||||
DROP TEMPORARY TABLE IF EXISTS tmp.ticketToInvoice;
|
CREATE OR REPLACE TEMPORARY TABLE tmp.ticketToInvoice
|
||||||
CREATE TEMPORARY TABLE tmp.ticketToInvoice
|
|
||||||
(PRIMARY KEY (id))
|
(PRIMARY KEY (id))
|
||||||
ENGINE = MEMORY
|
ENGINE = MEMORY
|
||||||
SELECT id
|
SELECT id
|
||||||
|
@ -52,8 +51,7 @@ describe('ticket canBeInvoiced()', () => {
|
||||||
await ticket.updateAttribute('totalWithVat', 0, options);
|
await ticket.updateAttribute('totalWithVat', 0, options);
|
||||||
|
|
||||||
await models.Ticket.rawSql(`
|
await models.Ticket.rawSql(`
|
||||||
DROP TEMPORARY TABLE IF EXISTS tmp.ticketToInvoice;
|
CREATE OR REPLACE TEMPORARY TABLE tmp.ticketToInvoice
|
||||||
CREATE TEMPORARY TABLE tmp.ticketToInvoice
|
|
||||||
(PRIMARY KEY (id))
|
(PRIMARY KEY (id))
|
||||||
ENGINE = MEMORY
|
ENGINE = MEMORY
|
||||||
SELECT id
|
SELECT id
|
||||||
|
@ -89,8 +87,7 @@ describe('ticket canBeInvoiced()', () => {
|
||||||
await ticket.updateAttribute('shipped', shipped, options);
|
await ticket.updateAttribute('shipped', shipped, options);
|
||||||
|
|
||||||
await models.Ticket.rawSql(`
|
await models.Ticket.rawSql(`
|
||||||
DROP TEMPORARY TABLE IF EXISTS tmp.ticketToInvoice;
|
CREATE OR REPLACE TEMPORARY TABLE tmp.ticketToInvoice
|
||||||
CREATE TEMPORARY TABLE tmp.ticketToInvoice
|
|
||||||
(PRIMARY KEY (id))
|
(PRIMARY KEY (id))
|
||||||
ENGINE = MEMORY
|
ENGINE = MEMORY
|
||||||
SELECT id
|
SELECT id
|
||||||
|
@ -118,8 +115,7 @@ describe('ticket canBeInvoiced()', () => {
|
||||||
const options = {transaction: tx};
|
const options = {transaction: tx};
|
||||||
|
|
||||||
await models.Ticket.rawSql(`
|
await models.Ticket.rawSql(`
|
||||||
DROP TEMPORARY TABLE IF EXISTS tmp.ticketToInvoice;
|
CREATE OR REPLACE TEMPORARY TABLE tmp.ticketToInvoice
|
||||||
CREATE TEMPORARY TABLE tmp.ticketToInvoice
|
|
||||||
(PRIMARY KEY (id))
|
(PRIMARY KEY (id))
|
||||||
ENGINE = MEMORY
|
ENGINE = MEMORY
|
||||||
SELECT id
|
SELECT id
|
||||||
|
|
Loading…
Reference in New Issue