3977-invoiceIn.tax #969

Merged
joan merged 6 commits from 3977-invoiceIn.tax into dev 2022-05-13 13:04:44 +00:00
Contributor
No description provided.
vicent added the
CR / Tests passed
Simple
labels 2022-05-09 12:51:57 +00:00
vicent added 2 commits 2022-05-09 12:51:59 +00:00
gitea/salix/pipeline/head There was a failure building this commit Details
a6b8674302
feat(invoiceIn.tax): add button for create an expence
gitea/salix/pipeline/head There was a failure building this commit Details
f08a384a7c
fix: e2e test
joan added 1 commit 2022-05-11 12:47:04 +00:00
gitea/salix/pipeline/head There was a failure building this commit Details
afe4f0ba94
Merge branch 'dev' into 3977-invoiceIn.tax
carlosjr added 1 commit 2022-05-11 13:37:46 +00:00
gitea/salix/pipeline/head There was a failure building this commit Details
c749438f32
Merge branch 'dev' into 3977-invoiceIn.tax
carlosjr requested changes 2022-05-11 14:02:31 +00:00
@ -35,1 +35,4 @@
<tpl-item>{{id}}: {{name}}</tpl-item>
<append>
<vn-icon-button
vn-tooltip="Create expence"
Contributor

you have a typo in expence, it is expense

you have a typo in expence, it is expense
vicent marked this conversation as resolved
@ -100,0 +110,4 @@
vn-id="createExpense"
on-accept="$ctrl.onResponse()">
<tpl-body>
<section class="SMSDialog">
Contributor

SMSdialog?

SMSdialog?
vicent marked this conversation as resolved
@ -100,0 +117,4 @@
vn-id="code"
label="Code"
ng-model="$ctrl.expence.code"
required="true">
Contributor

shouldn't this one be the focused input?

shouldn't this one be the focused input?
vicent marked this conversation as resolved
@ -28,1 +29,4 @@
}
onResponse() {
if (!this.expence)
Contributor

expense

expense
vicent marked this conversation as resolved
@ -29,0 +31,4 @@
onResponse() {
if (!this.expence)
throw new UserError(`The fields can't be empty`);
else if (!this.expence.code)
Contributor

if the code inside the conditional throws, there's no point using "else if"

if the code inside the conditional throws, there's no point using "else if"
vicent marked this conversation as resolved
@ -29,0 +36,4 @@
else if (!this.expence.description)
throw new UserError(`The description can't be empty`);
const params = [];
Contributor

if you are creating a data entity to send on a query, why would you call it params and why woulnd't you defined it as follows:

const data = [{
id: this.expence.code,
isWithheld: this.expence.isWithheld,
name: this.expence.description
}]

if you are creating a data entity to send on a query, why would you call it params and why woulnd't you defined it as follows: const data = [{ id: this.expence.code, isWithheld: this.expence.isWithheld, name: this.expence.description }]
vicent marked this conversation as resolved
@ -56,2 +59,4 @@
});
});
describe('onResponse()', () => {
Contributor

there's only 1 test for the onResponse function but there are about 4 use cases for this function, 3 thrown errors and un success query. Some tests are missing

there's only 1 test for the onResponse function but there are about 4 use cases for this function, 3 thrown errors and un success query. Some tests are missing
vicent marked this conversation as resolved
@ -58,0 +61,4 @@
describe('onResponse()', () => {
it('should return success message', () => {
controller.expence = {
Contributor

expense

expense
vicent marked this conversation as resolved
@ -0,0 +1,6 @@
Create expence: Crear gasto
Contributor

expense

expense
vicent marked this conversation as resolved
carlosjr removed the
Simple
CR / Tests passed
labels 2022-05-11 14:03:14 +00:00
vicent added 1 commit 2022-05-12 06:27:16 +00:00
gitea/salix/pipeline/head There was a failure building this commit Details
568579f461
refactor: pull request changes
vicent requested review from carlosjr 2022-05-12 06:27:33 +00:00
vicent added the
CR / Tests passed
label 2022-05-12 06:27:50 +00:00
joan added 1 commit 2022-05-13 12:59:37 +00:00
gitea/salix/pipeline/head This commit looks good Details
913b76880a
Merge branch 'dev' into 3977-invoiceIn.tax
joan approved these changes 2022-05-13 13:04:35 +00:00
joan left a comment
Contributor

LGTM

LGTM
joan merged commit fdd780a470 into dev 2022-05-13 13:04:44 +00:00
joan deleted branch 3977-invoiceIn.tax 2022-05-13 13:04:45 +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#969
No description provided.