#7134 SupplierBalance #3173

Merged
jsegarra merged 27 commits from 7134-supplierBalance into dev 2025-01-29 15:16:00 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit f6c3893d00 - Show all commits

View File

@ -4045,8 +4045,8 @@ INSERT IGNORE INTO vn.saySimpleConfig (url, defaultChannel)
INSERT INTO vn.workerIrpf (workerFk,spouseNif, geographicMobilityDate) INSERT INTO vn.workerIrpf (workerFk,spouseNif, geographicMobilityDate)
VALUES (1106,'26493101E','2019-09-20'); VALUES (1106,'26493101E','2019-09-20');
INSERT INTO vn.payment (received,supplierFk,amount,currencyFk,divisa,bankFk,payMethodFk,bankingFees,concept,companyFk,created,isConciliated,dueDated,workerFk) VALUES INSERT INTO vn.payment (received, supplierFk, amount, currencyFk, divisa, bankFk, payMethodFk, bankingFees, concept, companyFk, created, isConciliated, dueDated, workerFk) VALUES
('2024-09-15',1,1000.00,1,NULL,1,1,0.0,'n/pago',442,'2024-11-20 13:06:02.000',1,'2024-09-15',9); ('2024-09-15', 1, 1000.00, 1, NULL, 1, 1, 0.0, 'n/pago', 442, '2024-11-20 13:06:02.000', 1, '2024-09-15', 9);
jsegarra marked this conversation as resolved Outdated

Asegúrate porque todas nuestras fixtures están ubicadas en el año 2001, eso facilita todo.

Asegúrate porque todas nuestras fixtures están ubicadas en el año 2001, eso facilita todo.

He usado util.VN_CURDATE

He usado util.VN_CURDATE
INSERT INTO vn.referenceRate (currencyFk, dated, value) INSERT INTO vn.referenceRate (currencyFk, dated, value)
VALUES (2, '2000-12-01', 1.0495), VALUES (2, '2000-12-01', 1.0495),

View File

@ -3,7 +3,7 @@ const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
const {buildFilter, mergeFilters} = require('vn-loopback/util/filter'); const {buildFilter, mergeFilters} = require('vn-loopback/util/filter');
module.exports = Self => { module.exports = Self => {
Self.remoteMethodCtx('receipts', { Self.remoteMethodCtx('receipts', {
description: 'Find all clients matched by the filter', description: 'Find all suppliers matched by the filter',
accessType: 'READ', accessType: 'READ',
accepts: [ accepts: [
{ {
@ -36,7 +36,7 @@ module.exports = Self => {
{ {
arg: 'orderBy', arg: 'orderBy',
type: 'string', type: 'string',
description: 'The client fiscal id', description: 'The supplier fiscal id',
enum: ['issued', ' bookEntried', ' booked', ' dueDate'], enum: ['issued', ' bookEntried', ' booked', ' dueDate'],
}, },
{ {