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

Improve workflow with RUT/ROT documents #193

Open
ehannes opened this issue Dec 22, 2020 · 0 comments
Open

Improve workflow with RUT/ROT documents #193

ehannes opened this issue Dec 22, 2020 · 0 comments

Comments

@ehannes
Copy link
Member

ehannes commented Dec 22, 2020

The workflow for RUT/ROT documents that we get from Fortnox is not great... We should be able to change

order: {                    
  tax_redction_type: 'rot',
  housework: true,
  order_rows: [                                                             
    { article: '000', housework: true, house_work_type: 'CONSTRUCTION' },
    { article: '000', housework: false, house_work_type: 'EMPTYHOUSEWORK' },
   ]
}

into something like this

# Create Fortnox::API::Order
# Check conflicting house work types
fortnox_api_order: {
  order_rows: [
    { article: '000', house_work_type: 'CONSTRUCTION' },
    { article: '000' }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant