2940-invoiceInTax-section #680
Labels
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#680
Loading…
Reference in New Issue
No description provided.
Delete Branch "2940-invoiceInTax-section"
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?
@ -5,5 +5,6 @@ describe('invoiceIn summary()', () => {
const summary = await app.models.InvoiceIn.summary(1);
expect(summary.supplierRef).toEqual('1234');
expect(summary.totals).toEqual('1234');
doesn't seem to be a good approach to use the same values on different fields.
@ -43,0 +43,4 @@
{
relation: 'invoiceInTax',
scope: {
fields: ['id', 'invoiceInFk', 'taxableBase', 'expenseFk', 'taxTypeSageFk', 'transactionTypeSageFk', 'foreignValue'],
lines longer than 80 to 120 characters require indentation.
@ -0,0 +12,4 @@
"properties": {
"id": {
"id": true,
"type": "Number",
inconsistent type definition, use lowercase.
@ -48,0 +51,4 @@
<vn-label translate>Due day</vn-label>
<vn-chip
class="transparent"
translate-attr=" $ctrl.summary.totals.totalDueDay != $ctrl.summary.totals.totalTaxableBase && $ctrl.summary.totals.totalDueDay != $ctrl.summary.totals.totalVat ? {title: 'No coinciden'} : {title: 'Vencimiento'}"
extraction to a getter would be nice, making it more readable.
Also using translate-attr with spanish tittle is inconsistent.
@ -50,0 +83,4 @@
<vn-td shrink>{{::tax.taxableBase | currency: 'EUR':2}}</vn-td>
<vn-td>{{::tax.taxTypeSage.vat}}</vn-td>
<vn-td>{{::tax.transactionTypeSage.transaction}}</vn-td>
<vn-td number shrink>{{::0.2 | percentage}}</vn-td>
is 0.2 an static value?
also using :: before static values is incorrect.
@ -1,5 +1,15 @@
@import "variables";
@import "./variables";
@import "./effects";
this import doesn't seem to be needed
@ -0,0 +1,110 @@
<vn-crud-model
vn-id="model"
url="InvoiceInTaxes"
fields="['id', 'invoiceInFk', 'taxableBase', 'expenseFk', 'foreignValue', 'taxTypeSageFk', 'transactionTypeSageFk']"
lines longer than 80 to 120 characters shoueld be indented
@ -0,0 +47,4 @@
on-change="$ctrl.setTaxRate = $value"
rule>
</vn-input-number>
trailling space not needed betweent hatml tags in this case
@ -0,0 +78,4 @@
</vn-input-number>
<vn-input-number vn-one
disabled="$ctrl.invoiceIn.currency.code == 'EUR'"
type="number"
vn-input-number doesn't require the property type="number"
@ -0,0 +6,4 @@
super($element, $);
}
get setTaxRate() {
rename to taxRateSelection
@ -195,6 +195,7 @@
"This document already exists on this ticket": "Este documento ya existe en el ticket",
"Some of the selected tickets are not billable": "Algunos de los tickets seleccionados no son facturables",
"You can't invoice tickets from multiple clients": "No puedes facturar tickets de multiples clientes",
"INACTIVE_PROVIDER": "INACTIVE_PROVIDER",
Añadir traducción
LGTM