refs #5874 feat: refactorizado proceso facturación #1658
Labels
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#1658
Loading…
Reference in New Issue
No description provided.
Delete Branch "hotfix_makeInvoice-refactor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -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}}">
sense decimals, aprofita y modifiques tb el crédit son int
@ -0,0 +88,4 @@
const models = Self.app.models;
await models.Ticket.rawSql(`
DROP TEMPORARY TABLE IF EXISTS tmp.ticketToInvoice;
CREATE OR REPLACE
@ -0,0 +100,4 @@
const invoiceId = await models.Ticket.makeInvoice(ctx, 'R', companyId, Date.vnNew(), myOptions);
invoicesIds.push(invoiceId);
}
tmp.ticketToInvoice crec que ací has de fer drop de la taula temporal
Ho fa el proc invoiceOut_new, que se crida.
@ -25,2 +20,3 @@
const canBeInvoiced = await models.Ticket.canBeInvoiced([ticketId], options);
await models.Ticket.rawSql(`
DROP TEMPORARY TABLE IF EXISTS tmp.ticketToInvoice;
create or replace
confirma els permisos