I have two arrays inventoryStock and posStock (point of sale stock) they both use product sku numbers as the key and the value is the quantity on hand I need to somehow update the posStock with the values from $inventoryStock where there keys are matching.
Examples of arrays:
inventoryStock{
abs-0098 => 5,
abs-0099 => 23,
abs-0100 => 8,
abs-0101 => 19
}
posStock{
abs-0098 => 5,
abs-0099 => 23,
abs-0101 => 15
}
I need the posStock to be the same as the inventoryStock I cannot just make posStock be inventory stock becasue inventory stock has extra products not listed in the Point of sale.