|
@@ -77,10 +77,12 @@ export default function useMethods() {
|
|
|
source.tax = ntaxrate === "0E-8" ? "0.00000000" : ntaxrate;
|
|
|
});
|
|
|
// task 2
|
|
|
- fetchUnit(unitIdName).then(({ code, name }) => {
|
|
|
- source.unit = code;
|
|
|
+ fetchUnit(unitIdName).then(({ id, code, name }) => {
|
|
|
+ source.unit = id;
|
|
|
+ source.unitCode = code;
|
|
|
source.unitName = name;
|
|
|
- source.puUnit = code;
|
|
|
+ source.puUnit = id;
|
|
|
+ source.puUnitCode = code;
|
|
|
source.puUnitName = name;
|
|
|
});
|
|
|
// task 3
|