refs #5874 feat: refactorizado proceso facturación #1658

Merged
vicent merged 3 commits from hotfix_makeInvoice-refactor into master 2023-07-11 09:49:37 +00:00
Contributor
No description provided.
vicent added the
CR / Tests passed
label 2023-07-11 07:21:18 +00:00
vicent added 1 commit 2023-07-11 07:21:20 +00:00
vicent requested review from alexm 2023-07-11 07:21:33 +00:00
alexm approved these changes 2023-07-11 07:29:34 +00:00
alexm requested review from jgallego 2023-07-11 07:29:43 +00:00
vicent added 1 commit 2023-07-11 07:33:03 +00:00
gitea/salix/pipeline/head This commit looks good Details
56247b5012
add acl
jgallego requested changes 2023-07-11 07:46:49 +00:00
@ -297,2 +297,4 @@
info="Value from 1 to 20. The higher the better value">
</vn-label-value>
<vn-label-value label="Recommended credit"
value="{{$ctrl.summary.recommendedCredit | currency: 'EUR': 2}}">
Owner

sense decimals, aprofita y modifiques tb el crédit son int

sense decimals, aprofita y modifiques tb el crédit son int
vicent marked this conversation as resolved
@ -0,0 +88,4 @@
const models = Self.app.models;
await models.Ticket.rawSql(`
DROP TEMPORARY TABLE IF EXISTS tmp.ticketToInvoice;
Owner

CREATE OR REPLACE

CREATE OR REPLACE
vicent marked this conversation as resolved
@ -0,0 +100,4 @@
const invoiceId = await models.Ticket.makeInvoice(ctx, 'R', companyId, Date.vnNew(), myOptions);
invoicesIds.push(invoiceId);
}
Owner

tmp.ticketToInvoice crec que ací has de fer drop de la taula temporal

tmp.ticketToInvoice crec que ací has de fer drop de la taula temporal
Author
Contributor

Ho fa el proc invoiceOut_new, que se crida.

Ho fa el proc invoiceOut_new, que se crida.
vicent marked this conversation as resolved
@ -25,2 +20,3 @@
const canBeInvoiced = await models.Ticket.canBeInvoiced([ticketId], options);
await models.Ticket.rawSql(`
DROP TEMPORARY TABLE IF EXISTS tmp.ticketToInvoice;
Owner

create or replace

create or replace
vicent marked this conversation as resolved
vicent added 1 commit 2023-07-11 07:58:28 +00:00
gitea/salix/pipeline/head This commit looks good Details
da13f0811c
refs 5887 cambiado drop y create por create or replace
vicent requested review from jgallego 2023-07-11 07:58:33 +00:00
jgallego approved these changes 2023-07-11 09:16:16 +00:00
jgallego left a comment
Owner

confirma els permisos

confirma els permisos
vicent merged commit 810021e23a into master 2023-07-11 09:49:37 +00:00
vicent deleted branch hotfix_makeInvoice-refactor 2023-07-11 09:49:37 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: verdnatura/salix#1658
No description provided.