Implement logic for creating a new incoming invoice#80
Implement logic for creating a new incoming invoice#80mladjo2505 wants to merge 28 commits intomasterfrom
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.
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.
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.
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