rm25486
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| rm25486 [2018/05/17 11:54] – [TODO] kalaschnikow | rm25486 [2018/05/17 15:50] (current) – [Result] kalaschnikow | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== rm#25486 PO - Wrong error message when undergoing already invoiced quantites via modify ====== | ||
| + | https:// | ||
| + | |||
| + | ===== Description ===== | ||
| + | ... | ||
| + | |||
| + | ===== TODO ===== | ||
| + | * **-** Analyze | ||
| + | * The error message is formed in '' | ||
| + | |||
| + | |||
| + | * **-** Fix | ||
| + | * **-** Test | ||
| + | |||
| + | ===== Analyze ===== | ||
| + | |||
| + | The error message is formed in '' | ||
| + | |||
| + | The invoice information seems to be written in the database with the help of BillableObject import ( see '' | ||
| + | |||
| + | ==== Reproduce ==== | ||
| + | The invoice information seems to be imported in the system through BillableObject import, but it was too difficult for me to get such a file (no one seems to have such files now). It is possible to reproduce it on the simple way and | ||
| + | Simple | ||
| + | |||
| + | 1. Import PO with 3 Positions ( an example: D: | ||
| + | |||
| + | 2. Find out '' | ||
| + | <code sql> | ||
| + | SELECT * FROM TAIRPOSCHEDULE where CLINEPONUM = ' | ||
| + | </ | ||
| + | |||
| + | 3. Update invoice quantities for example with the following statement : | ||
| + | <code sql> | ||
| + | UPDATE TAIRPOLINEITEM | ||
| + | SET CFULLYINVOICED=1, | ||
| + | WHERE CREFHEADERID=< | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Misc ==== | ||
| + | * Fetch PO schedule lines for given PO Number: '' | ||
| + | * Fetch POLineItem for given RefId: '' | ||
| + | * Original entry in tAirPOLineItem: | ||
| + | * I've changed it with: '' | ||
| + | ===== Result ===== | ||
| + | |||
| + | '' | ||
| + | |||
| + | <code java> | ||
| + | BigDecimal invoicedQty = | ||
| + | Toolbox.getBigDecimalOrZero(poLineItemData.getInvoiceTotalQty()).subtract( | ||
| + | Toolbox.getBigDecimalOrZero(poLineItemData.getInvoiceRemainingQty())); | ||
| + | resultModel.addMessage(new ClientResultMessageEntry(false, | ||
| + | "The quantity of the schedule lines %s1 of the PO item %s2 can't be changed because the resulting item quantity %s3 would be below the already invoiced quantity %s4", | ||
| + | slText, preProcData.getPosNumber(), | ||
| + | |||
| + | </ | ||
