refacor code
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
a5b20bfb03
commit
7e50f23563
|
@ -2699,10 +2699,6 @@ INSERT INTO `util`.`notificationSubscription` (`notificationFk`, `userFk`)
|
|||
INSERT INTO `vn`.`routeConfig` (`id`, `defaultWorkCenterFk`)
|
||||
VALUES
|
||||
(1, 9);
|
||||
|
||||
INSERT INTO `vn`.`report` (`id`, `name`)
|
||||
VALUES
|
||||
(3, 'invoice');
|
||||
|
||||
INSERT INTO `vn`.`productionConfig` (`isPreviousPreparationRequired`, `ticketPrintedMax`, `ticketTrolleyMax`, `rookieDays`, `notBuyingMonths`, `id`, `isZoneClosedByExpeditionActivated`, `maxNotReadyCollections`, `minTicketsToCloseZone`, `movingTicketDelRoute`, `defaultZone`, `defautlAgencyMode`, `hasUniqueCollectionTime`, `maxCollectionWithoutUser`, `pendingCollectionsOrder`, `pendingCollectionsAge`)
|
||||
VALUES
|
||||
|
|
|
@ -24,6 +24,7 @@ describe('InvoiceOut invoiceClient()', () => {
|
|||
|
||||
it('should make a global invoicing', async() => {
|
||||
spyOn(models.InvoiceOut, 'createPdf').and.returnValue(new Promise(resolve => resolve(true)));
|
||||
spyOn(models.InvoiceOut, 'invoiceEmail');
|
||||
|
||||
const tx = await models.InvoiceOut.beginTransaction({});
|
||||
const options = {transaction: tx};
|
||||
|
|
|
@ -4,6 +4,7 @@ module.exports = {
|
|||
name: 'invoice',
|
||||
async serverPrefetch() {
|
||||
this.invoice = await this.fetchInvoice(this.reference);
|
||||
console.log('this.invoice: ', this.invoice);
|
||||
},
|
||||
methods: {
|
||||
fetchInvoice(reference) {
|
||||
|
@ -15,7 +16,7 @@ module.exports = {
|
|||
},
|
||||
props: {
|
||||
reference: {
|
||||
type: Number,
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue