Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the accounting cost schema #77

Open
killua-eu opened this issue Dec 30, 2018 · 3 comments
Open

Update the accounting cost schema #77

killua-eu opened this issue Dec 30, 2018 · 3 comments
Assignees

Comments

@killua-eu
Copy link
Collaborator

killua-eu commented Dec 30, 2018

New schema might work like this:

{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "acc_total_novat": {
          "type": "number",
          "title": "Price without VAT"
        },
        "acc_total_vat": {
          "type": "number",
          "title": "Price with VAT"
        },
        "acc_curr": {
          "type": "string",
          "title": "Accounting currency"
        },
        "inv_total_novat": {
          "type": "number",
          "title": "Price without VAT"
        },
        "inv_total_vat": {
          "type": "number",
          "title": "Price with VAT"
        },
        "inv_curr": {
          "type": "string",
          "title": "Transaction currency"
        },
        "xr": {
          "type": "string",
          "title": "Exchange rate"
        },
        "dt_taxable": {
          "type": "string",
          "format": "date",
          "title": "Date taxable supply"
        },
        "dt_due": {
          "type": "string",
          "format": "date",
          "title": "Date taxable supply"
        },
        "inv_nr": {
          "type": "string",
          "title": "Invoice number"
        },
        "exp_type": {
          "type": "string",
          "title": "Expenditure type"
        },
        "note": {
          "type": "string",
          "title": "Note"
        },
        "supplier": {
          "title": "Supplier",
          "type": "object",
          "properties": {
            "contact_id": {
              "type": "string",
              "title": "Id of link to our db"
            },
            "name": {
              "type": "string",
              "title": "Name"
            },
            "regid": {
              "type": "string",
              "title": "IČ"
            },
            "vatid": {
              "type": "string",
              "title": "DIČ"
            },
            "dob": {
              "type": "string",
              "title": "Date of birth"
            },
            "address": {
              "type": "string",
              "title": "Address"
            }
          }
        },
        "managerial_acc": {
          "type": "array",
          "title": "Managerial accounting",
          "items": {
            "type": "object",
            "properties": {
              "price-novat": {
                "type": "string",
                "title": "Price fraction (without VAT)"
              },
              "price-fract": {
                "type": "string",
                "title": "Percentile fraction"
              },
              "note": {
                "type": "string",
                "title": "Note"
              },
              "pixel_id": {
                "type": "string",
                "title": "Project ID"
              }
            }
          }
        },
        "financial_acc": {
          "type": "array",
          "title": "Financial accounting",
          "items": {
            "type": "object",
            "properties": {
              "price-novat": {
                "type": "string",
                "title": "Price fraction (without VAT)"
              },
              "price-fract": {
                "type": "string",
                "title": "Percentile fraction"
              },
              "note": {
                "type": "string",
                "title": "Note"
              },
              "pixel_id": {
                "type": "string",
                "title": "Project ID"
              }
            }
          }
        },
        "ext_id": {
          "type": "array",
          "title": "External links",
          "items": {
            "type": "object",
            "properties": {
              "id1": {
                "type": "string",
                "title": "ID1"
              },
              "id2": {
                "type": "string",
                "title": "ID2"
              },
              "svc": {
                "type": "string",
                "title": "Service name"
              }
            }
          }
        },
        "files": {
          "type": "array",
          "title": "Multiple files",
          "items": {
            "type": "string",
            "format": "data-url"
          }
        },
        "_id": {
          "type": "string",
          "title": "Inner record id"
        },
        "creator": {
          "type": "string",
          "title": "Creator"
        },
        "dt_created": {
          "type": "string",
          "title": "Date of creation"
        }
      }
    }
  }
}

Prosím předvyplň formdata minimálně takto

  • accounting currency: "CZK",
  • ext_links.svc: "DEEF"

UI schema takto:

  • všechny popisky dej do UI schemtu jako placeholder

  • "contact_id" nastav jako hidden

  • Data pro pixel_ids ber prosim z tabulky pixelu, viz Simplified vector app #75 ... prozatim by mohl stačit select přednačtený on load time, bude toho tam málo. Select2 by byl lepší, ale tam jsme se myslím nějak zasekli.

@killua-eu
Copy link
Collaborator Author

⚠️ aj karamba! v schematu #77 a v nastylovaném html/formu #87 je jedna chyba! - analytika neměla být metadata.analytics ale v managerial accounting a financial accounting. důvod je zřejmý, faktury se rozúčtovávají podle typu výdaje (analytiky/účetní skupiny) ... potřebujeme jich víc na jednu účtenku a ke každé analytice potřebujeme dát částku a poznámku.

@killua-eu
Copy link
Collaborator Author


  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "acc_total_novat": {
          "type": "number",
          "title": "Price without VAT"
        },
        "acc_total_vat": {
          "type": "number",
          "title": "Price with VAT"
        },
        "acc_curr": {
          "type": "string",
          "title": "Accounting currency"
        },
        "inv_total_novat": {
          "type": "number",
          "title": "Price without VAT"
        },
        "inv_total_vat": {
          "type": "number",
          "title": "Price with VAT"
        },
        "inv_curr": {
          "type": "string",
          "title": "Transaction currency"
        },
        "xr": {
          "type": "string",
          "title": "Exchange rate"
        },
        "dt_taxable": {
          "type": "string",
          "format": "date",
          "title": "Date taxable supply"
        },
        "dt_due": {
          "type": "string",
          "format": "date",
          "title": "Date taxable supply"
        },
        "inv_nr": {
          "type": "string",
          "title": "Invoice number"
        },
        "note": {
          "type": "string",
          "title": "Note"
        },
        "supplier": {
          "title": "Supplier",
          "type": "object",
          "properties": {
            "contact_id": {
              "type": "string",
              "title": "Id of link to our db"
            },
            "name": {
              "type": "string",
              "title": "Name"
            },
            "regid": {
              "type": "string",
              "title": "IČ"
            },
            "vatid": {
              "type": "string",
              "title": "DIČ"
            },
            "dob": {
              "type": "string",
              "title": "Date of birth"
            },
            "address": {
              "type": "string",
              "title": "Address"
            }
          }
        },
        "managerial_acc": {
          "type": "array",
          "title": "Managerial accounting",
          "items": {
            "type": "object",
            "properties": {
              "price-novat": {
                "type": "string",
                "title": "Price fraction (without VAT)"
              },
              "price-fract": {
                "type": "string",
                "title": "Percentile fraction"
              },
              "note": {
                "type": "string",
                "title": "Note"
              },
              "acc_group": {
                "type": "string",
                "title": "Account group"
              },
              "pixel_id": {
                "type": "string",
                "title": "Project ID"
              }
            }
          }
        },
        "financial_acc": {
          "type": "array",
          "title": "Financial accounting",
          "items": {
            "type": "object",
            "properties": {
              "price-novat": {
                "type": "string",
                "title": "Price fraction (without VAT)"
              },
              "price-fract": {
                "type": "string",
                "title": "Percentile fraction"
              },
              "note": {
                "type": "string",
                "title": "Note"
              },
              "acc_group": {
                "type": "string",
                "title": "Account group"
              },
              "pixel_id": {
                "type": "string",
                "title": "Project ID"
              }
            }
          }
        },
        "ext_id": {
          "type": "array",
          "title": "External links",
          "items": {
            "type": "object",
            "properties": {
              "id1": {
                "type": "string",
                "title": "ID1"
              },
              "id2": {
                "type": "string",
                "title": "ID2"
              },
              "svc": {
                "type": "string",
                "title": "Service name"
              }
            }
          }
        },
        "files": {
          "type": "array",
          "title": "Multiple files",
          "items": {
            "type": "string",
            "format": "data-url"
          }
        },
        "_id": {
          "type": "string",
          "title": "Inner record id"
        },
        "creator": {
          "type": "string",
          "title": "Creator"
        },
        "dt_created": {
          "type": "string",
          "title": "Date of creation"
        }
      }
    }
  }
}

@pohadkar
Copy link
Collaborator

pohadkar commented Jan 8, 2019

do suppliera byl pridan novy parametr
"entity_type": {
"type": "string",
"title": "Name",
"enum": ["legal","private"],
"default": "legal"
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants