fix: update description assignment logic based on supplier reference
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
This commit is contained in:
parent
44d395054a
commit
03dd5831c2
|
@ -136,7 +136,7 @@ async function getSupplierClientReferences(data) {
|
||||||
const { data: reference } = await axios(`Clients/getClientOrSupplierReference`, {
|
const { data: reference } = await axios(`Clients/getClientOrSupplierReference`, {
|
||||||
params,
|
params,
|
||||||
});
|
});
|
||||||
if (!reference) {
|
if (reference.supplierId) {
|
||||||
data.description = t('Supplier Compensation Reference', {
|
data.description = t('Supplier Compensation Reference', {
|
||||||
supplierId: reference.supplierId,
|
supplierId: reference.supplierId,
|
||||||
supplierName: reference.supplierName,
|
supplierName: reference.supplierName,
|
||||||
|
|
Loading…
Reference in New Issue