-
Notifications
You must be signed in to change notification settings - Fork 0
Implement logic for creating a new incoming invoice #80
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
base: master
Are you sure you want to change the base?
Conversation
|
| $datalineH['Vat'] = $line->TaxTotal->TaxSubtotal[0]->Percent; | ||
| #$datalineH['VatID'] = $line->Price->PriceAmount; #Denne mŒ nok mappes | ||
|
|
||
| $datalineH['UnitCostPrice'] = $datalineH['UnitCustPrice'] + $datalineH['TaxAmount']/$Quantity; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TaxAmount is for Total for invoice line.
Add a comment to clarify this.
Check if Quantity can be 0.
|
| if(!$accountplan->City) $_lib['message']->add('Sted mangler på leverandør kontoplan'); | ||
| $args['invoicein_IName_' . $ID] = $accountplan->AccountName; | ||
| if(!$accountplan->AccountName) $_lib['message']->add('Navn mangler på leverandør kontoplan'); | ||
| $args['invoicein_IAddress_' . $ID] = $accountplan->Address; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check out why this shows up on initial create for invoice
|
|
On invoiceinline if we choose a car enabled accountplan and after choose another one with car disabled, clear car from that line? also globally? create a new issue? |
|
|
|
|
|
|
@stoivo I see you added the "Back to rework" label to this. Other than the commented things to be done, are there any more requirements? |
|
@hildegunn95 will test it again when that is done. |
1ce7dac to
54aee23
Compare
|
Fixed all requests and rebased to new master. |
| } | ||
| ?> | ||
| </td> | ||
| <? if (!$invoicein->Imported) { ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When exactly should this be shown and when not?
@stoivo
Now we correctly fetch the unit cost with tax and display the tax amount that we got when importing if any
Move fetching id and name for department and project to their classes Add some comments where needed Prevent devision by zero Prevent code propagation after header redirect
Fix missing address on supplier Fix missing AccountPlanID
1faaab2 to
f265668
Compare
f265668 to
9bb74fe
Compare
ca59b86 to
4a3044d
Compare
|
If any more changes are to be made to this it should be squashed into one commit for convenience of rebasing.
|
|
|
Closes #63